Edytuj

Udostępnij za pośrednictwem


MemoryGrainStorageSiloBuilderExtensions.AddMemoryGrainStorage Method

Definition

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>>)

Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs

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>)

Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs
Source:
MemoryGrainStorageSiloBuilderExtensions.cs

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>>)

Source:
MemoryGrainStorageSiloBuilderExtensions.cs

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

name
String

Returns

Applies to

AddMemoryGrainStorage(ISiloHostBuilder, String, Action<MemoryGrainStorageOptions>)

Source:
MemoryGrainStorageSiloBuilderExtensions.cs

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

name
String
configureOptions
Action<MemoryGrainStorageOptions>

Returns

Applies to