/// <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(); }
/// <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(); }