Esempio n. 1
0
        public ActionResult SyncPlayLeaveGroup()
        {
            var currentSession = RequestHelpers.GetSession(_sessionManager, _authorizationContext, Request);

            _syncPlayManager.LeaveGroup(currentSession, CancellationToken.None);
            return(NoContent());
        }
        public async Task <ActionResult> SyncPlayLeaveGroup()
        {
            var currentSession = await RequestHelpers.GetSession(_sessionManager, _authorizationContext, Request).ConfigureAwait(false);

            var syncPlayRequest = new LeaveGroupRequest();

            _syncPlayManager.LeaveGroup(currentSession, syncPlayRequest, CancellationToken.None);
            return(NoContent());
        }
Esempio n. 3
0
        /// <summary>
        /// Handles the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(SyncPlayLeave request)
        {
            var currentSession = GetSession(_sessionContext);

            _syncPlayManager.LeaveGroup(currentSession, CancellationToken.None);
        }