6 instantiations of CommandLineArgsCallbackAnnotation
Aspire.Hosting (2)
Dashboard\DashboardLifecycleHook.cs (1)
110
dashboardResource.Annotations.Add(new
CommandLineArgsCallbackAnnotation
(args =>
ResourceBuilderExtensions.cs (1)
253
return builder.WithAnnotation(new
CommandLineArgsCallbackAnnotation
(callback));
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
189
new
CommandLineArgsCallbackAnnotation
(
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
192
return builder.WithAnnotation(new
CommandLineArgsCallbackAnnotation
(context =>
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
434
return 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)
1328
if (er.ModelResource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var exeArgsCallbacks))
1333
foreach (
var
exeArgsCallback in exeArgsCallbacks)
1714
if (modelContainerResource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallback))
1722
foreach (
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>
524
if (resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallback))
528
foreach (
var
callback in argsCallback)
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
454
if (resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var commandLineArgsCallbackAnnotations))
458
foreach (
var
c in commandLineArgsCallbackAnnotations)
Aspire.Hosting.Garnet.Tests (11)
AddGarnetTests.cs (11)
170
Assert.True(garnet.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
173
foreach (
var
argsAnnotation in argsCallbacks)
189
var
persistenceAnnotation = garnet.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
201
Assert.True(garnet.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
204
foreach (
var
argsAnnotation in argsCallbacks)
220
var
persistenceAnnotation = garnet.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
233
Assert.True(garnet.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
236
foreach (
var
argsAnnotation in argsCallbacks)
252
Assert.True(garnet.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsAnnotations));
Aspire.Hosting.Redis.Tests (11)
AddRedisTests.cs (11)
309
Assert.True(redis.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
312
foreach (
var
argsAnnotation in argsCallbacks)
328
var
persistenceAnnotation = redis.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
340
Assert.True(redis.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
343
foreach (
var
argsAnnotation in argsCallbacks)
359
var
persistenceAnnotation = redis.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
372
Assert.True(redis.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
375
foreach (
var
argsAnnotation in argsCallbacks)
391
Assert.True(redis.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsAnnotations));
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (2)
12
if (resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var exeArgsCallbacks))
17
foreach (
var
exeArgsCallback in exeArgsCallbacks)
Aspire.Hosting.Valkey.Tests (11)
AddValkeyTests.cs (11)
170
Assert.True(valkey.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
173
foreach (
var
argsAnnotation in argsCallbacks)
189
var
persistenceAnnotation = valkey.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
201
Assert.True(valkey.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
204
foreach (
var
argsAnnotation in argsCallbacks)
220
var
persistenceAnnotation = valkey.Resource.Annotations.OfType<
CommandLineArgsCallbackAnnotation
>().SingleOrDefault();
233
Assert.True(valkey.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsCallbacks));
236
foreach (
var
argsAnnotation in argsCallbacks)
252
Assert.True(valkey.Resource.TryGetAnnotationsOfType<
CommandLineArgsCallbackAnnotation
>(out var argsAnnotations));