37 references to TryGetAnnotationsOfType
Aspire.Hosting (11)
ApplicationModel\ResourceExtensions.cs (5)
103
return
TryGetAnnotationsOfType
(resource, out result);
147
return
TryGetAnnotationsOfType
(resource, out environmentVariables);
230
return
TryGetAnnotationsOfType
<ContainerMountAnnotation>(resource, out volumeMounts);
241
return
TryGetAnnotationsOfType
(resource, out endpoints);
251
if (
TryGetAnnotationsOfType
<EndpointAnnotation>(resource, out var endpoints))
Dcp\ApplicationExecutor.cs (3)
1328
if (er.ModelResource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks))
1683
if (modelContainerResource.
TryGetAnnotationsOfType
<ContainerRuntimeArgsCallbackAnnotation>(out var runArgsCallback))
1714
if (modelContainerResource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallback))
Publishing\ManifestPublishingContext.cs (2)
489
if (resource.
TryGetAnnotationsOfType
<EnvironmentCallbackAnnotation>(out var callbacks))
524
if (resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallback))
ResourceBuilderExtensions.cs (1)
601
if (!builder.Resource.
TryGetAnnotationsOfType
<EndpointAnnotation>(out var endpoints))
Aspire.Hosting.Azure.Tests (8)
AzurePostgresExtensionsTests.cs (3)
375
Assert.True(postgresResourceInModel.
TryGetAnnotationsOfType
<Dummy1Annotation>(out var postgresAnnotations1));
378
Assert.True(postgresResourceInModel.
TryGetAnnotationsOfType
<Dummy2Annotation>(out var postgresAnnotations2));
381
Assert.True(dbResourceInModel.
TryGetAnnotationsOfType
<Dummy1Annotation>(out var dbAnnotations));
AzureRedisExtensionsTests.cs (2)
183
Assert.True(cacheInModel.
TryGetAnnotationsOfType
<Dummy1Annotation>(out var cacheAnnotations1));
186
Assert.True(cacheInModel.
TryGetAnnotationsOfType
<Dummy2Annotation>(out var cacheAnnotations2));
AzureSqlExtensionsTests.cs (3)
223
Assert.True(sqlResourceInModel.
TryGetAnnotationsOfType
<Dummy1Annotation>(out var sqlAnnotations1));
226
Assert.True(sqlResourceInModel.
TryGetAnnotationsOfType
<Dummy2Annotation>(out var sqlAnnotations2));
229
Assert.True(dbResourceInModel.
TryGetAnnotationsOfType
<Dummy1Annotation>(out var dbAnnotations));
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
80
if (componentReferenceAnnotation.Component.
TryGetAnnotationsOfType
<WaitAnnotation>(out var componentWaitAnnotations))
Aspire.Hosting.Garnet.Tests (4)
AddGarnetTests.cs (4)
170
Assert.True(garnet.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
201
Assert.True(garnet.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
233
Assert.True(garnet.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
252
Assert.True(garnet.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));
Aspire.Hosting.Redis.Tests (4)
AddRedisTests.cs (4)
309
Assert.True(redis.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
340
Assert.True(redis.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
372
Assert.True(redis.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
391
Assert.True(redis.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));
Aspire.Hosting.Tests (5)
Utils\ArgumentEvaluator.cs (1)
12
if (resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks))
WaitForTests.cs (1)
352
Assert.True(containerResource.Resource.
TryGetAnnotationsOfType
<WaitAnnotation>(out var waitAnnotations));
WithEndpointTests.cs (3)
119
Assert.False(projectA.Resource.
TryGetAnnotationsOfType
<EndpointAnnotation>(out var annotations));
136
Assert.True(projectA.Resource.
TryGetAnnotationsOfType
<EndpointAnnotation>(out _));
153
Assert.True(projectA.Resource.
TryGetAnnotationsOfType
<EndpointAnnotation>(out _));
Aspire.Hosting.Valkey.Tests (4)
AddValkeyTests.cs (4)
170
Assert.True(valkey.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
201
Assert.True(valkey.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
233
Assert.True(valkey.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsCallbacks));
252
Assert.True(valkey.Resource.
TryGetAnnotationsOfType
<CommandLineArgsCallbackAnnotation>(out var argsAnnotations));