-
-
Save anand374/b0e55138a5321abf24a5457546dd385e to your computer and use it in GitHub Desktop.
WCF Error Response Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TokenValidator | |
{ | |
internal class WcfErrorResponseData | |
{ | |
public WcfErrorResponseData(HttpStatusCode status) : this(status, string.Empty, new KeyValuePair<string, string>[0]) { } | |
public WcfErrorResponseData(HttpStatusCode status, string body) : this(status, body, new KeyValuePair<string, string>[0]) { } | |
public WcfErrorResponseData(HttpStatusCode status, string body, params KeyValuePair<string, string>[] headers) | |
{ | |
StatusCode = status; | |
Body = body; | |
Headers = headers; | |
} | |
public HttpStatusCode StatusCode | |
{ | |
private set; | |
get; | |
} | |
public string Body | |
{ | |
private set; | |
get; | |
} | |
public IList<KeyValuePair<string, string>> Headers | |
{ | |
private set; | |
get; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment