28 references to Token
Aspire.Hosting.Native.Client (25)
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)
91
context.
Token
).ConfigureAwait(false)));
Authoring\Publishing.cs (7)
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)));
123
.WithComputeEnvironmentAsync(context.Declaration(environment.Resource), context.
Token
));
143
var current = await declaration.InspectResourceAsync(context.
Token
).ConfigureAwait(false);
148
}, context.
Token
).ConfigureAwait(false);
162
await context.Declaration(builder.Resource).WithExternalHttpEndpointsAsync(context.
Token
).ConfigureAwait(false));
178
await context.Declaration(builder.Resource).WithBindMountAsync(source, target, readOnly, context.
Token
).ConfigureAwait(false));
Authoring\Resource.cs (4)
68
public static ReferenceExpression Literal(string value) => new(context => context.Composition.CreateLiteralValueAsync(value, context.
Token
));
85
result = await result.ConcatValueAsync(await context.Value(part).ConfigureAwait(false), context.
Token
).ConfigureAwait(false);
94
await (await context.Value(this).ConfigureAwait(false)).EncodeUriValueAsync(context.
Token
).ConfigureAwait(false));
115
context.Composition.CreateEndpointValueAsync(context.Declaration(Resource), Name, property, context.
Token
));
Authoring\ResourceBuilderExtensions.cs (9)
48
.WithEnvironmentAsync(name, await context.Value(value).ConfigureAwait(false), context.
Token
).ConfigureAwait(false));
75
.WithArgumentAsync(await context.Value(argument).ConfigureAwait(false), context.
Token
).ConfigureAwait(false));
93
}, context.
Token
));
111
resource.ApplicationBuilder.Record(context => context.Declaration(resource.Resource).WithEntrypointAsync(entrypoint, context.
Token
));
123
resource.ApplicationBuilder.Record(context => context.Declaration(resource.Resource).WithVolumeAsync(name, target, false, context.
Token
));
139
await context.Value(context.Connection(producer.Resource)).ConfigureAwait(false), context.
Token
).ConfigureAwait(false));
154
.WaitForAsync(context.Declaration(dependency.Resource), context.
Token
));
171
await context.Value(value).ConfigureAwait(false), context.
Token
).ConfigureAwait(false);
174
captured.Bindings(), context.
Token
).ConfigureAwait(false);
NativeIntegrations.Redis.Contracts (3)
RedisBuilderExtensions.cs (3)
21
var cache = await context.Composition.AddRedisAsync(name, await context.Value(credential).ConfigureAwait(false), context.
Token
).ConfigureAwait(false);
22
var declaration = await cache.GetDeclarationAsync(context.
Token
).ConfigureAwait(false);
23
var connection = await cache.GetConnectionAsync(context.
Token
).ConfigureAwait(false);