Example #1
0
        public static async Task <bool> PushOData([ActivityTrigger] AKSPayload classificaiton,
                                                  [ServiceBus("odataqueue",
                                                              Connection = "ODataServiceBusConnection",
                                                              EntityType = EntityType.Queue)] IAsyncCollector <string> queueCollector,
                                                  ILogger log)
        {
            log.LogDebug("Data send onto ServiceBus Queue");
            await queueCollector.AddAsync(JsonConvert.SerializeObject(classificaiton));

            return(true);
        }
Example #2
0
 public static Task <bool> ValidateClassification([ActivityTrigger] AKSPayload classification,
                                                  ILogger log)
 {
     //Do validation of classification results from AKS
     return(Task.FromResult(classification.Result));
 }