Browse Source

Fixed dashboard messages requeue error. ( #205 )

master
Savorboard 6 years ago
parent
commit
7da53485d9
2 changed files with 4 additions and 4 deletions
  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 View File

@@ -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 View File

@@ -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…
Cancel
Save