Esempio n. 1
0
        public void Dispose()
        {
            if (_disposed)
                return;

            _container = null;
            _contentManager = null;

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