From d35bcea0a574f0d3bd725f7d78d6a9ce0e09817b Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Tue, 17 Apr 2018 14:10:42 +1200 Subject: [PATCH] Move HubException and add serialization ctor (#2049) --- .../HubException.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename src/{Microsoft.AspNetCore.SignalR.Client.Core => Microsoft.AspNetCore.SignalR.Common}/HubException.cs (72%) diff --git a/src/Microsoft.AspNetCore.SignalR.Client.Core/HubException.cs b/src/Microsoft.AspNetCore.SignalR.Common/HubException.cs similarity index 72% rename from src/Microsoft.AspNetCore.SignalR.Client.Core/HubException.cs rename to src/Microsoft.AspNetCore.SignalR.Common/HubException.cs index b2a9667ea2..62759e05a5 100644 --- a/src/Microsoft.AspNetCore.SignalR.Client.Core/HubException.cs +++ b/src/Microsoft.AspNetCore.SignalR.Common/HubException.cs @@ -2,8 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; +using System.Runtime.Serialization; -namespace Microsoft.AspNetCore.SignalR.Client +namespace Microsoft.AspNetCore.SignalR { [Serializable] public class HubException : Exception @@ -19,5 +20,9 @@ namespace Microsoft.AspNetCore.SignalR.Client public HubException(string message, Exception innerException) : base(message, innerException) { } + + public HubException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } }