Beispiel #1
0
        public DscConfigurationItemNode GetConfigurationItemNode(string fullname)
        {
            string[]    path     = fullname.Split(':');
            DscModule   module   = Modules.Find(x => x.Name == path[0]);
            DscResource resource = module.Resources.Find(x => x.FriendlyName == path[1]);

            return(resource.Nodes.Find(x => x.Name == path[2]));
        }
Beispiel #2
0
        public DscResource(string path, DscModule parent)
        {
            Parent = parent;
            SchemaMofFile mofFile = new SchemaMofFile(path);

            ClassName    = mofFile.ClassName;
            ClassVersion = mofFile.ClassVersion;
            FriendlyName = mofFile.FriendlyName;
            foreach (SchemaMofFile.MofParameter parameter in mofFile.Parameters)
            {
                Parameters.Add(new Parameter(GetQualifierType(parameter.Qualifier), GetVariableType(parameter.Type),
                                             parameter.Name, parameter.Description, parameter.Values));
            }
        }