Quellcode durchsuchen

update samples.

master
Savorboard vor 6 Jahren
Ursprung
Commit
3e87d5ee1d
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. +7
    -1
      samples/Sample.RabbitMQ.MySql/Startup.cs

+ 7
- 1
samples/Sample.RabbitMQ.MySql/Startup.cs Datei anzeigen

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


Laden…
Abbrechen
Speichern