Пример #1
0
 public Module(ILoggerContainer primaryLoggerContainer,
     IDirectoryController directories,
     IAppDomainFactory appDomainFactory,
     ModuleProxyTypeDictionary proxyTypes)
 {
     this.proxyTypes = proxyTypes;
     this.appDomainFactory = appDomainFactory;
     this.primaryLoggerContainer = primaryLoggerContainer;
     this.directories = directories;
 }
 public void ConfigureProxyTypes(DefaultServiceLocator registry)
 {
     ModuleProxyTypeDictionary dictionary = new ModuleProxyTypeDictionary();
     dictionary.Add(".dll",typeof(ModuleProxy));
     dictionary.Add(".exe",typeof(ModuleProxy));
     dictionary.Add(".fsx",typeof(ModuleProxy));
     dictionary.Add(".vbx",typeof(ModuleProxy));
     dictionary.Add(".csx",typeof(ModuleProxy));
     dictionary.Add(".jsx",typeof(ModuleProxy));
     registry.RegisterSingleton<ModuleProxyTypeDictionary>(container =>
     {
         return dictionary;
     });
 }