Esempio n. 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;
 }
Esempio n. 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);
 }