Exemple #1
0
 public ContentManager(IServiceProvider serviceProvider)
 {
     if (serviceProvider == null)
     {
         throw new ArgumentNullException("serviceProvider");
     }
     this.serviceProvider = serviceProvider;
     ContentManager.AddContentManager(this);
 }
Exemple #2
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;
     ContentManager.AddContentManager(this);
 }