// 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"); } });
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"); } });