AddWebEncoders(IServiceCollection)
|
将 HtmlEncoder、JavaScriptEncoder 和 UrlEncoder 添加到指定的 services 中。
|
AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)
|
将 HtmlEncoder、JavaScriptEncoder 和 UrlEncoder 添加到指定的 services 中。
|
Add(IServiceCollection, ServiceDescriptor)
|
将指定的 descriptor 添加到 collection 。
|
Add(IServiceCollection, IEnumerable<ServiceDescriptor>)
|
将 ServiceDescriptor 序列添加到 collection 中。
|
RemoveAll(IServiceCollection, Type)
|
删除 IServiceCollection 中所有 serviceType 类型的服务。
|
RemoveAll<T>(IServiceCollection)
|
删除 IServiceCollection 中所有 T 类型的服务。
|
Replace(IServiceCollection, ServiceDescriptor)
|
删除 IServiceCollection 中与 descriptor 的服务类型相同的第一个服务,并将 descriptor 添加到集合中。
|
TryAdd(IServiceCollection, ServiceDescriptor)
|
如果服务类型尚未注册,则将指定的 descriptor 添加到 collection 中。
|
TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)
|
如果服务类型尚未注册,则将指定的 descriptors 添加到 collection 中。
|
TryAddEnumerable(IServiceCollection, ServiceDescriptor)
|
如果现有描述符具有相同 ServiceType 和 services 中尚不存在的实现,则添加 ServiceDescriptor。
|
TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)
|
如果现有描述符具有相同 ServiceType 和 services 中尚不存在的实现,则添加指定的 ServiceDescriptor。
|
TryAddScoped(IServiceCollection, Type)
|
如果服务类型尚未注册,则将指定的 service 作为 Scoped 服务添加到 collection 中。
|
TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 service 作为 Scoped 服务添加到 collection 中。
|
TryAddScoped(IServiceCollection, Type, Type)
|
如果服务类型尚未注册,则使用 implementationType 实现将指定的 service 作为 Scoped 服务添加到 collection 中。
|
TryAddScoped<TService>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 Scoped 服务添加到 collection 中。
|
TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 TService 作为 Scoped 服务添加到 services 中。
|
TryAddScoped<TService,TImplementation>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 TImplementation 中指定的 Scoped 服务实现类型添加到 collection 中。
|
TryAddSingleton(IServiceCollection, Type)
|
如果服务类型尚未注册,则将指定的 service 作为 Singleton 服务添加到 collection 中。
|
TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 service 作为 Singleton 服务添加到 collection 中。
|
TryAddSingleton(IServiceCollection, Type, Type)
|
如果服务类型尚未注册,则使用 implementationType 实现将指定的 service 作为 Singleton 服务添加到 collection 中。
|
TryAddSingleton<TService>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 Singleton 服务添加到 collection 中。
|
TryAddSingleton<TService>(IServiceCollection, TService)
|
如果服务类型尚未注册,则将指定的 TService 作为包含 instance 中指定的实例的 Singleton 服务添加到 collection 中。
|
TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 TService 作为 Singleton 服务添加到 services 中。
|
TryAddSingleton<TService,TImplementation>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 TImplementation 中指定的 Singleton 服务实现类型添加到 collection 中。
|
TryAddTransient(IServiceCollection, Type)
|
如果服务类型尚未注册,则将指定的 service 作为 Transient 服务添加到 collection 中。
|
TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 service 作为 Transient 服务添加到 collection 中。
|
TryAddTransient(IServiceCollection, Type, Type)
|
如果服务类型尚未注册,则使用 implementationType 实现将指定的 service 作为 Transient 服务添加到 collection 中。
|
TryAddTransient<TService>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 Transient 服务添加到 collection 中。
|
TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
如果服务类型尚未注册,则使用 implementationFactory 中指定的中心将指定的 TService 作为 Transient 服务添加到 services 中。
|
TryAddTransient<TService,TImplementation>(IServiceCollection)
|
如果服务类型尚未注册,则将指定的 TService 作为 TImplementation 中指定的 Transient 服务实现类型添加到 collection 中。
|
AddHealthChecks(IServiceCollection)
|
使用提供的委托注册运行状况检查,以将 HealthCheckService 添加到容器中。
|
AddHttpClient(IServiceCollection)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection。
|
AddHttpClient(IServiceCollection, String)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置已命名的 HttpClient。
|
AddHttpClient(IServiceCollection, String, Action<IServiceProvider,HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置已命名的 HttpClient。
|
AddHttpClient(IServiceCollection, String, Action<HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置已命名的 HttpClient。
|
AddHttpClient<TClient>(IServiceCollection)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的全名。
|
AddHttpClient<TClient>(IServiceCollection, Action<IServiceProvider,HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient>(IServiceCollection, Action<HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient>(IServiceCollection, String)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient>(IServiceCollection, String, Action<HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<IServiceProvider,HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,TImplementation>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,IServiceProvider,TImplementation>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, String)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。 客户端名称将设置为 TClient 的类型名称。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<HttpClient>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,TImplementation>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,IServiceProvider,TImplementation>)
|
将 IHttpClientFactory 和相关服务添加到 IServiceCollection,并配置 TClient 类型与已命名的 HttpClient 之间的绑定。
|
AddLocalization(IServiceCollection)
|
添加应用程序本地化所需的服务。
|
AddLocalization(IServiceCollection, Action<LocalizationOptions>)
|
添加应用程序本地化所需的服务。
|
AddLogging(IServiceCollection)
|
将日志记录服务添加到指定的 IServiceCollection。
|
AddLogging(IServiceCollection, Action<ILoggingBuilder>)
|
将日志记录服务添加到指定的 IServiceCollection。
|
AddDistributedMemoryCache(IServiceCollection)
|
添加 IDistributedCache 的默认实现,该实现将内存中的项存储到 IServiceCollection 中。 需要分布式缓存才能工作的框架可安全地将此依赖项添加到其依赖列表中,以确保至少有一个可用的实现。
|
AddDistributedMemoryCache(IServiceCollection, Action<MemoryDistributedCacheOptions>)
|
添加 IDistributedCache 的默认实现,该实现将内存中的项存储到 IServiceCollection 中。 需要分布式缓存才能工作的框架可安全地将此依赖项添加到其依赖列表中,以确保至少有一个可用的实现。
|
AddMemoryCache(IServiceCollection)
|
向 IServiceCollection 中添加 IMemoryCache 的非分布式内存中实现。
|
AddMemoryCache(IServiceCollection, Action<MemoryCacheOptions>)
|
向 IServiceCollection 中添加 IMemoryCache 的非分布式内存中实现。
|
Configure<TOptions>(IServiceCollection, IConfiguration)
|
注册 TOptions 将绑定的配置实例,并在配置更改时更新选项。
|
Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)
|
注册将对其绑定 TOptions 的配置实例。
|
Configure<TOptions>(IServiceCollection, String, IConfiguration)
|
注册将对其绑定 TOptions 的配置实例。
|
Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)
|
注册将对其绑定 TOptions 的配置实例。
|
AddOptions(IServiceCollection)
|
添加使用选项所需的服务。
|
AddOptions<TOptions>(IServiceCollection)
|
获取一个选项生成器,以便将同一命名 TOptions 的配置 调用转发到基础服务集合。
|
AddOptions<TOptions>(IServiceCollection, String)
|
获取一个选项生成器,以便将同一命名 TOptions 的配置 调用转发到基础服务集合。
|
Configure<TOptions>(IServiceCollection, Action<TOptions>)
|
注册用于在启动后立即配置特定选项类型的操作。 这在 PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) 之前运行。 更新配置不会再次调用该操作。
|
Configure<TOptions>(IServiceCollection, String, Action<TOptions>)
|
注册用于配置特定类型的选项的操作。 这些都在 PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) 之前运行。
|
ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)
|
注册用于配置特定类型的选项的所有实例的操作。
|
ConfigureOptions(IServiceCollection, Object)
|
注册将注册其所有 I[Post]ConfigureOptions 的对象。
|
ConfigureOptions(IServiceCollection, Type)
|
注册将注册其所有 I[Post]ConfigureOptions 的类型。
|
ConfigureOptions<TConfigureOptions>(IServiceCollection)
|
注册将注册其所有 I[Post]ConfigureOptions 的类型。
|
PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)
|
注册用于初始化特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。
|
PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)
|
注册用于配置特定类型的选项的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。
|
PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)
|
注册用于对特定类型的选项的所有实例进行后期配置的操作。 这些都在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之后运行。
|
AddPolicyRegistry(IServiceCollection)
|
在服务集合中使用服务类型 IPolicyRegistry<TKey> 和 IReadOnlyPolicyRegistry<TKey> 注册空的 PolicyRegistry,并返回新创建的注册表。
|
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
|
在服务集合中使用服务类型 IPolicyRegistry<TKey> 和 IReadOnlyPolicyRegistry<TKey> 注册提供的 IPolicyRegistry<TKey>,并返回提供的注册表。
|
AddDistributedRedisCache(IServiceCollection, Action<RedisCacheOptions>)
|
将 Redis 分布式缓存服务添加到指定的 IServiceCollection。
|
BuildServiceProvider(IServiceCollection)
|
创建一个 ServiceProvider,它包含提供的 IServiceCollection 中的服务。
|
BuildServiceProvider(IServiceCollection, ServiceProviderOptions)
|
创建一个 ServiceProvider,它包含提供的 IServiceCollection 中的服务,并且可选择启用服务创建和范围验证。
|
BuildServiceProvider(IServiceCollection, Boolean)
|
创建一个 ServiceProvider,它包含提供的 IServiceCollection 中的服务,并且可以选择启用范围验证。
|
AddHostedService<THostedService>(IServiceCollection)
|
添加给定类型的 IHostedService 注册。
|
AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)
|
添加给定类型的 IHostedService 注册。
|
AddScoped(IServiceCollection, Type)
|
将 serviceType 中指定类型的范围内的服务添加到指定的 IServiceCollection 中。
|
AddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
使用 implementationFactory 中指定的中心将 serviceType 中指定类型的范围内的服务添加到指定的 IServiceCollection 中。
|
AddScoped(IServiceCollection, Type, Type)
|
将 serviceType 中指定类型的范围内的服务和 implementationType 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddScoped<TService>(IServiceCollection)
|
将 TService 中指定类型的范围内的服务添加到指定的 IServiceCollection 中。
|
AddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的范围内的服务添加到指定的 IServiceCollection 中。
|
AddScoped<TService,TImplementation>(IServiceCollection)
|
将 TService 中指定类型的范围内的服务和 TImplementation 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的范围内的服务和 TImplementation 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddSingleton(IServiceCollection, Type)
|
将 serviceType 中指定类型的单一实例服务添加到指定的 IServiceCollection 中。
|
AddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
使用 implementationFactory 中指定的中心将 serviceType 中指定类型的单一实例服务添加到指定的 IServiceCollection 中。
|
AddSingleton(IServiceCollection, Type, Object)
|
将 serviceType 中指定类型的单一实例服务和 implementationInstance 中指定的实例添加到指定的 IServiceCollection 中。
|
AddSingleton(IServiceCollection, Type, Type)
|
将 serviceType 中指定类型的单一实例服务和 implementationType 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddSingleton<TService>(IServiceCollection)
|
将 TService 中指定类型的单一实例服务添加到指定的 IServiceCollection 中。
|
AddSingleton<TService>(IServiceCollection, TService)
|
将 TService 中指定类型的单一实例服务和 implementationInstance 中指定的实例添加到指定的 IServiceCollection 中。
|
AddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的单一实例服务添加到指定的 IServiceCollection 中。
|
AddSingleton<TService,TImplementation>(IServiceCollection)
|
将 TService 中指定类型的单一实例服务和 TImplementation 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的单一实例服务和 TImplementation 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddTransient(IServiceCollection, Type)
|
将 serviceType 中指定类型的暂时性服务添加到指定的 IServiceCollection 中。
|
AddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)
|
使用 implementationFactory 中指定的中心将 serviceType 中指定类型的暂时性服务添加到指定的 IServiceCollection 中。
|
AddTransient(IServiceCollection, Type, Type)
|
将 serviceType 中指定类型的暂时性服务和 implementationType 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddTransient<TService>(IServiceCollection)
|
将 TService 中指定类型的暂时性服务添加到指定的 IServiceCollection 中。
|
AddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的暂时性服务添加到指定的 IServiceCollection 中。
|
AddTransient<TService,TImplementation>(IServiceCollection)
|
使用 TImplementation 中指定的中心将 TService 中指定类型的暂时性服务添加到指定的 IServiceCollection 中。
|
AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)
|
使用 implementationFactory 中指定的中心将 TService 中指定类型的暂时性服务和 TImplementation 中指定类型的实现添加到指定的 IServiceCollection 中。
|
AddDistributedSqlServerCache(IServiceCollection, Action<SqlServerCacheOptions>)
|
将 Microsoft SQL Server 分布式缓存服务添加到指定的 IServiceCollection 中。
|
AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>)
|
将 Redis 分布式缓存服务添加到指定的 IServiceCollection。
|
AsReadOnly<T>(IList<T>)
|
返回指定列表的只读 ReadOnlyCollection<T> 包装器。
|
CopyToDataTable<T>(IEnumerable<T>)
|
在给定其泛型参数 T 为 DataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRow。
|
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)
|
在给定其泛型参数 T 为 DataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRow。
|
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)
|
在给定其泛型参数 T 为 DataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRow。
|