From 7da53485d9de6cb659bcb31474a46f2264809f07 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 14 Sep 2018 09:42:36 +0800 Subject: [PATCH] Fixed dashboard messages requeue error. ( #205 ) --- src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs | 6 +++--- src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs b/src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs index d9df0bd..f711dee 100644 --- a/src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs +++ b/src/DotNetCore.CAP/Dashboard/BatchCommandDispatcher.cs @@ -9,9 +9,9 @@ namespace DotNetCore.CAP.Dashboard { internal class BatchCommandDispatcher : IDashboardDispatcher { - private readonly Action _command; + private readonly Action _command; - public BatchCommandDispatcher(Action command) + public BatchCommandDispatcher(Action 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); } diff --git a/src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs b/src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs index dec40eb..4b14783 100644 --- a/src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs +++ b/src/DotNetCore.CAP/Dashboard/RouteCollectionExtensions.cs @@ -103,7 +103,7 @@ namespace DotNetCore.CAP.Dashboard public static void AddPublishBatchCommand( this RouteCollection routes, string pathTemplate, - Action command) + Action command) { if (routes == null) {