A Xbox Live enabled Session implementation
Inheritance: Session
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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();
        }