private Task SelectQueryByModel(CollectionEventReceived message)
 {
     var(_, collection, _, _, _) = message;
     return(collection switch
     {
         "users" => BuildQueryUsers(message),
         "products" => BuildQueryProducts(message),
         "payments" => BuildQueryPaymentMethod(message),
         "stations" => BuildQueryStation(message),
         _ => System.Console.Out.WriteLineAsync("No matches models")
     });
Ejemplo n.º 2
0
 public static void EmitMessage(IOperationHandler operationHandler, CollectionEventReceived collectionEvent)
 => operationHandler.Publish(collectionEvent);