1 write to _providers
Aspire.Hosting.Native.Server (1)
Rpc\NativeRpcConnection.cs (1)
45
_providers
= providers;
19 references to _providers
Aspire.Hosting.Native.Server (19)
Rpc\NativeRpcConnection.cs (1)
499
_providers
?.Disconnect(this);
Rpc\NativeRpcConnection.Dispatch.cs (18)
54
_providers
?.IsProvider(this) == true)
87
if (
_providers
is not null)
89
if (
_providers
.IsProvider(this))
91
return await
_providers
.InvokeCoreAsync(this, capabilityId, capabilityArguments).ConfigureAwait(false);
95
return await
_providers
.InvokeAsync(this, capabilityId, capabilityArguments).ConfigureAwait(false);
107
if (
_providers
is null || parameters is not null and not JsonArray { Count: 0 })
111
return
_providers
.InspectCapabilities();
113
if (
_providers
is null || parameters is not JsonArray { Count: 1 } expectation ||
_providers
.IsProvider(this))
117
return JsonValue.Create(
_providers
.Expect(this, RpcArguments.String(expectation[0])));
119
if (
_providers
is null || _peer is null || parameters is not JsonArray { Count: 1 } registration)
123
await
_providers
.RegisterAsync(this, RpcArguments.String(registration[0]), _peer).ConfigureAwait(false);
126
if (
_providers
is null || parameters is not JsonArray { Count: 1 } activation)
130
await
_providers
.WaitRegistrationAsync(this, RpcArguments.String(activation[0])).ConfigureAwait(false);
133
if (
_providers
is null || parameters is not JsonArray { Count: 1 } abandonment)
137
return JsonValue.Create(
_providers
.AbandonRegistration(this, RpcArguments.String(abandonment[0])));
139
if (
_providers
is null || parameters is not JsonArray { Count: 2 } callback || callback[1] is not JsonObject callbackArguments)
143
return await
_providers
.InvokeCallbackAsync(this, RpcArguments.String(callback[0]), callbackArguments).ConfigureAwait(false);