MemoryGrainStorageSiloBuilderExtensions.AddMemoryGrainStorage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
配置 silo 以使用内存粒度存储。 |
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>) |
配置 silo 以使用内存粒度存储。 |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
配置 silo 以使用内存粒度存储作为默认粒度存储。 |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>) |
配置 silo 以使用内存粒度存储作为默认粒度存储。 |
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
配置 silo 以使用内存粒度存储。
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
参数
- builder
- ISiloBuilder
生成器。
- name
- String
存储提供程序的名称。 这必须与将 StorageName
状态注入粒度时指定的 属性匹配。
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
配置委托。
返回
silo 生成器。
适用于
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>)
配置 silo 以使用内存粒度存储。
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
参数
- builder
- ISiloBuilder
生成器。
- name
- String
存储提供程序的名称。 这必须与将 StorageName
状态注入粒度时指定的 属性匹配。
- configureOptions
- Action<MemoryGrainStorageOptions>
配置委托。
返回
silo 生成器。
适用于
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
配置 silo 以使用内存粒度存储作为默认粒度存储。
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
参数
- builder
- ISiloHostBuilder
- name
- String
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
返回
适用于
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>)
配置 silo 以使用内存粒度存储作为默认粒度存储。
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
参数
- builder
- ISiloHostBuilder
- name
- String
- configureOptions
- Action<MemoryGrainStorageOptions>