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

An Client Message Inspector that sets the user-agent for the service call.
상속: IClientMessageInspector
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
AfterReceiveReply ( Message &reply, object correlationState ) : void

Processes the reply message.

This does nothing.

BeforeSendRequest ( Message &request, IClientChannel channel ) : object

Processes the request message.

This adds the specified user-agent to the request.

HttpUserAgentMessageInspector ( string userAgent ) : System.ServiceModel

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

메소드 상세

AfterReceiveReply() 공개 메소드

Processes the reply message.
This does nothing.
public AfterReceiveReply ( Message &reply, object correlationState ) : void
reply Message The received reply to process.
correlationState object The correlation state.
리턴 void

BeforeSendRequest() 공개 메소드

Processes the request message.
This adds the specified user-agent to the request.
public BeforeSendRequest ( Message &request, IClientChannel channel ) : object
request Message The request to process.
channel IClientChannel The client channel.
리턴 object

HttpUserAgentMessageInspector() 공개 메소드

A simple constructor that initializes the object with the given values.
public HttpUserAgentMessageInspector ( string userAgent ) : System.ServiceModel
userAgent string The user agent to use for the service calls.
리턴 System.ServiceModel