This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Compoment
/
BPA.CAP
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update samples.
master
Savorboard
6 years ago
parent
7089b1ccde
commit
d032b26d13
1 changed files
with
7 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-1
samples/Sample.RabbitMQ.MySql/Startup.cs
+ 7
- 1
samples/Sample.RabbitMQ.MySql/Startup.cs
View File
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Builder;
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@@ -16,6 +17,11 @@ namespace Sample.RabbitMQ.MySql
x.UseEntityFramework<AppDbContext>();
x.UseRabbitMQ("localhost");
x.UseDashboard();
x.FailedRetryCount = 5;
x.FailedThresholdCallback = (type, name, content) =>
{
Console.WriteLine($@"A message of type {type} failed after executing {x.FailedRetryCount} several times, requiring manual troubleshooting. Message name: {name}, message body: {content}");
};
});
services.AddMvc();
Write
Preview
Loading…
Cancel
Save