From 6a4268cd0a648909394ff3b5427eb32fc6494edb Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 18 Aug 2018 16:36:11 +0800 Subject: [PATCH] update samples --- samples/Sample.Kafka.MySql/Controllers/ValuesController.cs | 2 +- samples/Sample.Kafka.MySql/Startup.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/Sample.Kafka.MySql/Controllers/ValuesController.cs b/samples/Sample.Kafka.MySql/Controllers/ValuesController.cs index 21510bb..f5ce61f 100644 --- a/samples/Sample.Kafka.MySql/Controllers/ValuesController.cs +++ b/samples/Sample.Kafka.MySql/Controllers/ValuesController.cs @@ -26,7 +26,7 @@ namespace Sample.Kafka.MySql.Controllers //your business code here - await _capBus.PublishAsync("xxx.xxx.test2", 123456, transaction); + await _capBus.PublishAsync("xxx.xxx.test2", 123456); transaction.Commit(); } diff --git a/samples/Sample.Kafka.MySql/Startup.cs b/samples/Sample.Kafka.MySql/Startup.cs index 59c4636..3a6a8f7 100644 --- a/samples/Sample.Kafka.MySql/Startup.cs +++ b/samples/Sample.Kafka.MySql/Startup.cs @@ -21,8 +21,6 @@ namespace Sample.Kafka.MySql public void Configure(IApplicationBuilder app) { app.UseMvc(); - - app.UseCap(); } } } \ No newline at end of file