C# 클래스 Nexus.Client.ModRepositories.Nexus.HttpUserAgentEndpointBehaviour

An HTTP Endpoint Behaviour that sets the user-agent for the service call.
상속: System.ServiceModel.Description.WebHttpBehavior
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
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