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