Ejemplo n.º 1
0
        /// <summary>
        /// Initializes an instance of a NetMQSenderManager constructing a NetMQSender from the specified NetMQContext and
        /// connects it to the specified address
        /// </summary>
        /// <param name="context"></param>
        public NetMQSenderManager(NetMQContext context, String address)
        {
            var sender = new NetMQSender(context.CreateDealerSocket(), new BinarySerializer(), address);
            sender.Connect();

            Route<object>(new NetMQSenderFactory(address, context));
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Creates a new instance of an ISender
		/// </summary>
		public ISender Sender()
		{
			var sender = new NetMQSender(context.CreateDealerSocket(), new BinarySerializer(), address);
			sender.Connect();
			return sender;
		}