OrleansServiceClientExtensions.WithReference<T> 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.
Adds an Orleans client to the resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithReference<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Aspire.Hosting.Orleans.OrleansServiceClient orleansServiceClient) where T : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;
static member WithReference : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> * Aspire.Hosting.Orleans.OrleansServiceClient -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> (requires 'T :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)
<Extension()>
Public Function WithReference(Of T As IResourceWithEnvironment) (builder As IResourceBuilder(Of T), orleansServiceClient As OrleansServiceClient) As IResourceBuilder(Of T)
Type Parameters
- T
Parameters
- builder
- IResourceBuilder<T>
The builder on which add the Orleans service builder.
- orleansServiceClient
- OrleansServiceClient
The Orleans service client, containing clustering, etc.
Returns
The resource builder.
Exceptions
Clustering has not been configured.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for