Explorar el Código

refactor

master
yangxiaodong hace 7 años
padre
commit
29d31f1b2b
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. +20
    -0
      samples/Sample.Kafka/Controllers/ValuesController.cs

+ 20
- 0
samples/Sample.Kafka/Controllers/ValuesController.cs Ver fichero

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Cap.Consistency.Attributes;
using Cap.Consistency.Consumer;
using Microsoft.AspNetCore.Mvc;

namespace Sample.Kafka.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller, IConsumerService
{

[KafkaTopic("zzwl.topic.finace.callBack", IsOneWay = true)]
public void KafkaTest() {
Console.WriteLine("kafka test invoked");
}
}
}

Cargando…
Cancelar
Guardar