示例#1
0
 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;
 }
示例#3
0
 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);
 }