5 instantiations of RustCargoArgsCallbackContext
Aspire.Hosting.Rust (2)
RustDockerfileGenerator.cs (1)
178await annotation.Callback(new RustCargoArgsCallbackContext(resource, args, cancellationToken)).ConfigureAwait(false);
RustHostingExtensions.cs (1)
103await annotation.Callback(new RustCargoArgsCallbackContext(resource, cargoArgs, context.CancellationToken)).ConfigureAwait(false);
Aspire.Hosting.Rust.Tests (3)
RustPublicApiTests.cs (3)
195var action = () => new RustCargoArgsCallbackContext(resource, []); 206var action = () => new RustCargoArgsCallbackContext(new RustAppResource("api", "/src/rust-app"), args); 217var context = new RustCargoArgsCallbackContext(new RustAppResource("api", "/src/rust-app"), [], cts.Token);
5 references to RustCargoArgsCallbackContext
Aspire.Hosting.Rust (4)
RustCargoArgsCallbackAnnotation.cs (2)
12internal sealed class RustCargoArgsCallbackAnnotation(Func<RustCargoArgsCallbackContext, Task> callback) : IResourceAnnotation 31public Func<RustCargoArgsCallbackContext, Task> Callback { get; } = callback ?? throw new ArgumentNullException(nameof(callback));
RustHostingExtensions.cs (2)
216public static IResourceBuilder<T> WithCargoArgs<T>(this IResourceBuilder<T> builder, Action<RustCargoArgsCallbackContext> callback) 238public static IResourceBuilder<T> WithCargoArgs<T>(this IResourceBuilder<T> builder, Func<RustCargoArgsCallbackContext, Task> callback)
Aspire.Hosting.Rust.Tests (1)
RustPublicApiTests.cs (1)
217var context = new RustCargoArgsCallbackContext(new RustAppResource("api", "/src/rust-app"), [], cts.Token);