private void RenewFactory() { try { if (factory != null) factory.Abort(); factory = new ChannelFactory<ITradeSharpServer>(endpointName); channel = factory.CreateChannel(); } catch (Exception ex) { Logger.Error("TradeSharpServerProxy: невозможно создать прокси", ex); channel = null; } }
private TradeSharpServer(ITradeSharpServer proxyOrStub = null) { if (proxyOrStub != null) { proxy = proxyOrStub; return; } try { proxy = ProxyBuilder.Instance.GetImplementer <ITradeSharpServer>(); } catch (Exception ex) { Logger.Error("TradeSharpServer ctor", ex); } }
private TradeSharpServer(ITradeSharpServer proxyOrStub = null) { if (proxyOrStub != null) { proxy = proxyOrStub; return; } try { proxy = ProxyBuilder.Instance.GetImplementer<ITradeSharpServer>(); } catch (Exception ex) { Logger.Error("TradeSharpServer ctor", ex); } }
private void RenewFactory() { try { if (factory != null) { factory.Abort(); } factory = new ChannelFactory <ITradeSharpServer>(endpointName); channel = factory.CreateChannel(); } catch (Exception ex) { Logger.Error("TradeSharpServerProxy: невозможно создать прокси", ex); channel = null; } }
public static void Initialize(ITradeSharpServer proxyOrStub) { instance = new TradeSharpServer(proxyOrStub); }
public static void Initialize(ITradeSharpServer proxyOrStub) { instance = new TradeSharpServer(proxyOrStub); }