示例#1
0
        public async Task <GetAllSessionsResponse> Handle(GetAllSessionsRequest request, CancellationToken cancellationToken)
        {
            var errorMessage = string.Empty;

            try
            {
                var response = await _infoServiceWrapper.GetAllSessions(request.AccountId);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new GetAllSessionsResponse
            {
                Success = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage
            }));
        }