/// <summary>
 /// Dispose service
 /// </summary>
 public void Dispose()
 {
     if (this.service != null)
     {
         this.service.Close();
         this.service = null;
     }
 }
Example #2
0
 /// <summary>
 /// Dispose service
 /// </summary>
 /// <param name="disposing">Disposing flag</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.service != null)
         {
             this.service.Close();
             this.service = null;
         }
     }
 }