public override void Validate(ValidationContext ctx) { if (m_AnyAppConfig != null) { if (!m_AnyAppConfig.IsSameName(Metabank.RootAppConfig)) { ctx.Output.Add(new MetabaseValidationMsg(MetabaseValidationMessageType.Error, Catalog, this, StringConsts.METABASE_VALIDATION_APP_CONFIG_ROOT_MISMTACH_ERROR.Args(m_AnyAppConfig.Name))); } } }
protected override void BuildNodeOutput(IConfigSectionNode node, Outputs outputs) { if (node.IsSameName(TABLE_SECTION)) { DoTable(node, outputs); } else { m_CompileErrors.Add(new SchemaCompilationException(node.RootPath, "Unrecognized item: " + node.Name)); } }
private string execute(IConfigSectionNode arg) { if (arg.IsSameName(CONFIG_ALLOC_SECTION)) { return(alloc(arg)); } if (arg.IsSameName(CONFIG_SPAWN_SECTION)) { return(spawn(arg)); } if (arg.IsSameName(CONFIG_DISPATCH_SECTION)) { return(dispatch(arg)); } if (arg.IsSameName(CONFIG_ENQUEUE_SECTION)) { return(enqueue(arg)); } if (arg.IsSameName(CONFIG_LIST_SECTION)) { return(list(arg)); } return(string.Empty); }
protected override void BuildNodeOutput(IConfigSectionNode node, Outputs outputs) { if (node.IsSameName(TABLE_SECTION)) DoTable(node, outputs); else m_CompileErrors.Add(new SchemaCompilationException(node.RootPath, "Unrecognized item: " + node.Name)); }