Skip to content

Commit

Permalink
Allow WithArgs to accept ReferenceExpressions
Browse files Browse the repository at this point in the history
  • Loading branch information
afscrome authored Jun 7, 2024
1 parent 78b36fe commit fc8b3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/ResourceBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static IResourceBuilder<T> WithEnvironment<T>(
/// <param name="builder">The resource builder.</param>
/// <param name="args">The arguments to be passed to the container when it is started.</param>
/// <returns>The <see cref="IResourceBuilder{T}"/>.</returns>
public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, params string[] args) where T : IResourceWithArgs
public static IResourceBuilder<T> WithArgs<T>(this IResourceBuilder<T> builder, params object[] args) where T : IResourceWithArgs

Check failure on line 162 in src/Aspire.Hosting/ResourceBuilderExtensions.cs

View check run for this annotation

Azure Pipelines / dotnet.aspire (Build Linux)

src/Aspire.Hosting/ResourceBuilderExtensions.cs#L162

src/Aspire.Hosting/ResourceBuilderExtensions.cs(162,39): error RS0016: (NETCORE_ENGINEERING_TELEMETRY=Build) Symbol 'WithArgs<T>' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)

Check failure on line 162 in src/Aspire.Hosting/ResourceBuilderExtensions.cs

View check run for this annotation

Azure Pipelines / dotnet.aspire

src/Aspire.Hosting/ResourceBuilderExtensions.cs#L162

src/Aspire.Hosting/ResourceBuilderExtensions.cs(162,39): error RS0016: (NETCORE_ENGINEERING_TELEMETRY=Build) Symbol 'WithArgs<T>' is not part of the declared public API (https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md)
{
return builder.WithArgs(context => context.Args.AddRange(args));
}
Expand Down

0 comments on commit fc8b3e1

Please sign in to comment.