Changeset 14252
- Timestamp:
- 08/12/16 09:15:12 (9 years ago)
- Location:
- branches/thasling/DistributedGA
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
r14074 r14252 11 11 12 12 [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] 13 public class ContactServiceImpl : IContactService {13 public class ContactServiceImpl : IContactService, IDisposable { 14 14 15 15 private ConcurrentDictionary<PeerInfo, DateTime> allPeers = null; … … 105 105 } 106 106 107 public void Dispose() { 108 timer.Stop(); 109 timer.Dispose(); 110 timer = null; 111 } 112 107 113 } 108 114 } -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/PeerNetworkMessageHandler.cs
r14009 r14252 9 9 10 10 namespace DistributedGA.Core.Implementation { 11 public class PeerNetworkMessageHandler : IMessageHandler {11 public class PeerNetworkMessageHandler : IMessageHandler, IDisposable { 12 12 //own peer-instance Information 13 13 private PeerInfo ownInstance = null; … … 164 164 } 165 165 } 166 167 166 } 168 167 } -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfMessageSender.cs
r14009 r14252 10 10 11 11 namespace DistributedGA.Core.Implementation { 12 public class WcfMessageSender : IMessageSender {12 public class WcfMessageSender : IMessageSender, IDisposable { 13 13 14 14 private PeerInfo myself; -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfMessageService.cs
r13971 r14252 8 8 9 9 namespace DistributedGA.Core.Implementation { 10 public class WcfMessageService : IMessageService {10 public class WcfMessageService : IMessageService, IDisposable { 11 11 public event EventHandler<MessageRecieveEventArgs> OnDataRecieved; 12 12 … … 47 47 public void Dispose() { 48 48 _ResetEvent.Set(); 49 _ResetEvent.Dispose(); 49 50 } 50 51 -
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/WcfPeerListManager.cs
r14074 r14252 9 9 10 10 namespace DistributedGA.Core.Implementation { 11 public class WcfPeerListManager : IPeerListManager {11 public class WcfPeerListManager : IPeerListManager, IDisposable { 12 12 13 13 private string serverString = null; -
branches/thasling/DistributedGA/DistributedGA.Hive/P2PMigrationAnalyzer.cs
r14061 r14252 39 39 [Item("P2PMigrationAnalyzer", "Migrates individuals using a P2P network.")] 40 40 [StorableClass] 41 public class P2PMigrationAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator {41 public class P2PMigrationAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator, IDisposable { 42 42 // state: messagehandler 43 43 [ExcludeFromObjectGraphTraversalAttribute] … … 135 135 public override void ClearState() { 136 136 base.ClearState(); 137 h.Dispose(); 138 h = null; 137 Dispose(); 139 138 } 140 139 … … 299 298 } 300 299 300 public void Dispose() { 301 h.Dispose(); 302 h = null; 303 } 304 301 305 } 302 306 } -
branches/thasling/DistributedGA/DistributedGA.sln
r13924 r14252 50 50 HideSolutionNode = FALSE 51 51 EndGlobalSection 52 GlobalSection(Performance) = preSolution 53 HasPerformanceSessions = true 54 EndGlobalSection 52 55 EndGlobal
Note: See TracChangeset
for help on using the changeset viewer.