13 references to SR
Microsoft.Extensions.Hosting (13)
HostApplicationBuilder.cs (7)
236throw new InvalidOperationException(SR.BuildCalled); 290throw new NotSupportedException(SR.Format(SR.ApplicationNameChangeNotSupported, previousApplicationName, config[HostDefaults.ApplicationKey])); 294throw new NotSupportedException(SR.Format(SR.EnvironmentNameChangeNotSupoprted, previousEnvironment, config[HostDefaults.EnvironmentKey])); 302throw new NotSupportedException(SR.Format(SR.ContentRootChangeNotSupported, previousContentRootConfig, currentContentRootConfig));
HostBuilder.cs (2)
156throw new InvalidOperationException(SR.BuildCalled); 370throw new InvalidOperationException(SR.NullIServiceProvider);
Internal\Host.cs (1)
54throw new ArgumentException(SR.IHostApplicationLifetimeReplacementNotSupported, nameof(applicationLifetime));
Internal\HostingLoggerExtensions.cs (1)
101message: SR.BackgroundServiceExceptionStoppedHost);
Internal\ServiceFactoryAdapter.cs (2)
41throw new InvalidOperationException(SR.ResolverReturnedNull); 51throw new InvalidOperationException(SR.CreateBuilderCallBeforeCreateServiceProvider);