6 instantiations of CommandLineArgsCallbackAnnotation
Aspire.Hosting (2)
Dashboard\DashboardLifecycleHook.cs (1)
105dashboardResource.Annotations.Add(new CommandLineArgsCallbackAnnotation(args =>
ResourceBuilderExtensions.cs (1)
252return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(callback));
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
189new CommandLineArgsCallbackAnnotation(
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
192return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(context =>
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
432return builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(context =>
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
163=> builder.WithAnnotation(new CommandLineArgsCallbackAnnotation(context =>
47 references to CommandLineArgsCallbackAnnotation
Aspire.Hosting (10)
ApplicationModel\CommandLineArgsCallbackAnnotation.cs (2)
12/// Initializes a new instance of the <see cref="CommandLineArgsCallbackAnnotation"/> class with the specified callback action. 23/// Initializes a new instance of the <see cref="CommandLineArgsCallbackAnnotation"/> class with the specified callback action.
Dcp\ApplicationExecutor.cs (4)
1311if (er.ModelResource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks)) 1316foreach (var exeArgsCallback in exeArgsCallbacks) 1697if (modelContainerResource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallback)) 1705foreach (var callback in argsCallback)
Publishing\ManifestPublishingContext.cs (4)
516/// Writes command line arguments to the manifest based on the <see cref="IResource"/> resource's <see cref="CommandLineArgsCallbackAnnotation"/> annotations. 518/// <param name="resource">The <see cref="IResource"/> that contains <see cref="CommandLineArgsCallbackAnnotation"/> annotations.</param> 524if (resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallback)) 528foreach (var callback in argsCallback)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
454if (resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var commandLineArgsCallbackAnnotations)) 458foreach (var c in commandLineArgsCallbackAnnotations)
Aspire.Hosting.Garnet.Tests (11)
AddGarnetTests.cs (11)
170Assert.True(garnet.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 173foreach (var argsAnnotation in argsCallbacks) 189var persistenceAnnotation = garnet.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 201Assert.True(garnet.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 204foreach (var argsAnnotation in argsCallbacks) 220var persistenceAnnotation = garnet.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 233Assert.True(garnet.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 236foreach (var argsAnnotation in argsCallbacks) 252Assert.True(garnet.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));
Aspire.Hosting.Redis.Tests (11)
AddRedisTests.cs (11)
309Assert.True(redis.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 312foreach (var argsAnnotation in argsCallbacks) 328var persistenceAnnotation = redis.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 340Assert.True(redis.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 343foreach (var argsAnnotation in argsCallbacks) 359var persistenceAnnotation = redis.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 372Assert.True(redis.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 375foreach (var argsAnnotation in argsCallbacks) 391Assert.True(redis.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (2)
12if (resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks)) 17foreach (var exeArgsCallback in exeArgsCallbacks)
Aspire.Hosting.Valkey.Tests (11)
AddValkeyTests.cs (11)
170Assert.True(valkey.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 173foreach (var argsAnnotation in argsCallbacks) 189var persistenceAnnotation = valkey.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 201Assert.True(valkey.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 204foreach (var argsAnnotation in argsCallbacks) 220var persistenceAnnotation = valkey.Resource.Annotations.OfType<CommandLineArgsCallbackAnnotation>().SingleOrDefault(); 233Assert.True(valkey.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsCallbacks)); 236foreach (var argsAnnotation in argsCallbacks) 252Assert.True(valkey.Resource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));