void NotifySessionClose(uint session) { if (SessionCloseHandler != null) { SessionCloseHandler.Invoke(session); } }
public FunapiNetwork(FunapiTransport transport, bool session_reliability, SessionInitHandler on_session_initiated, SessionCloseHandler on_session_closed) : this(session_reliability) { OnSessionInitiated += new SessionInitHandler(on_session_initiated); OnSessionClosed += new SessionCloseHandler(on_session_closed); AttachTransport(transport); SetDefaultProtocol(transport.Protocol); }