public Configuration(Settings settings,
                List<Type> availableTypes,
                CriticalError criticalError,
                StartupDiagnosticEntries startupDiagnostics,
                string diagnosticsPath,
                Func<string, CancellationToken, Task> hostDiagnosticsWriter,
                string endpointName,
                IServiceCollection services,
                string installationUserName,
                bool shouldRunInstallers,
                List<Action<IServiceCollection>> userRegistrations)
            {
                AvailableTypes = availableTypes;
                CriticalError = criticalError;
                StartupDiagnostics = startupDiagnostics;
                DiagnosticsPath = diagnosticsPath;
                HostDiagnosticsWriter = hostDiagnosticsWriter;
                EndpointName = endpointName;
                Services = services;
                InstallationUserName = installationUserName;
                ShouldRunInstallers = shouldRunInstallers;
                UserRegistrations = userRegistrations;

                settings.ApplyHostIdDefaultIfNeeded();
                HostInformation = new HostInformation(settings.HostId, settings.DisplayName, settings.Properties);
            }
Ejemplo n.º 2
0
 public Configuration(Settings settings,
                      List <Type> availableTypes,
                      CriticalError criticalError,
                      StartupDiagnosticEntries startupDiagnostics,
                      string diagnosticsPath,
                      Func <string, Task> hostDiagnosticsWriter,
                      string endpointName,
                      IConfigureComponents container)
 {
     this.settings         = settings;
     AvailableTypes        = availableTypes;
     CriticalError         = criticalError;
     StartupDiagnostics    = startupDiagnostics;
     DiagnosticsPath       = diagnosticsPath;
     HostDiagnosticsWriter = hostDiagnosticsWriter;
     EndpointName          = endpointName;
     Container             = container;
 }
            public Configuration(Settings settings,
                                 List <Type> availableTypes,
                                 CriticalError criticalError,
                                 StartupDiagnosticEntries startupDiagnostics,
                                 string diagnosticsPath,
                                 Func <string, Task> hostDiagnosticsWriter,
                                 string endpointName,
                                 IConfigureComponents container,
                                 string installationUserName,
                                 bool shouldRunInstallers)
            {
                AvailableTypes        = availableTypes;
                CriticalError         = criticalError;
                StartupDiagnostics    = startupDiagnostics;
                DiagnosticsPath       = diagnosticsPath;
                HostDiagnosticsWriter = hostDiagnosticsWriter;
                EndpointName          = endpointName;
                Container             = container;
                InstallationUserName  = installationUserName;
                ShouldRunInstallers   = shouldRunInstallers;

                settings.ApplyHostIdDefaultIfNeeded();
                HostInformation = new HostInformation(settings.HostId, settings.DisplayName, settings.Properties);
            }