private void RenewFactory() { try { if (factory != null) factory.Abort(); factory = new ChannelFactory<IRobotFarm>(endpointName); channel = factory.CreateChannel(); } catch (Exception) { Logger.Error("RobotFarmProxy: невозможно создать прокси"); channel = null; } }
private void RenewFactory() { try { if (factory != null) { factory.Abort(); } factory = new ChannelFactory <IRobotFarm>(endpointName); channel = factory.CreateChannel(); } catch (Exception) { Logger.Error("RobotFarmProxy: невозможно создать прокси"); channel = null; } }