18 references to Client
Aspire.Hosting.Native.Client (2)
NativeProviderDefinition.cs (2)
76Client.InvokeGuestCallbackAsync(callback, arguments); 114Client.GetHandle(resource.Declaration)), NativeProviderJsonContext.Default.NativeProviderResourceWire);
Aspire.Hosting.Native.Core.Tests (4)
NativeProviderClientTests.cs (1)
373var composition = new Composition(context.Client, args.GetProperty("composition"));
TestServices\LifecycleProviderTestIntegration.cs (3)
73var composition = new Composition(context.Client, arguments.GetProperty("composition")); 75await declaration.WithEnvironmentAsync("TOKEN", new DeclaredValue(context.Client, arguments.GetProperty("password"))); 92var scope = new ResourceLifecycleScope(context.Client, arguments.GetProperty("scope"));
NativeIntegrations.Contracts (2)
artifacts\obj\NativeIntegrations.Contracts\Debug\provider-contract\ProviderContract.g.cs (2)
17var 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); 22var 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)
17var 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); 23return context.Client.GetHandle(result); 28return context.Client.GetHandle(result); 32await 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); 37await 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); 42await 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); 47await 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); 57var 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); 58return context.Client.GetHandle(result);