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