public PubSubSpecs() { ClientFiber = PoolFiber.StartNew(); Context1 = NetMQContext.Create(); Send = new SendSocket <string>(Context1, "tcp://localhost:6001", s => Encoding.Unicode.GetBytes(s)); Context2 = NetMQContext.Create(); RcvdSignal = new ManualResetEvent(false); Subscriber = new SubscribeSocket <string>(Context2, "tcp://localhost:6001", x => Encoding.Unicode.GetString(x), Channel); Subscriber.SubscribeAll(); }
public PubSubSpecs() { ClientFiber = PoolFiber.StartNew(); Context1 = NetMQContext.Create(); Send = new SendSocket<string>(Context1, "tcp://localhost:6001", s => Encoding.Unicode.GetBytes(s)); Context2 = NetMQContext.Create(); RcvdSignal = new ManualResetEvent(false); Subscriber = new SubscribeSocket<string>(Context2, "tcp://localhost:6001", x => Encoding.Unicode.GetString(x), Channel); Subscriber.SubscribeAll(); }