C# Class AltitudeAngelWings.ApiClient.Client.AltitudeAngelHttpHandlerFactory

Used to create an OAuth aware HTTP client.
Inheritance: Flurl.Http.Configuration.DefaultHttpClientFactory
显示文件 Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Methods

Method Description
AltitudeAngelHttpHandlerFactory ( string authUrl, DotNetOpenAuth.OAuth2.AuthorizationState existingState ) : System

Constructor.

ClearAuthState ( ) : void

Clear any pre-existing auth state. Will force log on the next time this handler is used for a request.

CreateMessageHandler ( ) : HttpMessageHandler

Create the message handler. Modify this to support different scopes.

Method Details

AltitudeAngelHttpHandlerFactory() public method

Constructor.
public AltitudeAngelHttpHandlerFactory ( string authUrl, DotNetOpenAuth.OAuth2.AuthorizationState existingState ) : System
authUrl string The base auth URL (scheme and host).
existingState DotNetOpenAuth.OAuth2.AuthorizationState Any existing state from a previous session.
return System

ClearAuthState() public method

Clear any pre-existing auth state. Will force log on the next time this handler is used for a request.
public ClearAuthState ( ) : void
return void

CreateMessageHandler() public method

Create the message handler. Modify this to support different scopes.
public CreateMessageHandler ( ) : HttpMessageHandler
return System.Net.Http.HttpMessageHandler