Changeset 4337 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment/3.3/ServiceLocator.cs
- Timestamp:
- 08/27/10 11:46:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment/3.3/ServiceLocator.cs
r4316 r4337 54 54 55 55 public static void DisposeClientFacade(IClientFacade clientFacade) { 56 ICommunicationObject obj = (ICommunicationObject)clientFacade; 57 if (obj != null) { 58 if (obj.State != CommunicationState.Faulted && 59 obj.State != CommunicationState.Closed) { 60 try { obj.Close(); } 61 catch (CommunicationObjectFaultedException) { obj.Abort(); } 62 catch (TimeoutException) { obj.Abort(); } 63 catch (Exception) { 64 obj.Abort(); 65 throw; 66 } 67 } else 68 obj.Abort(); 69 } 56 WcfSettings.DisposeWcfClient((ICommunicationObject)clientFacade); 70 57 } 71 58 }
Note: See TracChangeset
for help on using the changeset viewer.