public ContentManager(IServiceProvider serviceProvider) { if (serviceProvider == null) { throw new ArgumentNullException("serviceProvider"); } this.serviceProvider = serviceProvider; ContentManager.AddContentManager(this); }
public ContentManager(IServiceProvider serviceProvider, string rootDirectory) { if (serviceProvider == null) { throw new ArgumentNullException("serviceProvider"); } if (rootDirectory == null) { throw new ArgumentNullException("rootDirectory"); } this.RootDirectory = rootDirectory; this.serviceProvider = serviceProvider; ContentManager.AddContentManager(this); }