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