MemoryGrainStorageSiloBuilderExtensions.AddMemoryGrainStorage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
Configure silo to use memory grain storage. |
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>) |
Configure silo to use memory grain storage. |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
Configure silo to use memory grain storage as the default grain storage. |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>) |
Configure silo to use memory grain storage as the default grain storage. |
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
Configure silo to use memory grain storage.
public static Orleans.Hosting.ISiloBuilder AddMemoryGrainStorage (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> configureOptions = default);
static member AddMemoryGrainStorage : Orleans.Hosting.ISiloBuilder * string * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddMemoryGrainStorage (builder As ISiloBuilder, name As String, Optional configureOptions As Action(Of OptionsBuilder(Of MemoryGrainStorageOptions)) = Nothing) As ISiloBuilder
Parameters
- builder
- ISiloBuilder
The builder.
- name
- String
The name of the storage provider. This must match with the StorageName
property specified when injecting state into a grain.
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
The configuration delegate.
Returns
The silo builder.
Applies to
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>)
Configure silo to use memory grain storage.
public static Orleans.Hosting.ISiloBuilder AddMemoryGrainStorage (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Orleans.Configuration.MemoryGrainStorageOptions> configureOptions);
static member AddMemoryGrainStorage : Orleans.Hosting.ISiloBuilder * string * Action<Orleans.Configuration.MemoryGrainStorageOptions> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddMemoryGrainStorage (builder As ISiloBuilder, name As String, configureOptions As Action(Of MemoryGrainStorageOptions)) As ISiloBuilder
Parameters
- builder
- ISiloBuilder
The builder.
- name
- String
The name of the storage provider. This must match with the StorageName
property specified when injecting state into a grain.
- configureOptions
- Action<MemoryGrainStorageOptions>
The configuration delegate.
Returns
The silo builder.
Applies to
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
Configure silo to use memory grain storage as the default grain storage.
public static Orleans.Hosting.ISiloHostBuilder AddMemoryGrainStorage (this Orleans.Hosting.ISiloHostBuilder builder, string name, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> configureOptions = default);
static member AddMemoryGrainStorage : Orleans.Hosting.ISiloHostBuilder * string * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function AddMemoryGrainStorage (builder As ISiloHostBuilder, name As String, Optional configureOptions As Action(Of OptionsBuilder(Of MemoryGrainStorageOptions)) = Nothing) As ISiloHostBuilder
Parameters
- builder
- ISiloHostBuilder
- name
- String
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
Returns
Applies to
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>)
Configure silo to use memory grain storage as the default grain storage.
public static Orleans.Hosting.ISiloHostBuilder AddMemoryGrainStorage (this Orleans.Hosting.ISiloHostBuilder builder, string name, Action<Orleans.Configuration.MemoryGrainStorageOptions> configureOptions);
static member AddMemoryGrainStorage : Orleans.Hosting.ISiloHostBuilder * string * Action<Orleans.Configuration.MemoryGrainStorageOptions> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function AddMemoryGrainStorage (builder As ISiloHostBuilder, name As String, configureOptions As Action(Of MemoryGrainStorageOptions)) As ISiloHostBuilder
Parameters
- builder
- ISiloHostBuilder
- name
- String
- configureOptions
- Action<MemoryGrainStorageOptions>