Exemplo n.º 1
0
		public SecurityRemoteProxy(MessageQueue channel, Security target)
		{
			_target = target;
			_channel = channel;

			_r_PlaceOrder = Address.FromDelegate<MessageQueueReader>(target.r_PlaceOrder);
			_r_Check = Address.FromDelegate<MessageQueueReader>(target.r_Check);
		}
Exemplo n.º 2
0
		public static ISecurity CreateSecurityProxy(Security target)
		{
			Host host = Host.Current;
			var channel = host.GetProducer(target.Mailbox.Host);
			return new SecurityRemoteProxy(channel, target);
		}