C# Class TimeoutHandlerSample.MessageHandlers.DotNet4TimeoutHandler

Inheritance: System.Net.Http.DelegatingHandler
Mostra file Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
DotNet4TimeoutHandler ( int milliseconds ) : System

Protected Methods

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

Private Methods

Method Description
TimerCallbackLogic ( object obj ) : void

Method Details

DotNet4TimeoutHandler() public method

public DotNet4TimeoutHandler ( int milliseconds ) : System
milliseconds int
return System

SendAsync() protected method

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