2 instantiations of RadiusSecretStoreResource
Aspire.Hosting.Radius (2)
Secrets\RadiusSecretStoreExtensions.cs (2)
62var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Application); 111var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Environment)
56 references to RadiusSecretStoreResource
Aspire.Hosting.Radius (52)
Publishing\RadiusInfrastructureBuilder.cs (10)
800IReadOnlyList<RadiusSecretStoreResource> stores, 819foreach (var store in stores) 5536private IEnumerable<RadiusSecretStoreResource> GetSecretStoresForScope() 5538return _model.Resources.OfType<RadiusSecretStoreResource>().Where(s => 5550IReadOnlyList<RadiusSecretStoreResource> stores, 5556foreach (var store in stores) 5669RadiusSecretStoreResource store, 5693private void PopulateInlineSecretStoreData(RadiusSecretStoreResource store, RadiusSecretStoreConstruct construct) 5725RadiusSecretStoreResource store, 5749private string ResolveSecretResourceReference(RadiusSecretStoreResource store, RadiusInfrastructureOptions options)
Publishing\SealedSecretApplyStep.cs (4)
84foreach (var store in stores) 97RadiusSecretStoreResource store, 200private List<RadiusSecretStoreResource> GetSealedStores(DistributedApplicationModel model) => 201model.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)
27/// <returns>A builder for the new <see cref="RadiusSecretStoreResource"/>.</returns> 54public static IResourceBuilder<RadiusSecretStoreResource> AddRadiusSecretStore( 62var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Application); 105Action<IResourceBuilder<RadiusSecretStoreResource>> configure) 111var resource = new RadiusSecretStoreResource(name, type, RadiusSecretStoreScope.Environment) 134public static IResourceBuilder<RadiusSecretStoreResource> WithData( 135this IResourceBuilder<RadiusSecretStoreResource> store, 175public static IResourceBuilder<RadiusSecretStoreResource> WithData( 176this IResourceBuilder<RadiusSecretStoreResource> store, 198public static IResourceBuilder<RadiusSecretStoreResource> WithExistingSecret( 199this IResourceBuilder<RadiusSecretStoreResource> store, 232public static IResourceBuilder<RadiusSecretStoreResource> WithSealedSecret( 233this IResourceBuilder<RadiusSecretStoreResource> store, 271public static IResourceBuilder<RadiusSecretStoreResource> WithMaterializationTimeout( 272this IResourceBuilder<RadiusSecretStoreResource> store, 368private 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)
73.OfType<RadiusSecretStoreResource>() 103var stores = model.Resources.OfType<RadiusSecretStoreResource>().ToList(); 109foreach (var store in stores) 118private static void ValidateStore(RadiusSecretStoreResource store) 242var store = consumer.Store; 324RadiusSecretStoreResource store, 340private static void ValidateNoDuplicateNames(IReadOnlyList<RadiusSecretStoreResource> stores) 347var appScoped = new Dictionary<string, RadiusSecretStoreResource>(StringComparer.Ordinal); 348var envScoped = new Dictionary<(string? EnvironmentName, string Identifier), RadiusSecretStoreResource>(); 350foreach (var store in stores) 356if (appScoped.TryGetValue(identifier, out var appCollision)) 372if (envScoped.TryGetValue(envKey, out var sameEnvironmentCollision)) 377if (appScoped.TryGetValue(identifier, out var applicationCollision)) 387RadiusSecretStoreResource existing, 388RadiusSecretStoreResource store,
Aspire.Hosting.Radius.Tests (4)
Secrets\AddRadiusSecretStoreTests.cs (3)
28Assert.Single(model.Resources.OfType<RadiusSecretStoreResource>()); 44var store = Assert.Single(model.Resources.OfType<RadiusSecretStoreResource>());
Secrets\SecretStoreDefaultPathTests.cs (1)
44Assert.Empty(model.Resources.OfType<RadiusSecretStoreResource>());