title: Dispose/Close ExchangeService in C#?
body: <p>I'm using the ExchangeService WebService API (<code>Microsoft.Exchange.WebServices.Data</code>) but I cannot find any <code>Close</code> or <code>Dispose</code> method. </p>
  
  <p><strong>Is it not neccessary to close the connection somehow?</strong></p>
  
  <p>My method looks like this:</p>
  
  <pre><code>public void CheckMails()
  {
      ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
      IMAPCredentials creds = new IMAPCredentials();
      service.Credentials = new NetworkCredential(creds.User, creds.Pass, creds.Domain);
      service.AutodiscoverUrl(creds.User + "@example.com");
  
      // not the real code from here on but you'll get the idea...
      // var emails = service.FindItems();
      // emails[0].Load();
      // emails[0].Attachments[0].Load();
      // ...
  }
  </code></pre>