C# Class WebApiService.Code.WebApiErrorResponseBuilder

显示文件 Open project: dotnetjunkie/solidservices Class Usage Examples

Public Methods

Method Description
CreateErrorResponseOrNull ( Exception thrownException, HttpRequestMessage request ) : HttpResponseMessage
GetValueOrNull ( this headers, string name ) : string

Method Details

CreateErrorResponseOrNull() public static method

public static CreateErrorResponseOrNull ( Exception thrownException, HttpRequestMessage request ) : HttpResponseMessage
thrownException System.Exception
request System.Net.Http.HttpRequestMessage
return System.Net.Http.HttpResponseMessage

GetValueOrNull() public static method

public static GetValueOrNull ( this headers, string name ) : string
headers this
name string
return string