public void Dispose()
 {
     using (MPContext context = new MPContext())
     {
         context.Dispose();
     }
 }
Exemplo n.º 2
0
        // Protected implementation of Dispose pattern.
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                context.Dispose();
            }

            // Free any unmanaged objects here.
            disposed = true;
        }