- Move to the dotnet framework path
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
- Get the service path
C:\Services\XXXX.exe
- Run command
InstallUtil.exe C:\Services\XXXX.exe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Info(string message, params object[] args) | |
{ | |
Console.ForegroundColor = ConsoleColor.Cyan; | |
Console.WriteLine(message, args); | |
Console.ResetColor(); | |
} | |
public static void Debug(string message, params object[] args) | |
{ | |
Console.ForegroundColor = ConsoleColor.Yellow; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
branch = auto | |
interactive = auto | |
diff = auto | |
status = auto | |
[user] | |
name = #### | |
email = ###### | |
[remote "origin"] | |
receivepack = git receive-pack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StructureMapJobFactory : IJobFactory | |
{ | |
private static readonly ILog Logger = LogProvider.GetCurrentClassLogger(); | |
private readonly IContainer _container; | |
public StructureMapJobFactory(IContainer container) | |
{ | |
this._container = container; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original code by Joachim Lykke Andersen; http://devtalk.dk/2011/02/16/Workaround+EF+Code+First+On+AppHabour.aspx | |
using System.Data.Entity; | |
using System.Data.Entity.Database; | |
using System.Data.Entity.Design; | |
using System.Data.Entity.Infrastructure; | |
using System.Data.Metadata.Edm; | |
using System.Data.Objects; | |
using System.Globalization; | |
using System.Linq; |
NewerOlder