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

            _syncPlayManager.LeaveGroup(currentSession, CancellationToken.None);
            return(NoContent());
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo 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);
        }