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