AdoNetGrainStorageServiceCollectionExtensions.AddAdoNetGrainStorageAsDefault 方法

定义

配置 silo 以使用 AdoNet grain 存储作为默认粒度存储。 有关配置数据库的说明,请参阅 http://aka.ms/orleans-sql-scripts

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAdoNetGrainStorageAsDefault (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.AdoNetGrainStorageOptions>> configureOptions = default);
static member AddAdoNetGrainStorageAsDefault : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.AdoNetGrainStorageOptions>> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAdoNetGrainStorageAsDefault (services As IServiceCollection, Optional configureOptions As Action(Of OptionsBuilder(Of AdoNetGrainStorageOptions)) = Nothing) As IServiceCollection

参数

返回

注解

有关配置数据库的说明,请参阅 http://aka.ms/orleans-sql-scripts

适用于