Пример #1
0
        public ApplicationErrorResponse LogApplicationError(ApplicationErrorRequest request)
        {
            var error = Mapper.Map <Error>(request);

            _logging.Log(error);
            return(new ApplicationErrorResponse());
        }
Пример #2
0
        public async Task ApplicationErrorAsync(ApplicationErrorRequest request)
        {
            var result = await HttpClient.SecurePostAsJsonAsync(Token, "api/Security/LogApplicationError", request);

            await EnsureApiResult <ApplicationErrorResponse>(result);
        }