Aegis.Network.Session.Session C# (CSharp) Method

Session() public method

public Session ( NetworkMethodType methodType ) : System
methodType NetworkMethodType
return System
        public Session(NetworkMethodType methodType)
        {
            Interlocked.Increment(ref NextSessionId);
            SessionId = NextSessionId;

            AwaitableMethod = new AwaitableMethod(this);
            MethodType = methodType;

            if (MethodType == NetworkMethodType.AsyncResult)
                _method = new SessionMethodAsyncResult(this);

            if (MethodType == NetworkMethodType.AsyncEvent)
                _method = new SessionMethodAsyncEvent(this);
        }

Same methods

Session::Session ( ) : System