共用方式為


OrleansServiceExtensions.WithGrainDirectory Method

Definition

Overloads

WithGrainDirectory(OrleansService, IResourceBuilder<IResourceWithConnectionString>)

Adds a grain directory provider to the Orleans service.

WithGrainDirectory(OrleansService, String, IResourceBuilder<IResourceWithConnectionString>)

Adds a grain directory provider to the Orleans service.

WithGrainDirectory(OrleansService, String, IProviderConfiguration)

Adds a grain directory provider to the Orleans service.

WithGrainDirectory(OrleansService, IResourceBuilder<IResourceWithConnectionString>)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain directory provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainDirectory (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> provider);
static member WithGrainDirectory : Aspire.Hosting.Orleans.OrleansService * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainDirectory (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

WithGrainDirectory(OrleansService, String, IResourceBuilder<IResourceWithConnectionString>)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain directory provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainDirectory (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> provider);
static member WithGrainDirectory : Aspire.Hosting.Orleans.OrleansService * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainDirectory (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

WithGrainDirectory(OrleansService, String, IProviderConfiguration)

Source:
OrleansServiceExtensions.cs
Source:
OrleansServiceExtensions.cs

Adds a grain directory provider to the Orleans service.

public static Aspire.Hosting.Orleans.OrleansService WithGrainDirectory (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, string name, Aspire.Hosting.Orleans.IProviderConfiguration provider);
static member WithGrainDirectory : Aspire.Hosting.Orleans.OrleansService * string * Aspire.Hosting.Orleans.IProviderConfiguration -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithGrainDirectory (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