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

適用対象