Commit 29d31f1b authored by yangxiaodong's avatar yangxiaodong

refactor

parent ce7d76e4
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");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment