C# Класс DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ClientChannel

The messaging channel used by OAuth 2.0 Clients.
Наследование: DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ChannelBase
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
CreateHttpRequest ( IDirectedProtocolMessage request ) : HttpWebRequest

Prepares an HTTP request that carries a given message.

This method must be overridden by a derived class, unless the Channel.RequestCore method is overridden and does not require this method.

PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Queues a message for sending in the response stream where the fields are sent in the response stream in querystring style.

This method implements spec OAuth V1.0 section 5.3.

ReadFromRequestCore ( System.Web.HttpRequestBase request ) : IDirectedProtocolMessage

Gets the protocol message that may be embedded in the given HTTP request.

ReadFromResponseCore ( DotNetOpenAuth.Messaging.IncomingWebResponse response ) : string>.IDictionary

Gets the protocol message that may be in the given HTTP response.

Приватные методы

Метод Описание
OAuth2ClientChannel ( ) : System

Initializes a new instance of the OAuth2ClientChannel class.

Описание методов

CreateHttpRequest() защищенный Метод

Prepares an HTTP request that carries a given message.
This method must be overridden by a derived class, unless the Channel.RequestCore method is overridden and does not require this method.
protected CreateHttpRequest ( IDirectedProtocolMessage request ) : HttpWebRequest
request IDirectedProtocolMessage The message to send.
Результат System.Net.HttpWebRequest

PrepareDirectResponse() защищенный Метод

Queues a message for sending in the response stream where the fields are sent in the response stream in querystring style.
This method implements spec OAuth V1.0 section 5.3.
protected PrepareDirectResponse ( IProtocolMessage response ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
response IProtocolMessage The message to send as a response.
Результат DotNetOpenAuth.Messaging.OutgoingWebResponse

ReadFromRequestCore() защищенный Метод

Gets the protocol message that may be embedded in the given HTTP request.
protected ReadFromRequestCore ( System.Web.HttpRequestBase request ) : IDirectedProtocolMessage
request System.Web.HttpRequestBase The request to search for an embedded message.
Результат IDirectedProtocolMessage

ReadFromResponseCore() защищенный Метод

Gets the protocol message that may be in the given HTTP response.
Thrown when the response is not valid.
protected ReadFromResponseCore ( DotNetOpenAuth.Messaging.IncomingWebResponse response ) : string>.IDictionary
response DotNetOpenAuth.Messaging.IncomingWebResponse The response that is anticipated to contain an protocol message.
Результат string>.IDictionary