C# Класс Nexus.Client.ModRepositories.Nexus.HttpUserAgentEndpointBehaviour

An HTTP Endpoint Behaviour that sets the user-agent for the service call.
Наследование: System.ServiceModel.Description.WebHttpBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyClientBehavior ( ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void

Injects the user agent into the service request.

HttpUserAgentEndpointBehaviour ( string userAgent ) : System.ServiceModel.Description

A simple constructor that initializes the object with the given values.

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

ApplyClientBehavior() публичный Метод

Injects the user agent into the service request.
public ApplyClientBehavior ( ServiceEndpoint endpoint, ClientRuntime clientRuntime ) : void
endpoint System.ServiceModel.Description.ServiceEndpoint The enpoint of the service for which to set the user-agent.
clientRuntime System.ServiceModel.Dispatcher.ClientRuntime The client runtime.
Результат void

HttpUserAgentEndpointBehaviour() публичный Метод

A simple constructor that initializes the object with the given values.
public HttpUserAgentEndpointBehaviour ( string userAgent ) : System.ServiceModel.Description
userAgent string The user agent to use for the service calls.
Результат System.ServiceModel.Description