Commit 7da53485 authored by Savorboard's avatar Savorboard

Fixed dashboard messages requeue error. ( #205 )

parent 7e10da29
...@@ -9,9 +9,9 @@ namespace DotNetCore.CAP.Dashboard ...@@ -9,9 +9,9 @@ namespace DotNetCore.CAP.Dashboard
{ {
internal class BatchCommandDispatcher : IDashboardDispatcher 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; _command = command;
} }
...@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard ...@@ -27,7 +27,7 @@ namespace DotNetCore.CAP.Dashboard
foreach (var messageId in messageIds) foreach (var messageId in messageIds)
{ {
var id = int.Parse(messageId); var id = long.Parse(messageId);
_command(context, id); _command(context, id);
} }
......
...@@ -103,7 +103,7 @@ namespace DotNetCore.CAP.Dashboard ...@@ -103,7 +103,7 @@ namespace DotNetCore.CAP.Dashboard
public static void AddPublishBatchCommand( public static void AddPublishBatchCommand(
this RouteCollection routes, this RouteCollection routes,
string pathTemplate, string pathTemplate,
Action<DashboardContext, int> command) Action<DashboardContext, long> command)
{ {
if (routes == null) if (routes == null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment