Преглед изворни кода

Fixed dashboard messages requeue error. ( #205 )

master
Savorboard пре 6 година
родитељ
комит
7da53485d9
2 измењених фајлова са 4 додато и 4 уклоњено
  1. +3
    -3
      src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs
  2. +1
    -1
      src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs

+ 3
- 3
src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs Прегледај датотеку

@@ -9,9 +9,9 @@ namespace DotNetCore.CAP.Dashboard
{
internal class BatchCommandDispatcher : IDashboardDispatcher
{
private readonly Action<DashboardContext, int> _command;
private readonly Action<DashboardContext, long> _command;

public BatchCommandDispatcher(Action<DashboardContext, int> command)
public BatchCommandDispatcher(Action<DashboardContext, long> command)
{
_command = command;
}
@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard

foreach (var messageId in messageIds)
{
var id = int.Parse(messageId);
var id = long.Parse(messageId);
_command(context, id);
}



+ 1
- 1
src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs Прегледај датотеку

@@ -103,7 +103,7 @@ namespace DotNetCore.CAP.Dashboard
public static void AddPublishBatchCommand(
this RouteCollection routes,
string pathTemplate,
Action<DashboardContext, int> command)
Action<DashboardContext, long> command)
{
if (routes == null)
{


Loading…
Откажи
Сачувај