/// <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); } }
/// <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; }