MemoryGrainStorageSiloBuilderExtensions.AddMemoryGrainStorage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
設定定址接收器以使用記憶體粒紋儲存體。 |
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>) |
設定定址接收器以使用記憶體粒紋儲存體。 |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>) |
設定定址接收器以使用記憶體粒紋儲存體作為預設的粒紋儲存體。 |
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>) |
設定定址接收器以使用記憶體粒紋儲存體作為預設的粒紋儲存體。 |
AddMemoryGrainStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
設定定址接收器以使用記憶體粒紋儲存體。
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>>
組態委派。
傳回
定址接收器產生器。
適用於
AddMemoryGrainStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>)
設定定址接收器以使用記憶體粒紋儲存體。
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>
組態委派。
傳回
定址接收器產生器。
適用於
AddMemoryGrainStorage(ISiloHostBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>)
設定定址接收器以使用記憶體粒紋儲存體作為預設的粒紋儲存體。
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>)
設定定址接收器以使用記憶體粒紋儲存體作為預設的粒紋儲存體。
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>