Esempio n. 1
0
 /// <summary>
 ///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
 /// </summary>
 /// <param name="disposing">This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (_xmlModel != null)
             {
                 try
                 {
                     _xmlModel.Dispose();
                 }
                 finally
                 {
                     _xmlModel = null;
                 }
             }
         }
         _dispatcher = null;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
Esempio n. 2
0
 /// <summary>
 ///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
 /// </summary>
 /// <param name="disposing">This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (_xmlModel != null)
             {
                 try
                 {
                     _xmlModel.Dispose();
                 }
                 finally
                 {
                     _xmlModel = null;
                 }
             }
         }
         _dispatcher = null;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
Esempio n. 3
0
        /// <summary>
        ///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
        /// </summary>
        internal VSXmlModel(IServiceProvider serviceProvider, Microsoft.VisualStudio.XmlEditor.XmlModel model)
        {
            _xmlModel = model;
            _xmlModel.BufferReloaded += OnBufferReload;

            _dispatcher = Dispatcher.CurrentDispatcher;
            _serviceProvider = serviceProvider;
        }
Esempio n. 4
0
        /// <summary>
        ///     This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
        /// </summary>
        internal VSXmlModel(IServiceProvider serviceProvider, Microsoft.VisualStudio.XmlEditor.XmlModel model)
        {
            _xmlModel = model;
            _xmlModel.BufferReloaded += OnBufferReload;

            _dispatcher      = Dispatcher.CurrentDispatcher;
            _serviceProvider = serviceProvider;
        }