コード例 #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
ファイル: ContextualHost.cs プロジェクト: mamasha/hydra
 public ContextualHost(IProxyPeer channel)
     : base(typeof(ContextualPeer))
 {
     _channel = channel;
 }