예제 #1
0
 // TODO: Drop container reference... (just import a service that deals with it?)
 public Task LaunchSignalr() => Task.Run(() => {
     try {
         var server = new StartThisServer().Start(_container.GetInstance <IMediator>(),
                                                  _container.GetInstance <IDepResolver>());
     } catch (Exception ex) {
         // TODO: Use IExceptionHandler etc
         MainLog.Logger.FormattedErrorException(ex, "Error during start of local server");
     }
 });
예제 #2
0
 public Task LaunchSignalr() {
     // TODO: Drop container reference... (just import a service that deals with it?)
     return Task.Run(() => {
         try {
             var server = new StartThisServer().Start(_container.GetInstance<IMediator>(),
                 _container.GetInstance<IDependencyResolver>());
         } catch (Exception ex) {
             // TODO: Use IExceptionHandler etc
             MainLog.Logger.FormattedErrorException(ex, "Error during start of local server");
         }
     });
 }
 // TODO: Drop container reference... (just import a service that deals with it?)
 public Task LaunchSignalr() => Task.Run(() => {
     try {
         var server = new StartThisServer().Start(_container.GetInstance<IMediator>(),
             _container.GetInstance<IDepResolver>());
     } catch (Exception ex) {
         // TODO: Use IExceptionHandler etc
         MainLog.Logger.FormattedErrorException(ex, "Error during start of local server");
     }
 });