Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/12/16 09:15:12 (8 years ago)
Author:
thasling
Message:

#2615:
added IDisposable to classes with Dispose()-Method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs

    r14074 r14252  
    1111
    1212  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    13   public class ContactServiceImpl : IContactService {
     13  public class ContactServiceImpl : IContactService, IDisposable {
    1414
    1515    private ConcurrentDictionary<PeerInfo, DateTime> allPeers = null;
     
    105105    }
    106106
     107    public void Dispose() {
     108      timer.Stop();
     109      timer.Dispose();
     110      timer = null;
     111    }
     112
    107113  }
    108114}
Note: See TracChangeset for help on using the changeset viewer.