Last active
August 29, 2015 14:13
-
-
Save jpda/4c3570ca72252564279f to your computer and use it in GitHub Desktop.
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
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