Example #1
0
        public void Dispose()
        {
            if (_disposed)
                return;

            _container = null;
            _contentManager = null;

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