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