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