Exemplo n.º 1
0
 public void AddPlugInAggregationFunctionFactory(string functionName, string aggregationFactoryClassName)
 {
     try {
         var desc = new ConfigurationPlugInAggregationFunction(functionName, aggregationFactoryClassName);
         _engineImportService.AddAggregation(functionName, desc);
     } catch (EngineImportException e) {
         throw new ConfigurationException(e.Message, e);
     }
 }
Exemplo n.º 2
0
 public void AddAggregation(String functionName, ConfigurationPlugInAggregationFunction aggregationDesc)
 {
     ValidateFunctionName("aggregation function", functionName);
     if (aggregationDesc.FactoryClassName == null || !IsTypeNameOrNamespace(aggregationDesc.FactoryClassName))
     {
         throw new EngineImportException(
                   "Invalid class name for aggregation factory '" + aggregationDesc.FactoryClassName + "'");
     }
     _aggregationFunctions.Put(functionName.ToLower(), aggregationDesc);
 }