ProjectResourceBuilderExtensions.WithReplicas 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
WithReplicas(IResourceBuilder<ExecutableResource>, Int32) |
Configures how many replicas of the project should be created for the project. |
WithReplicas(IResourceBuilder<ProjectResource>, Int32) |
Configures how many replicas of the project should be created for the project. |
WithReplicas(IResourceBuilder<ExecutableResource>, Int32)
Configures how many replicas of the project should be created for the project.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ExecutableResource> WithReplicas (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ExecutableResource> builder, int replicas);
static member WithReplicas : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ExecutableResource> * int -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ExecutableResource>
<Extension()>
Public Function WithReplicas (builder As IResourceBuilder(Of ExecutableResource), replicas As Integer) As IResourceBuilder(Of ExecutableResource)
Parameters
- builder
- IResourceBuilder<ExecutableResource>
The executable resource builder.
- replicas
- Int32
The number of replicas.
Returns
A reference to the IResourceBuilder<T>.
Applies to
WithReplicas(IResourceBuilder<ProjectResource>, Int32)
Configures how many replicas of the project should be created for the project.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ProjectResource> WithReplicas (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ProjectResource> builder, int replicas);
static member WithReplicas : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ProjectResource> * int -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ProjectResource>
<Extension()>
Public Function WithReplicas (builder As IResourceBuilder(Of ProjectResource), replicas As Integer) As IResourceBuilder(Of ProjectResource)
Parameters
- builder
- IResourceBuilder<ProjectResource>
The project resource builder.
- replicas
- Int32
The number of replicas.
Returns
A reference to the IResourceBuilder<T>.
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