C# Class System.Net.Http.OwinHttpMessageHandler

Represents an HttpMessageHanlder that can invoke a request directly against an OWIN pipeline (an 'AppFunc').
Inheritance: HttpMessageHandler
Afficher le fichier Open project: damianh/OwinHttpMessageHandler Class Usage Examples

Méthodes publiques

Méthode Description
OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task> appFunc ) : System

Initializes a new instance of the OwinHttpMessageHandler class.

OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> midFunc ) : System

Initializes a new instance of the OwinHttpMessageHandler class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Private Methods

Méthode Description
CheckDisposed ( ) : void
CheckDisposedOrStarted ( ) : void
CheckSetCookie ( HttpRequestMessage request, HttpResponseMessage response ) : void
IsBodylessRequest ( HttpRequestMessage req ) : bool
IsRedirectToGet ( int code ) : bool
SendInternalAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OwinHttpMessageHandler() public méthode

Initializes a new instance of the OwinHttpMessageHandler class.
appFunc
public OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task> appFunc ) : System
appFunc System.Func,System.Threading.Tasks.Task> An OWIN application function.
Résultat System

OwinHttpMessageHandler() public méthode

Initializes a new instance of the OwinHttpMessageHandler class.
midFunc
public OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> midFunc ) : System
midFunc System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> An OWIN middleware function that will be terminated with a 404 Not Found.
Résultat System

SendAsync() protected méthode

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request HttpRequestMessage
cancellationToken System.Threading.CancellationToken
Résultat Task