public Task Post(SendFullGeneralCommand request) { var currentSession = GetSession(_sessionContext); request.ControllingUserId = currentSession.UserId; return(_sessionManager.SendGeneralCommand(currentSession.Id, request.Id, request, CancellationToken.None)); }
public void Post(SendFullGeneralCommand request) { var currentSession = GetSession(_sessionContext).Result; request.ControllingUserId = currentSession.UserId.HasValue ? currentSession.UserId.Value.ToString("N") : null; var task = _sessionManager.SendGeneralCommand(currentSession.Id, request.Id, request, CancellationToken.None); Task.WaitAll(task); }