Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <Microsoft.AspNetCore.Mvc.IActionResult> PolicyPost()
        {
            var result = await _implementation.PolicyPostAsync().ConfigureAwait(false);

            var status = result.StatusCode;

            Microsoft.AspNetCore.Mvc.ObjectResult response = new Microsoft.AspNetCore.Mvc.ObjectResult(result.Result)
            {
                StatusCode = status
            };

            foreach (var header in result.Headers)
            {
                Request.HttpContext.Response.Headers.Add(header.Key, new Microsoft.Extensions.Primitives.StringValues(header.Value.ToArray()));
            }

            return(response);
        }
Exemplo n.º 2
0
 public System.Threading.Tasks.Task <string> PolicyPost()
 {
     return(_implementation.PolicyPostAsync());
 }