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