Ejemplo n.º 1
0
 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)));
         }
     }
 }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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));
 }