public Context() { context = ZmqContext.Create(); SetUpOutputChannel(context); pipe = new Pipe(context); ConfigureEsentDatabase(); this.EsentInstance = GetEsentInstance(); }
public ZmqPollBroker(ZeroMQ.ZmqContext zmqContext, string frontendAddress, string backendAddress) { this.zmqContext = zmqContext; this.frontendAddress = frontendAddress; this.backendAddress = backendAddress; }
public ZmqPollServer(ZeroMQ.ZmqContext zmqContext, string brokerBackendAddress, IServiceFactory serviceFactory) { this.zmqContext = zmqContext; this.brokerBackendAddress = brokerBackendAddress; this.responsesQueue = new BlockingCollection<Tuple<byte[], byte[]>>(new ConcurrentQueue<Tuple<byte[], byte[]>>(), int.MaxValue); this.serviceFactory = serviceFactory; }
public ZmqPollClient(ZeroMQ.ZmqContext zmqContext, string brokerFrontendAddress) { this.zmqContext = zmqContext; this.brokerFrontendAddress = brokerFrontendAddress; this.nextId = 0; this.requestCallbacks = new ConcurrentDictionary<string, TaskCompletionSource<ResponseData>>(); this.requestsQueue = new BlockingCollection<byte[]>(new ConcurrentQueue<byte[]>(), int.MaxValue); }
public ZmqPollClient(ZeroMQ.ZmqContext zmqContext, string brokerFrontendAddress) { this.zmqContext = zmqContext; this.brokerFrontendAddress = brokerFrontendAddress; this.nextId = 0; this.requestCallbacks = new ConcurrentDictionary <string, TaskCompletionSource <ResponseData> >(); this.requestsQueue = new BlockingCollection <byte[]>(new ConcurrentQueue <byte[]>(), int.MaxValue); }
public ZmqBroker(ZeroMQ.ZmqContext zmqContext, string clientInboundAddress, string clientOutboundAddress, string serverInboundAddress, string serverOutboundAddress) { this.zmqContext = zmqContext; this.clientInboundAddress = clientInboundAddress; this.clientOutboundAddress = clientOutboundAddress; this.serverInboundAddress = serverInboundAddress; this.serverOutboundAddress = serverOutboundAddress; }
public ZmqServer(ZeroMQ.ZmqContext zmqContext, string inboundAddress, string outboundAddress, IServiceFactory serviceFactory) { this.zmqContext = zmqContext; this.inboundAddress = inboundAddress; this.outboundAddress = outboundAddress; this.identity = zmqContext.NewIdentity(); this.responsesQueue = new BlockingCollection <Tuple <byte[], byte[]> >(new ConcurrentQueue <Tuple <byte[], byte[]> >(), int.MaxValue); this.serviceFactory = serviceFactory; }
public ZmqClient(ZeroMQ.ZmqContext zmqContext, string inboundAddress, string outboundAddress) { this.zmqContext = zmqContext; this.inboundAddress = inboundAddress; this.outboundAddress = outboundAddress; this.identity = zmqContext.NewIdentity(); this.nextId = 0; this.requestCallbacks = new ConcurrentDictionary<string, TaskCompletionSource<ResponseData>>(); this.requestsQueue = new BlockingCollection<byte[]>(new ConcurrentQueue<byte[]>(), int.MaxValue); }
public ZmqClient(ZeroMQ.ZmqContext zmqContext, string inboundAddress, string outboundAddress) { this.zmqContext = zmqContext; this.inboundAddress = inboundAddress; this.outboundAddress = outboundAddress; this.identity = zmqContext.NewIdentity(); this.nextId = 0; this.requestCallbacks = new ConcurrentDictionary <string, TaskCompletionSource <ResponseData> >(); this.requestsQueue = new BlockingCollection <byte[]>(new ConcurrentQueue <byte[]>(), int.MaxValue); }
public ZmqServer(ZeroMQ.ZmqContext zmqContext, string inboundAddress, string outboundAddress, IServiceFactory serviceFactory) { this.zmqContext = zmqContext; this.inboundAddress = inboundAddress; this.outboundAddress = outboundAddress; this.identity = zmqContext.NewIdentity(); this.responsesQueue = new BlockingCollection<Tuple<byte[], byte[]>>(new ConcurrentQueue<Tuple<byte[], byte[]>>(), int.MaxValue); this.serviceFactory = serviceFactory; }
/// <summary> /// Constructor for desired param type socket. /// </summary> /// <param name="type"></param> public MessagePassing(int type) { _type = type; _context = ZmqContext.Create(); _socket = _context.CreateSocket(GetType(type)); }