public WampSessionCloseEventArgs (SessionCloseType closeType, long sessionId, GoodbyeAbortDetails details, string reason) { mReason = reason; mCloseType = closeType; mSessionId = sessionId; mDetails = details; }
private void TrySetCloseEventArgs(SessionCloseType sessionCloseType, GoodbyeAbortDetails details = null, string reason = null) { if (mCloseEventArgs == null) { mCloseEventArgs = new WampSessionCloseEventArgs (sessionCloseType, mSession, details, reason); } }
private void RaiseConnectionBroken(SessionCloseType sessionCloseType, GoodbyeAbortDetails details, string reason) { mConnectionBrokenRaised = true; WampSessionCloseEventArgs closeEventArgs = new WampSessionCloseEventArgs (sessionCloseType, mSession, details, reason); SetOpenTaskErrorIfNeeded(new WampConnectionBrokenException(closeEventArgs)); Interlocked.CompareExchange(ref mIsConnected, 0, 1); OnConnectionBroken(closeEventArgs); }
private void RaiseSessionClosed(SessionCloseType sessionCloseType, long session, GoodbyeAbortDetails details, string reason) { RaiseSessionClosed (new WampSessionCloseEventArgs(sessionCloseType, session, details, reason)); }