public void Dispose() { if (_disposed) return; _container = null; _contentManager = null; _disposed = true; }
internal Assets(ResourceContainer container, ContentManager contentManager) { _container = container; _contentManager = contentManager; }
internal IResourceContainer CreateContainer() { var result = new ResourceContainer(new ContentManager(_servcieProvider, _rootPath)); _containers.Add(result); return result; }
internal ResourceManager(IServiceProvider servcieProvider, string rootPath, ContentManager commonContentManager) { _servcieProvider = servcieProvider; _rootPath = rootPath; _commonContainer = new ResourceContainer(commonContentManager); }
public void RemoveContainer(ResourceContainer container) { container.Dispose(); _containers.Remove(container); }