/// <summary> /// Constructor /// </summary> internal StructureMapServiceLocatorWrapper(StructureMapServiceLocator baseServiceLocator, Container container) { if (baseServiceLocator == null) { throw new ArgumentNullException("baseServiceLocator"); } m_baseServiceLocator = baseServiceLocator; m_container = container; }
/// <summary/> private void Dispose(bool fDisposing) { System.Diagnostics.Debug.WriteLineIf(!fDisposing, "****** Missing Dispose() call for " + GetType() + " *******"); if (fDisposing && !IsDisposed) { // dispose managed and unmanaged objects if (m_container != null) { m_container.Dispose(); } } m_baseServiceLocator = null; m_container = null; m_lgpe = null; IsDisposed = true; }