Skip to content

AdoNetGrainStorageServiceCollectionExtensions Methods

Microsoft.Extensions.DependencyInjection.IServiceCollection extensions.

AddAdoNetGrainStorage(IServiceCollection, string, Action<AdoNetGrainStorageOptions>)

staticextension
View source
public static IServiceCollection AddAdoNetGrainStorage(this IServiceCollection services, string name, Action<AdoNetGrainStorageOptions> configureOptions)
Configure silo to use AdoNet grain storage for grain storage. Instructions on configuring your database are available at http://aka.ms/orleans-sql-scripts.

Parameters

servicesIServiceCollection
namestring
configureOptionsAction<AdoNetGrainStorageOptions>

AddAdoNetGrainStorage(IServiceCollection, string, Action<OptionsBuilder<AdoNetGrainStorageOptions>>)

staticextension
View source
public static IServiceCollection AddAdoNetGrainStorage(this IServiceCollection services, string name, Action<OptionsBuilder<AdoNetGrainStorageOptions>> configureOptions = null)
Configure silo to use AdoNet grain storage for grain storage. Instructions on configuring your database are available at http://aka.ms/orleans-sql-scripts.

Parameters

servicesIServiceCollection
namestring
configureOptionsAction<OptionsBuilder<AdoNetGrainStorageOptions>>

AddAdoNetGrainStorageAsDefault(IServiceCollection, Action<OptionsBuilder<AdoNetGrainStorageOptions>>)

staticextension
View source
public static IServiceCollection AddAdoNetGrainStorageAsDefault(this IServiceCollection services, Action<OptionsBuilder<AdoNetGrainStorageOptions>> configureOptions = null)
Configure silo to use AdoNet grain storage as the default grain storage. Instructions on configuring your database are available at http://aka.ms/orleans-sql-scripts.

Parameters

servicesIServiceCollection
configureOptionsAction<OptionsBuilder<AdoNetGrainStorageOptions>>