瀏覽代碼

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

Loading…
取消
儲存