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