Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Blendea bdaniel7

  • Bucharest, Romania
View GitHub Profile
@bdaniel7
bdaniel7 / setup.nsi
Created Feb 22, 2022 — forked from zmilojko/setup.nsi
NSIS package for a C# application - a package file I used in Zaws, with comments on how to use it for your own application
View setup.nsi
; Full script for making an NSIS installation package for .NET programs,
; Allows installing and uninstalling programs on Windows environment, and unlike the package system
; integrated with Visual Studio, this one does not suck.
;To use this script:
; 1. Download NSIS (http://nsis.sourceforge.net/Download) and install
; 2. Save this script to your project and edit it to include files you want - and display text you want
; 3. Add something like the following into your post-build script (maybe only for Release configuration)
; "$(DevEnvDir)..\..\..\NSIS\makensis.exe" "$(ProjectDir)Setup\setup.nsi"
; 4. Build your project.
View ConvertTelerikFilter
let query = "daniel";
let filter = {
logic: "or",
filters:[
{ field: "FirstName", operator: "contains", value: query },
{ field: "LastName", operator: "contains", value: query },
{ field: "Email", operator: "contains", value: query },
]
}
@bdaniel7
bdaniel7 / Startup.cs
Last active Aug 6, 2019
Multiple registrations of INotificationHandler
View Startup.cs
public IServiceProvider ConfigureServices(IServiceCollection services)
{
// domainAssembly contains all IRequest<>, IRequestHandler<>, INotification, INotificationHandler<> implementations
var domainAssembly = typeof(RegulationEmailNotificationHandler).Assembly;
services.AddMediatR(domainAssembly);
// ContainerBuilder is from Autofac
var builder = new ContainerBuilder();
@bdaniel7
bdaniel7 / Install.ps1
Created Feb 9, 2017 — forked from lkaczanowski/Install.ps1
Nuget install script - copy folder from package to other directory
View Install.ps1
param($installPath, $toolsPath, $package, $project)
$projectFullName = $project.FullName
Write-Host "Copying Docs folder to the root of the solution: $projectFullName"
$fileInfo = new-object -typename System.IO.FileInfo -ArgumentList $projectFullName
$projectDirectory = $fileInfo.DirectoryName
$sourceDirectory = "$installPath\docs"
Write-Host $sourceDirectory