11 references to Connection
Aspire.Hosting.Native.Server (11)
Rpc\NativeProviderLifecycle.cs (2)
64
var connection = registration.
Connection
;
133
connection = resource.Registration.Disconnected ? null : resource.Registration.
Connection
;
Rpc\NativeProviderRegistry.cs (8)
223
var lease = registration.
Connection
.AddCallback(new ProviderCallback(caller, callbackId, signature));
264
Disconnect(registration.
Connection
);
269
Disconnect(registration.
Connection
);
406
return registration.
Connection
.AddReference(new DelegatedCoreReference(caller, handle.DeepClone().AsObject()), expectedType);
422
if (registration.
Connection
.ReadReference(handle.Wire, expectedType) is not DelegatedCoreReference delegated ||
431
registration.
Connection
.ReadReference(lifetime) is not DelegatedCoreReference backing ||
447
if (registration.Disconnected || registration.Owner.IsClosed || registration.
Connection
.IsClosed || registration.Peer.Closed.IsCancellationRequested)
545
public bool IsRevoked => Owner.IsClosed || Provider.Disconnected || Provider.
Connection
.IsClosed || !Owner.IsReferenceAlive(Lifetime);
Rpc\NativeRpcConnection.cs (1)
77
ProviderResourceReference resource => (resource.Provider.
Connection
, RpcArguments.String(resource.Handle["$handle"]), typeId),