示例#1
0
文件: WcfProxy.cs 项目: mamasha/hydra
 public WcfProxy(IProxyPeer peer)
 {
     Helpers.TryCatch(_log,
         () => _host = new ContextualHost(peer),
         ex => Helpers.ThrowNew<WcfProxyException>(ex, _log, "Failed to create proxy for '{0}'", typeof(IProxyPeer).Name));
 }
示例#2
0
 public ContextualHost(IProxyPeer channel)
     : base(typeof(ContextualPeer))
 {
     _channel = channel;
 }