C# Class Brod.Network.RequestSender

Inheritance: IDisposable
Mostra file Open project: paralect/brod Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Push ( Request request ) : void
RequestSender ( String address, ZMQ socketType, ZMQ context ) : System
Send ( Request request ) : Response

Private Methods

Method Description
CreateSocket ( ZMQ socketType ) : Socket
Protocolize ( String address ) : String

Insures that protocol is specified. If it doesn't - use tcp://

Send ( Request request, bool responseAvailable ) : Response

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Push() public method

public Push ( Request request ) : void
request Brod.Contracts.Requests.Request
return void

RequestSender() public method

public RequestSender ( String address, ZMQ socketType, ZMQ context ) : System
address String
socketType ZMQ
context ZMQ
return System

Send() public method

public Send ( Request request ) : Response
request Brod.Contracts.Requests.Request
return Brod.Contracts.Responses.Response