SqlServerCachingServicesExtensions.AddDistributedSqlServerCache(IServiceCollection, Action<SqlServerCacheOptions>) 메서드

정의

지정된 IServiceCollection에 Microsoft SQL Server 분산 캐싱 서비스를 추가합니다.Adds Microsoft SQL Server distributed caching services to the specified IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddDistributedSqlServerCache(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Caching::SqlServer::SqlServerCacheOptions ^> ^ setupAction);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDistributedSqlServerCache (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions> setupAction);
static member AddDistributedSqlServerCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDistributedSqlServerCache (services As IServiceCollection, setupAction As Action(Of SqlServerCacheOptions)) As IServiceCollection

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add services to.

setupAction
Action<SqlServerCacheOptions>

제공된 Action<T>를 구성하는 SqlServerCacheOptions입니다.An Action<T> to configure the provided SqlServerCacheOptions.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

적용 대상