public ContentManager(IServiceProvider serviceProvider) { if (serviceProvider == null) { throw new ArgumentNullException("serviceProvider"); } this.serviceProvider = serviceProvider; AddContentManager(this); }
public ResourceContentManager(IServiceProvider servicesProvider, ResourceManager resource) : base(servicesProvider) { if (resource == null) { throw new ArgumentNullException("resource"); } this.resource = resource; }
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; AddContentManager(this); }