18 references to Client
Aspire.Hosting.Native.Client (2)
NativeProviderDefinition.cs (2)
76
Client
.InvokeGuestCallbackAsync(callback, arguments);
114
Client
.GetHandle(resource.Declaration)), NativeProviderJsonContext.Default.NativeProviderResourceWire);
Aspire.Hosting.Native.Core.Tests (4)
NativeProviderClientTests.cs (1)
373
var composition = new Composition(context.
Client
, args.GetProperty("composition"));
TestServices\LifecycleProviderTestIntegration.cs (3)
73
var composition = new Composition(context.
Client
, arguments.GetProperty("composition"));
75
await declaration.WithEnvironmentAsync("TOKEN", new DeclaredValue(context.
Client
, arguments.GetProperty("password")));
92
var scope = new ResourceLifecycleScope(context.
Client
, arguments.GetProperty("scope"));
NativeIntegrations.Contracts (2)
artifacts\obj\NativeIntegrations.Contracts\Debug\provider-contract\ProviderContract.g.cs (2)
17
var result = await global::NativeIntegrations.ExternalApi.ExternalApiExtensions.AddExternalApi(new global::Aspire.Hosting.Native.Client.Composition(context.
Client
, args.GetProperty("composition")), args.GetProperty("name").GetString()!, args.GetProperty("baseUrl").GetString()!).ConfigureAwait(false);
22
var result = await context.ReadResource<global::NativeIntegrations.ExternalApi.ExternalApiResource>(args.GetProperty("context")).WithApiKey(new global::Aspire.Hosting.Native.Client.DeclaredValue(context.
Client
, args.GetProperty("apiKey"))).ConfigureAwait(false);
NativeIntegrations.Redis.Contracts (10)
artifacts\obj\NativeIntegrations.Redis.Contracts\Debug\provider-contract\ProviderContract.g.cs (10)
17
var result = await global::NativeIntegrations.Redis.RedisExtensions.AddRedis(new global::Aspire.Hosting.Native.Client.Composition(context.
Client
, args.GetProperty("composition")), args.GetProperty("name").GetString()!, new global::Aspire.Hosting.Native.Client.DeclaredValue(context.
Client
, args.GetProperty("password")), context.CancellationToken).ConfigureAwait(false);
23
return context.
Client
.GetHandle(result);
28
return context.
Client
.GetHandle(result);
32
await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Initialize(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.
Client
, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false);
37
await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Allocated(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.
Client
, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false);
42
await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Ready(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.
Client
, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false);
47
await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Retiring(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.
Client
, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false);
57
var result = await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).WithReference(new global::Aspire.Hosting.Native.Client.DeclaredResource(context.
Client
, args.GetProperty("consumer")), args.GetProperty("environmentName").GetString()!).ConfigureAwait(false);
58
return context.
Client
.GetHandle(result);