OrleansServiceExtensions.WithClustering Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithClustering(OrleansService, IResourceBuilder<IResourceWithConnectionString>) |
Configures the Orleans service to use the provided clustering provider. |
WithClustering(OrleansService, IProviderConfiguration) |
Configures the Orleans service to use the provided clustering provider. |
WithClustering(OrleansService, IResourceBuilder<IResourceWithConnectionString>)
- Source:
- OrleansServiceExtensions.cs
Configures the Orleans service to use the provided clustering provider.
public static Aspire.Hosting.Orleans.OrleansService WithClustering (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> provider);
static member WithClustering : Aspire.Hosting.Orleans.OrleansService * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithClustering (orleansServiceBuilder As OrleansService, provider As IResourceBuilder(Of IResourceWithConnectionString)) As OrleansService
Parameters
- orleansServiceBuilder
- OrleansService
The target Orleans service builder.
The provider.
Returns
>The Orleans service builder.
Applies to
WithClustering(OrleansService, IProviderConfiguration)
- Source:
- OrleansServiceExtensions.cs
Configures the Orleans service to use the provided clustering provider.
public static Aspire.Hosting.Orleans.OrleansService WithClustering (this Aspire.Hosting.Orleans.OrleansService orleansServiceBuilder, Aspire.Hosting.Orleans.IProviderConfiguration provider);
static member WithClustering : Aspire.Hosting.Orleans.OrleansService * Aspire.Hosting.Orleans.IProviderConfiguration -> Aspire.Hosting.Orleans.OrleansService
<Extension()>
Public Function WithClustering (orleansServiceBuilder As OrleansService, provider As IProviderConfiguration) As OrleansService
Parameters
- orleansServiceBuilder
- OrleansService
The target Orleans service builder.
- provider
- IProviderConfiguration
The provider.
Returns
>The Orleans service builder.