Browse Source

update samples

master
Savorboard 6 years ago
parent
commit
6a4268cd0a
2 changed files with 1 additions and 3 deletions
  1. +1
    -1
      samples/Sample.Kafka.MySql/Controllers/ValuesController.cs
  2. +0
    -2
      samples/Sample.Kafka.MySql/Startup.cs

+ 1
- 1
samples/Sample.Kafka.MySql/Controllers/ValuesController.cs View File

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


+ 0
- 2
samples/Sample.Kafka.MySql/Startup.cs View File

@@ -21,8 +21,6 @@ namespace Sample.Kafka.MySql
public void Configure(IApplicationBuilder app)
{
app.UseMvc();

app.UseCap();
}
}
}

Loading…
Cancel
Save