다음을 통해 공유


SqlServerCachingServicesExtensions.AddDistributedSqlServerCache 메서드

정의

지정된 IServiceCollection에 Microsoft SQL Server 분산 캐싱 서비스를 추가합니다.

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입니다.

setupAction
Action<SqlServerCacheOptions>

제공된 SqlServerCacheOptions를 구성하는 Action<T>입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상