OrleansServiceExtensions.WithGrainStorage Method

Definition

Overloads

WithGrainStorage(OrleansService, String, IProviderConfiguration)

Adds a grain storage provider to the Orleans service.

WithGrainStorage(OrleansService, IResourceBuilder<IResourceWithConnectionString>)

Adds a grain storage provider to the Orleans service.

WithGrainStorage(OrleansService, String, IResourceBuilder<IResourceWithConnectionString>)

Adds a grain storage provider to the Orleans service.

WithGrainStorage(OrleansService, String, IProviderConfiguration)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain storage provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainStorage (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, string name, Aspire.Hosting.Orleans.IProviderConfiguration provider);
static member WithGrainStorage : Aspire.Hosting.Orleans.OrleansService * string * Aspire.Hosting.Orleans.IProviderConfiguration -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainStorage (orleansServiceBuilder As OrleansService, name As String, provider As IProviderConfiguration) As OrleansService

Parameters

orleansServiceBuilder
OrleansService

The target Orleans service builder.

name
String

The name of the provider. This is the name the application will use to resolve the provider.

provider
IProviderConfiguration

The provider to add.

Returns

>The Orleans service builder.

Applies to

WithGrainStorage(OrleansService, IResourceBuilder<IResourceWithConnectionString>)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain storage provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainStorage (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> provider);
static member WithGrainStorage : Aspire.Hosting.Orleans.OrleansService * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainStorage (orleansServiceBuilder As OrleansService, provider As IResourceBuilder(Of IResourceWithConnectionString)) As OrleansService

Parameters

orleansServiceBuilder
OrleansService

The target Orleans service builder.

provider
IResourceBuilder<IResourceWithConnectionString>

The provider to add.

Returns

>The Orleans service builder.

Remarks

This resource name is the name the application will use to resolve the provider.

Applies to

WithGrainStorage(OrleansService, String, IResourceBuilder<IResourceWithConnectionString>)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain storage provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainStorage (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> provider);
static member WithGrainStorage : Aspire.Hosting.Orleans.OrleansService * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainStorage (orleansServiceBuilder As OrleansService, name As String, provider As IResourceBuilder(Of IResourceWithConnectionString)) As OrleansService

Parameters

orleansServiceBuilder
OrleansService

The target Orleans service builder.

name
String

The name of the provider. This is the name the application will use to resolve the provider.

provider
IResourceBuilder<IResourceWithConnectionString>

The provider to add.

Returns

>The Orleans service builder.

Applies to