10 references to Composition
Aspire.Hosting.Native.Client (9)
Authoring\DistributedApplicationBuilder.cs (5)
52await context.Composition.AddContainerAsync(resource.Name, resource.Image, context.Token).ConfigureAwait(false))); 73await context.Composition.AddExecutableAsync(name, executablePath, workingDirectory, context.Token).ConfigureAwait(false))); 88? value is null ? await context.Composition.AddGeneratedSecretParameterAsync(name, context.Token).ConfigureAwait(false) : 89await context.Composition.AddSecretParameterAsync(name, value, context.Token).ConfigureAwait(false) 90: await context.Composition.CreateLiteralValueAsync(value ?? throw new ArgumentException("A nonsecret parameter requires a value."),
Authoring\Publishing.cs (2)
50await context.Composition.AddComputeEnvironmentAsync(resource.Name, resource.TypeId, context.Token).ConfigureAwait(false))); 65await context.Composition.AddConfiguredParameterAsync(name, secret, IsPublishMode, context.Token).ConfigureAwait(false)));
Authoring\Resource.cs (2)
68public static ReferenceExpression Literal(string value) => new(context => context.Composition.CreateLiteralValueAsync(value, context.Token)); 115context.Composition.CreateEndpointValueAsync(context.Declaration(Resource), Name, property, context.Token));
NativeIntegrations.Redis.Contracts (1)
RedisBuilderExtensions.cs (1)
21var cache = await context.Composition.AddRedisAsync(name, await context.Value(credential).ConfigureAwait(false), context.Token).ConfigureAwait(false);