AdoNetGrainStorageServiceCollectionExtensions.AddAdoNetGrainStorageAsDefault 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將接收器設定為使用 AdoNet 細微性儲存體作為預設的細微性儲存體。 如需設定資料庫的指示,請參閱 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
參數
- services
- IServiceCollection
- configureOptions
- Action<OptionsBuilder<AdoNetGrainStorageOptions>>
傳回
備註
如需設定資料庫的指示,請參閱 http://aka.ms/orleans-sql-scripts 。