2 instantiations of RadiusSecretStoreResource
Aspire.Hosting.Radius (2)
Secrets\RadiusSecretStoreExtensions.cs (2)
64var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Application); 113var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Environment)
56 references to RadiusSecretStoreResource
Aspire.Hosting.Radius (52)
Publishing\RadiusInfrastructureBuilder.cs (10)
566IReadOnlyList<RadiusSecretStoreResource> stores, 585foreach (var store in stores) 1924private IEnumerable<RadiusSecretStoreResource> GetSecretStoresForScope() 1926return _model.Resources.OfType<RadiusSecretStoreResource>().Where(s => 1938IReadOnlyList<RadiusSecretStoreResource> stores, 1944foreach (var store in stores) 2057RadiusSecretStoreResource store, 2081private void PopulateInlineSecretStoreData(RadiusSecretStoreResource store, RadiusSecretStoreConstruct construct) 2113RadiusSecretStoreResource store, 2137private string ResolveSecretResourceReference(RadiusSecretStoreResource store, RadiusInfrastructureOptions options)
Publishing\SealedSecretApplyStep.cs (4)
83foreach (var store in stores) 96RadiusSecretStoreResource store, 199private List<RadiusSecretStoreResource> GetSealedStores(DistributedApplicationModel model) => 200model.Resources.OfType<RadiusSecretStoreResource>()
Secrets\RadiusSecretStoreConsumer.cs (2)
22/// A wiring that references a <see cref="RadiusSecretStoreResource"/> from one of its 31RadiusSecretStoreResource Store,
Secrets\RadiusSecretStoreConsumerExtensions.cs (4)
33IResourceBuilder<RadiusSecretStoreResource> store) 46IResourceBuilder<RadiusSecretStoreResource> store) 61IResourceBuilder<RadiusSecretStoreResource> store, 72IResourceBuilder<RadiusSecretStoreResource> store,
Secrets\RadiusSecretStoreExtensions.cs (16)
29/// <returns>A builder for the new <see cref="RadiusSecretStoreResource"/>.</returns> 56public static IResourceBuilder<RadiusSecretStoreResource> AddRadiusSecretStore( 64var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Application); 107Action<IResourceBuilder<RadiusSecretStoreResource>> configure) 113var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Environment) 136public static IResourceBuilder<RadiusSecretStoreResource> WithData( 137this IResourceBuilder<RadiusSecretStoreResource> store, 177public static IResourceBuilder<RadiusSecretStoreResource> WithData( 178this IResourceBuilder<RadiusSecretStoreResource> store, 200public static IResourceBuilder<RadiusSecretStoreResource> WithExistingSecret( 201this IResourceBuilder<RadiusSecretStoreResource> store, 234public static IResourceBuilder<RadiusSecretStoreResource> WithSealedSecret( 235this IResourceBuilder<RadiusSecretStoreResource> store, 273public static IResourceBuilder<RadiusSecretStoreResource> WithMaterializationTimeout( 274this IResourceBuilder<RadiusSecretStoreResource> store, 370private static void EnsureNotAlreadyPopulated(RadiusSecretStoreResource store)
Secrets\RadiusSecretStorePopulation.cs (1)
16/// The single population mode of a <see cref="RadiusSecretStoreResource"/>. Exactly one
Secrets\RadiusSecretStoreValidation.cs (15)
74.OfType<RadiusSecretStoreResource>() 104var stores = model.Resources.OfType<RadiusSecretStoreResource>().ToList(); 110foreach (var store in stores) 119private static void ValidateStore(RadiusSecretStoreResource store) 243var store = consumer.Store; 325RadiusSecretStoreResource store, 341private static void ValidateNoDuplicateNames(IReadOnlyList<RadiusSecretStoreResource> stores) 348var appScoped = new Dictionary<string, RadiusSecretStoreResource>(StringComparer.Ordinal); 349var envScoped = new Dictionary<(string? EnvironmentName, string Identifier), RadiusSecretStoreResource>(); 351foreach (var store in stores) 357if (appScoped.TryGetValue(identifier, out var appCollision)) 373if (envScoped.TryGetValue(envKey, out var sameEnvironmentCollision)) 378if (appScoped.TryGetValue(identifier, out var applicationCollision)) 388RadiusSecretStoreResource existing, 389RadiusSecretStoreResource store,
Aspire.Hosting.Radius.Tests (4)
Secrets\AddRadiusSecretStoreTests.cs (3)
29Assert.Single(model.Resources.OfType<RadiusSecretStoreResource>()); 45var store = Assert.Single(model.Resources.OfType<RadiusSecretStoreResource>());
Secrets\SecretStoreDefaultPathTests.cs (1)
45Assert.Empty(model.Resources.OfType<RadiusSecretStoreResource>());