Skip to content

Commit

Permalink
Merge pull request #41 from ragnarol/service-root-directory
Browse files Browse the repository at this point in the history
Service root directory
  • Loading branch information
PeterKottas authored Sep 29, 2017
2 parents 074a74e + 6a61dfd commit 2287c19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/PeterKottas.DotNetCore.WindowsService/ServiceRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public static class ServiceRunner<SERVICE> where SERVICE : IMicroService
{
public static int Run(Action<HostConfigurator<SERVICE>> runAction)
{
Directory.SetCurrentDirectory(PlatformServices.Default.Application.ApplicationBasePath);

var innerConfig = new HostConfiguration<SERVICE>();
innerConfig.Action = ActionEnum.RunInteractive;
innerConfig.Name = typeof(SERVICE).FullName;
Expand Down

0 comments on commit 2287c19

Please sign in to comment.