Example #1
0
 /// <summary>
 /// Releases unmanaged and - optionally - managed resources.
 /// the dispose method is called automatically by the injector depending on the lifestyle
 /// </summary>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     this.disposed = true;
 }