A Xbox Live enabled Session implementation
상속: Session
예제 #1
0
        /// <summary>
        /// Raised when the the player joined the Session
        /// </summary>
        /// <param name="asyncResult"></param>
        private void OnLiveSessionJoined(IAsyncResult asyncResult)
        {
            NetworkSession networkSession = NetworkSession.EndJoin(asyncResult);

            CurrentSession = new LiveSession(networkSession);

            OnSessionJoined();
        }
예제 #2
0
        /// <summary>
        /// Raised when the Session is created
        /// </summary>
        /// <param name="asyncResult"></param>
        private void OnLiveSessionCreated(IAsyncResult asyncResult)
        {
            _networkSession = NetworkSession.EndCreate(asyncResult);

            CurrentSession = new LiveSession(_networkSession);

            OnSessionCreated();
        }
예제 #3
0
        /// <summary>
        /// Raised when the the player joined the Session
        /// </summary>
        /// <param name="asyncResult"></param>
        private void OnLiveSessionJoined(IAsyncResult asyncResult)
        {
            NetworkSession networkSession = NetworkSession.EndJoin(asyncResult);
            CurrentSession = new LiveSession(networkSession);

            OnSessionJoined();
        }
예제 #4
0
        /// <summary>
        /// Raised when the Session is created
        /// </summary>
        /// <param name="asyncResult"></param>
        private void OnLiveSessionCreated(IAsyncResult asyncResult)
        {
            _networkSession = NetworkSession.EndCreate(asyncResult);

            CurrentSession = new LiveSession(_networkSession);

            OnSessionCreated();
        }