Exemplo n.º 1
0
        public Task Start(IEndpointInstance endpointInstance)
        {
            configuration.CriticalError.SetEndpoint(endpointInstance);

            var hostStartupDiagnosticsWriter = HostStartupDiagnosticsWriterFactory.GetDiagnosticsWriter(configuration);

            return(hostStartupDiagnosticsWriter.Write(configuration.StartupDiagnostics.entries));
        }
        public async Task <IEndpointInstance> Start(IStartableEndpoint startableEndpoint)
        {
            var hostStartupDiagnosticsWriter = HostStartupDiagnosticsWriterFactory.GetDiagnosticsWriter(configuration);

            await hostStartupDiagnosticsWriter.Write(configuration.StartupDiagnostics.entries).ConfigureAwait(false);

            var endpointInstance = await startableEndpoint.Start().ConfigureAwait(false);

            configuration.CriticalError.SetEndpoint(endpointInstance);

            return(endpointInstance);
        }
Exemplo n.º 3
0
        public Task Start()
        {
            var hostStartupDiagnosticsWriter = HostStartupDiagnosticsWriterFactory.GetDiagnosticsWriter(configuration);

            return(hostStartupDiagnosticsWriter.Write(configuration.StartupDiagnostics.entries));
        }