浏览代码

refactor

master
yangxiaodong 7 年前
父节点
当前提交
29d31f1b2b
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. +20
    -0
      samples/Sample.Kafka/Controllers/ValuesController.cs

+ 20
- 0
samples/Sample.Kafka/Controllers/ValuesController.cs 查看文件

@@ -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");
}
}
}

正在加载...
取消
保存