Skip to content

Commit 048f974

Browse files
authored
Add XML Docs for WithArgs()
The wording in the XML docs is based on my cursory review of [issue 177](dotnet#177) and [PR 1121](dotnet#1121). I should add that I only started reviewing Aspire a few hours ago, so apologies if the XML docs aren't accurate - I just figured the best way to get started contributing is to jump right in (CC: @danmoseley). #Fixes dotnet#1294
1 parent 8b3861a commit 048f974

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Aspire.Hosting/Extensions/ContainerResourceBuilderExtensions.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ public static IResourceBuilder<T> WithVolumeMount<T>(this IResourceBuilder<T> bu
8181
return builder.WithAnnotation(annotation);
8282
}
8383

84+
/// <summary>
85+
/// Adds the arguments to be passed to a container resource when the container is started.
86+
/// </summary>
87+
/// <typeparam name="T">The resource type.</typeparam>
88+
/// <param name="builder">The resource builder.</param>
89+
/// <param name="args">The arguments to be passed to the container when it is started.</param>
90+
/// <returns>The <see cref="IResourceBuilder{T}"/>.</returns>
8491
public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, params string[] args) where T : IResource
8592
{
8693
var annotation = new ExecutableArgsCallbackAnnotation(updatedArgs =>

0 commit comments

Comments
 (0)