private uint HandleEventConnected(ConnectionEvent connectionEvent) { SOCKADDR_INET inetAddress = MsQuicParameterHelpers.GetINetParam(MsQuicApi.Api, _ptr, (uint)QUIC_PARAM_LEVEL.CONNECTION, (uint)QUIC_PARAM_CONN.LOCAL_ADDRESS); _localEndPoint = MsQuicAddressHelpers.INetToIPEndPoint(inetAddress); _connected = true; // I don't believe we need to lock here because // handle event connected will not be called at the same time as // handle event shutdown initiated by transport _connectTcs.Complete(MsQuicStatusCodes.Success); return(MsQuicStatusCodes.Success); }
private uint HandleEventShutdownComplete(ConnectionEvent connectionEvent) { if (NetEventSource.IsEnabled) { NetEventSource.Enter(this); } _shutdownTcs.Complete(MsQuicStatusCodes.Success); if (NetEventSource.IsEnabled) { NetEventSource.Exit(this); } return(MsQuicStatusCodes.Success); }
private uint HandleEventShutdownComplete(ConnectionEvent connectionEvent) { _shutdownTcs.Complete(MsQuicStatusCodes.Success); return(MsQuicStatusCodes.Success); }