public void SetUp() { try { Host = new SlowServiceHost(k => { Service = k.Get <ISlowService>(); }); StopTask = Host.RunAsync(); } catch (Exception ex) { Console.Write(ex.ToString()); throw; } }
public void SetUp() { try { Host = new SlowServiceHost(k => { Service = k.Get <ISlowService>(); }); StopTask = Host.RunAsync(new ServiceArguments(ServiceStartupMode.CommandLineNonInteractive)); } catch (Exception ex) { Console.Write(ex.ToString()); throw; } }