Ejemplo n.º 1
0
        /// <summary>
        /// Disposes the object.
        /// </summary>
        public void Dispose()
        {
            m_disposed = true;

            if (m_messageContext != null)
            {
                try
                {
                    m_messageContext.Dispose();
                    m_messageContext = null;
                }
                catch { }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="exeDir">The directory of the executable. The metadata
 /// database will be located within.</param>
 public MetadataManager(string exeDir)
 {
     m_messageContext = new DbMetadataContext(exeDir);
 }