コード例 #1
0
 public void SetUp()
 {
     try
     {
         Host     = new SlowServiceHost(k => { Service = k.Get <ISlowService>(); });
         StopTask = Host.RunAsync();
     }
     catch (Exception ex)
     {
         Console.Write(ex.ToString());
         throw;
     }
 }
コード例 #2
0
ファイル: CachingProxyTests.cs プロジェクト: zhrjin/microdot
 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;
     }
 }