From 9610192fba4654f9fb5bb1478e4bd85e2723f2a3 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 10 Jan 2018 07:39:34 -0600 Subject: [PATCH] Don't include the assembly qualified name, this makes recieving message bus messages from different app versions easier. --- build/sourcelink.props | 2 +- src/Foundatio.Redis/Foundatio.Redis.csproj | 2 +- src/Foundatio.Redis/Messaging/RedisMessageBus.cs | 2 +- test/Foundatio.Redis.Tests/Foundatio.Redis.Tests.csproj | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/sourcelink.props b/build/sourcelink.props index 7b277a3..1a5de0c 100644 --- a/build/sourcelink.props +++ b/build/sourcelink.props @@ -4,6 +4,6 @@ - + \ No newline at end of file diff --git a/src/Foundatio.Redis/Foundatio.Redis.csproj b/src/Foundatio.Redis/Foundatio.Redis.csproj index b4aa186..74be1ed 100644 --- a/src/Foundatio.Redis/Foundatio.Redis.csproj +++ b/src/Foundatio.Redis/Foundatio.Redis.csproj @@ -10,7 +10,7 @@ ..\Exceptionless.snk - + \ No newline at end of file diff --git a/src/Foundatio.Redis/Messaging/RedisMessageBus.cs b/src/Foundatio.Redis/Messaging/RedisMessageBus.cs index feab363..db87881 100644 --- a/src/Foundatio.Redis/Messaging/RedisMessageBus.cs +++ b/src/Foundatio.Redis/Messaging/RedisMessageBus.cs @@ -57,7 +57,7 @@ protected override async Task PublishImplAsync(Type messageType, object message, if (_logger.IsEnabled(LogLevel.Trace)) _logger.LogTrace("Message Publish: {MessageType}", messageType.FullName); var data = _serializer.SerializeToBytes(new MessageBusData { - Type = messageType.AssemblyQualifiedName, + Type = String.Concat(messageType.FullName, ", ", messageType.Assembly.GetName().Name), Data = _serializer.SerializeToBytes(message) }); diff --git a/test/Foundatio.Redis.Tests/Foundatio.Redis.Tests.csproj b/test/Foundatio.Redis.Tests/Foundatio.Redis.Tests.csproj index f679e2b..9313b68 100644 --- a/test/Foundatio.Redis.Tests/Foundatio.Redis.Tests.csproj +++ b/test/Foundatio.Redis.Tests/Foundatio.Redis.Tests.csproj @@ -11,7 +11,7 @@ - +