C# 클래스 Halibut.Transport.Protocol.MessageExchangeProtocol

Implements the core message exchange protocol for both the client and server.
파일 보기 프로젝트 열기: OctopusDeploy/Halibut 1 사용 예제들

공개 메소드들

메소드 설명
ExchangeAsClient ( RequestMessage request ) : Halibut.Transport.Protocol.ResponseMessage
ExchangeAsServer ( ResponseMessage>.Func incomingRequestProcessor, IPendingRequestQueue>.Func pendingRequests ) : void
ExchangeAsSubscriber ( Uri subscriptionId, ResponseMessage>.Func incomingRequestProcessor, int maxAttempts = int.MaxValue ) : void
MessageExchangeProtocol ( IMessageExchangeStream stream ) : System
MessageExchangeProtocol ( Stream stream, ILog log ) : System

비공개 메소드들

메소드 설명
InvokeAndWrapAnyExceptions ( RequestMessage request, ResponseMessage>.Func incomingRequestProcessor ) : Halibut.Transport.Protocol.ResponseMessage
PrepareExchangeAsClient ( ) : void
ProcessClientRequests ( ResponseMessage>.Func incomingRequestProcessor ) : void
ProcessSubscriber ( IPendingRequestQueue pendingRequests ) : void
ReceiveAndProcessRequest ( IMessageExchangeStream stream, ResponseMessage>.Func incomingRequestProcessor ) : void

메소드 상세

ExchangeAsClient() 공개 메소드

public ExchangeAsClient ( RequestMessage request ) : Halibut.Transport.Protocol.ResponseMessage
request RequestMessage
리턴 Halibut.Transport.Protocol.ResponseMessage

ExchangeAsServer() 공개 메소드

public ExchangeAsServer ( ResponseMessage>.Func incomingRequestProcessor, IPendingRequestQueue>.Func pendingRequests ) : void
incomingRequestProcessor ResponseMessage>.Func
pendingRequests IPendingRequestQueue>.Func
리턴 void

ExchangeAsSubscriber() 공개 메소드

public ExchangeAsSubscriber ( Uri subscriptionId, ResponseMessage>.Func incomingRequestProcessor, int maxAttempts = int.MaxValue ) : void
subscriptionId System.Uri
incomingRequestProcessor ResponseMessage>.Func
maxAttempts int
리턴 void

MessageExchangeProtocol() 공개 메소드

public MessageExchangeProtocol ( IMessageExchangeStream stream ) : System
stream IMessageExchangeStream
리턴 System

MessageExchangeProtocol() 공개 메소드

public MessageExchangeProtocol ( Stream stream, ILog log ) : System
stream Stream
log ILog
리턴 System