C# Class AdjustTest.Pcl.MockHttpMessageHandler

Inheritance: System.Net.Http.HttpMessageHandler
显示文件 Open project: adjust/windows_sdk Class Usage Examples

Private Properties

Property Type Description
GetMockResponse Task
GetOkResponse Task

Public Methods

Method Description
MockHttpMessageHandler ( MockLogger mockLogger ) : System.IO

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, System cancellationToken ) : Task

Private Methods

Method Description
GetMockResponse ( string responseMessage, HttpStatusCode responseStatusCode ) : Task
GetOkResponse ( string responseMessage ) : Task

Method Details

MockHttpMessageHandler() public method

public MockHttpMessageHandler ( MockLogger mockLogger ) : System.IO
mockLogger MockLogger
return System.IO

SendAsync() protected method

protected SendAsync ( HttpRequestMessage request, System cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System
return Task