Esempio n. 1
0
        public XMLConfigLoader(ISchemaLoader schemaLoader)
        {
            functions = new Dictionary<string, IRuleAlgorithm>(schemaLoader.Functions).AsReadOnly();
            dataSources = schemaLoader.DataSources;
            dataNodes = schemaLoader.DataNodes;
            schemas = schemaLoader.Schemas;
            rules = schemaLoader.RuleConfigList;
            schemaLoader = null;

            var serverLoader = new XmlServerLoader();
            SystemConfig = serverLoader.System;
            users = serverLoader.Users;
            QuarantineConfig = serverLoader.Quarantine;
            ClusterConfig = serverLoader.Cluster;
            serverLoader = null;
        }
Esempio n. 2
0
        public XMLConfigLoader(ISchemaLoader schemaLoader)
        {
            functions    = new Dictionary <string, IRuleAlgorithm>(schemaLoader.Functions).AsReadOnly();
            dataSources  = schemaLoader.DataSources;
            dataNodes    = schemaLoader.DataNodes;
            schemas      = schemaLoader.Schemas;
            rules        = schemaLoader.RuleConfigList;
            schemaLoader = null;

            var serverLoader = new XmlServerLoader();

            SystemConfig     = serverLoader.System;
            users            = serverLoader.Users;
            QuarantineConfig = serverLoader.Quarantine;
            ClusterConfig    = serverLoader.Cluster;
            serverLoader     = null;
        }