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); }
public static ISecurity CreateSecurityProxy(Security target) { Host host = Host.Current; var channel = host.GetProducer(target.Mailbox.Host); return new SecurityRemoteProxy(channel, target); }