protected AbstractSenderSocket(ISerializer serializer, IAddressBinder addressBinder, NetMQSocket socket) { _serializer = serializer; _addressBinder = addressBinder; _socket = socket; _addressBinder.ConnectOrBindAddress(socket); }
private static EasyZMqConfigurer CreateConfigurer(IAddressBinder addressBinder) { var configurer = new EasyZMqConfigurer(); RegisterAddressBinder(configurer, addressBinder); return(configurer); }
private static EasyZMqConfigurer CreateConfigurer(IAddressBinder addressBinder) { var configurer = new EasyZMqConfigurer(); RegisterAddressBinder(configurer, addressBinder); return configurer; }
private static IIntermediarySocket CreateIntermediarySocket(IAddressBinder frontendAddressBinder, IAddressBinder backendAddressBinder) { var frontendSocket = new NetMQ.Sockets.XSubscriberSocket(); var backendSocket = new NetMQ.Sockets.XPublisherSocket(); return(new IntermediarySocket(frontendAddressBinder, backendAddressBinder, frontendSocket, backendSocket)); }
private static IIntermediarySocket CreateIntermediarySocket(IAddressBinder frontendAddressBinder, IAddressBinder backendAddressBinder) { var context = NetMQContext.Create(); var frontendSocket = context.CreateXSubscriberSocket(); var backendSocket = context.CreateXPublisherSocket(); return new IntermediarySocket(frontendAddressBinder, backendAddressBinder, frontendSocket, backendSocket); }
internal void Use(IAddressBinder addressBinder) { if (addressBinder == null) { throw new ArgumentNullException(nameof(addressBinder)); } _ioC.Register(() => addressBinder); }
protected AbstractReceiverSocket(ISerializer serializer, IAddressBinder addressBinder, ILoggerFactory loggerFactory, NetMQSocket socket) { _logger = loggerFactory.GetLogger(typeof(AbstractReceiverSocket)); _serializer = serializer; _addressBinder = addressBinder; _socket = socket; CreatePoller(socket); CreateConnectionMonitor(socket, _poller); ConfigureSocket(socket); }
public IntermediarySocket(IAddressBinder frontendAddressBinder, IAddressBinder backendAddressBinder, XSubscriberSocket frontendSocket, XPublisherSocket backendSocket) { _frontendAddressBinder = frontendAddressBinder; _backendAddressBinder = backendAddressBinder; _frontendSocket = frontendSocket; _backendSocket = backendSocket; _frontendAddressBinder.ConnectOrBindAddress(_frontendSocket); _backendAddressBinder.ConnectOrBindAddress(_backendSocket); _poller = new Poller(_frontendSocket, _backendSocket); _proxy = new Proxy(frontendSocket, backendSocket, poller: _poller); }
public IntermediarySocket(IAddressBinder frontendAddressBinder, IAddressBinder backendAddressBinder, XSubscriberSocket frontendSocket, XPublisherSocket backendSocket) { _frontendAddressBinder = frontendAddressBinder; _backendAddressBinder = backendAddressBinder; _frontendSocket = frontendSocket; _backendSocket = backendSocket; _frontendAddressBinder.ConnectOrBindAddress(_frontendSocket); _backendAddressBinder.ConnectOrBindAddress(_backendSocket); _poller = new NetMQPoller { _frontendSocket, _backendSocket }; _proxy = new Proxy(frontendSocket, backendSocket, poller: _poller); }
public SubscriberSocket(ISerializer serializer, IAddressBinder addressBinder, ILoggerFactory loggerFactory, IMessageDispatcher messageDispatcher, NetMQSocket socket) : base(serializer, addressBinder, loggerFactory, socket) { _messageDispatcher = messageDispatcher; }
private static void RegisterAddressBinder(EasyZMqConfigurer configurer, IAddressBinder addressBinder) { configurer.Use(addressBinder); }
internal void Use(IAddressBinder addressBinder) { if (addressBinder == null) throw new ArgumentNullException(nameof(addressBinder)); _ioC.Register(() => addressBinder); }
public PublisherSocket(ISerializer serializer, IAddressBinder addressBinder, NetMQSocket socket) : base(serializer, addressBinder, socket) { }