Exemplo n.º 1
0
 private async Task <InProcessTestServer <TStartup> > StartServer()
 {
     try
     {
         return(await InProcessTestServer <TStartup> .StartServer(_loggerFactory));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Server failed to start.");
         throw;
     }
 }
Exemplo n.º 2
0
    public Task <InProcessTestServer <T> > StartServer <T>(Func <WriteContext, bool> expectedErrorsFilter = null) where T : class
    {
        var disposable = base.StartVerifiableLog(ResolveExpectedErrorsFilter(expectedErrorsFilter));

        return(InProcessTestServer <T> .StartServer(LoggerFactory, disposable));
    }