12 instantiations of JsonRpcCallbackInvoker
Aspire.Hosting.RemoteHost.Tests (12)
CallbackProxyTests.cs (2)
63
using var invoker = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
80
using var invoker = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
ExternalCapabilityRegistryTests.cs (7)
34
using var owner = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
309
await using var guestInvoker = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance, configuration, clock);
366
await using var guestInvoker = new
JsonRpcCallbackInvoker
(
637
new JsonObject { ["configure"] = "guest_callback" }, new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance));
672
using var firstOwner = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
673
using var secondOwner = sameGuest ? firstOwner : new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
723
using var owner = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance);
JsonRpcCallbackInvokerTests.cs (2)
34
await using var invoker = new
JsonRpcCallbackInvoker
(NullLogger<JsonRpcCallbackInvoker>.Instance, configuration, clock);
72
await using var invoker = new
JsonRpcCallbackInvoker
(
TestServices\IntegrationHostTestConnection.cs (1)
68
public JsonRpcCallbackInvoker CallbackInvoker { get; } =
new
(
45 references to JsonRpcCallbackInvoker
Aspire.Hosting.RemoteHost (20)
Ats\AtsCallbackProxyFactory.cs (1)
61
if (_invoker is
JsonRpcCallbackInvoker
rpcInvoker)
Ats\CapabilityDispatcher.cs (1)
546
string capabilityId, JsonObject? args,
JsonRpcCallbackInvoker
? ownerInvoker = null, CancellationToken cancellationToken = default)
Ats\ExternalCapabilityRegistry.cs (10)
31
private readonly ConcurrentDictionary<JsonRpc,
JsonRpcCallbackInvoker
> _integrationCallbackInvokers = new();
115
public void AddIntegrationHost(string registrationId, JsonRpc clientRpc,
JsonRpcCallbackInvoker
callbackInvoker)
147
var hasCallbacks = (_integrationCallbackInvokers.TryGetValue(clientRpc, out
var
invoker) &&
320
if ((_integrationCallbackInvokers.TryGetValue(previous, out
var
invoker) && invoker.StopAcceptingCallbacks()) ||
445
string capabilityId, JsonObject? args,
JsonRpcCallbackInvoker
? ownerInvoker = null, CancellationToken cancellationToken = default)
549
public (
JsonRpcCallbackInvoker
Invoker, string CallbackId)? ResolveCallbackOwner(string callbackId)
613
internal void RemoveGuestCallbacks(
JsonRpcCallbackInvoker
invoker)
634
private void RegisterCallbackOwners(ExternalCapabilityRegistration registration, JsonObject? args,
JsonRpcCallbackInvoker
? ownerInvoker, string invocationId)
656
if (_integrationCallbackInvokers.TryGetValue(registration.ClientRpc, out
var
hostInvoker))
831
JsonRpc Host,
JsonRpcCallbackInvoker
Invoker, string CallbackId, string InvocationId, string CapabilityId);
JsonRpcCallbackInvoker.cs (3)
24
private readonly ILogger<
JsonRpcCallbackInvoker
> _logger;
29
public JsonRpcCallbackInvoker(ILogger<
JsonRpcCallbackInvoker
> logger)
35
public JsonRpcCallbackInvoker(ILogger<
JsonRpcCallbackInvoker
> logger, IntegrationHostConfiguration configuration, TimeProvider timeProvider)
RemoteAppHostService.cs (3)
16
private readonly
JsonRpcCallbackInvoker
_callbackInvoker;
28
JsonRpcCallbackInvoker
callbackInvoker,
217
/// via the owning scope's <see cref="
JsonRpcCallbackInvoker
"/>.
RemoteHostServer.cs (2)
121
services.AddScoped<
JsonRpcCallbackInvoker
>();
122
services.AddScoped<ICallbackInvoker>(sp => sp.GetRequiredService<
JsonRpcCallbackInvoker
>());
Aspire.Hosting.RemoteHost.Tests (25)
CallbackProxyTests.cs (4)
63
using
var
invoker = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
80
using
var
invoker = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
ExternalCapabilityRegistryTests.cs (13)
34
using
var
owner = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
309
await using
var
guestInvoker = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance, configuration, clock);
366
await using
var
guestInvoker = new JsonRpcCallbackInvoker(
367
NullLogger<
JsonRpcCallbackInvoker
>.Instance, configuration, clock);
637
new JsonObject { ["configure"] = "guest_callback" }, new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance));
672
using
var
firstOwner = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
673
using
var
secondOwner = sameGuest ? firstOwner : new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
723
using
var
owner = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance);
JsonRpcAuthenticationTests.cs (2)
286
services.AddScoped<
JsonRpcCallbackInvoker
>();
287
services.AddScoped<ICallbackInvoker>(sp => sp.GetRequiredService<
JsonRpcCallbackInvoker
>());
JsonRpcCallbackInvokerTests.cs (4)
34
await using
var
invoker = new JsonRpcCallbackInvoker(NullLogger<
JsonRpcCallbackInvoker
>.Instance, configuration, clock);
72
await using
var
invoker = new JsonRpcCallbackInvoker(
73
NullLogger<
JsonRpcCallbackInvoker
>.Instance, IntegrationHostConfiguration.Default, new FakeTimeProvider());
TestServices\IntegrationHostTestConnection.cs (2)
68
public
JsonRpcCallbackInvoker
CallbackInvoker { get; } = new(
69
NullLogger<
JsonRpcCallbackInvoker
>.Instance,