소스 검색

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)
{


불러오는 중...
취소
저장