예제 #1
0
파일: Extension.cs 프로젝트: linzroe/wechat
 public static Task <HttpResponseMessage> ToHttpResponseAsync(this ResponseBase response)
 {
     return(Task.FromResult(HttpResponseMessageHelper.GetJsonOk(response)));
 }
예제 #2
0
 public static Task<HttpResponseMessage> ToHttpResponseAsync(this object response, Dictionary<string, string> headers = null)
 {
     return Task.FromResult(HttpResponseMessageHelper.GetJsonOk(response, headers));
 }
예제 #3
0
파일: Extension.cs 프로젝트: linzroe/wechat
 public static HttpResponseMessage ToHttpResponse(this ResponseBase response)
 {
     return(HttpResponseMessageHelper.GetJsonOk(response));
 }
예제 #4
0
 public static HttpResponseMessage ToHttpResponse(this ResponseBase response, Dictionary<string, string> headers = null)
 {
     return HttpResponseMessageHelper.GetJsonOk(response, headers);
 }