From f1304cebaf841919f83dd3533ce61ad72537db94 Mon Sep 17 00:00:00 2001 From: Savorboard Date: Sat, 30 Sep 2017 22:52:50 +0800 Subject: [PATCH] fix spelling mistake --- src/DotNetCore.CAP.Kafka/PublishQueueExecutor.cs | 2 +- src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs | 2 +- .../Internal/ObjectMethodExecutor/ObjectMethodExecutor.cs | 2 ++ src/DotNetCore.CAP/MessageContext.cs | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP.Kafka/PublishQueueExecutor.cs b/src/DotNetCore.CAP.Kafka/PublishQueueExecutor.cs index 82740a4..5be72b2 100644 --- a/src/DotNetCore.CAP.Kafka/PublishQueueExecutor.cs +++ b/src/DotNetCore.CAP.Kafka/PublishQueueExecutor.cs @@ -49,7 +49,7 @@ namespace DotNetCore.CAP.Kafka catch (Exception ex) { _logger.LogError( - $"kafka topic message [{keyName}] has benn raised an exception of sending. the exception is: {ex.Message}"); + $"kafka topic message [{keyName}] has been raised an exception of sending. the exception is: {ex.Message}"); return Task.FromResult(OperateResult.Failed(ex)); } diff --git a/src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs b/src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs index 0f68e5d..2468e8c 100644 --- a/src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs +++ b/src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs @@ -76,7 +76,7 @@ OUTPUT DELETED.MessageId,DELETED.[MessageType];"; } } - // CapReceviedMessage + // CapReceivedMessage public async Task StoreReceivedMessageAsync(CapReceivedMessage message) { diff --git a/src/DotNetCore.CAP/Internal/ObjectMethodExecutor/ObjectMethodExecutor.cs b/src/DotNetCore.CAP/Internal/ObjectMethodExecutor/ObjectMethodExecutor.cs index 0c3a430..9f33dfa 100644 --- a/src/DotNetCore.CAP/Internal/ObjectMethodExecutor/ObjectMethodExecutor.cs +++ b/src/DotNetCore.CAP/Internal/ObjectMethodExecutor/ObjectMethodExecutor.cs @@ -6,10 +6,12 @@ using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; +// ReSharper disable once CheckNamespace namespace Microsoft.Extensions.Internal { internal class ObjectMethodExecutor { + // ReSharper disable once InconsistentNaming private static readonly ConstructorInfo _objectMethodExecutorAwaitableConstructor = typeof(ObjectMethodExecutorAwaitable).GetConstructor(new[] { diff --git a/src/DotNetCore.CAP/MessageContext.cs b/src/DotNetCore.CAP/MessageContext.cs index 9e1f867..6e0ffd7 100644 --- a/src/DotNetCore.CAP/MessageContext.cs +++ b/src/DotNetCore.CAP/MessageContext.cs @@ -7,5 +7,10 @@ public string Name { get; set; } public string Content { get; set; } + + public override string ToString() + { + return $"Group:{Group}, Name:{Name}, Content:{Content}"; + } } } \ No newline at end of file