Merge pull request #2052 from aspnet/release/2.1
Move HubException and add serialization ctor (#2049)
This commit is contained in:
commit
177f5d91ef
|
|
@ -2,8 +2,9 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.SignalR.Client
|
namespace Microsoft.AspNetCore.SignalR
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class HubException : Exception
|
public class HubException : Exception
|
||||||
|
|
@ -19,5 +20,9 @@ namespace Microsoft.AspNetCore.SignalR.Client
|
||||||
public HubException(string message, Exception innerException) : base(message, innerException)
|
public HubException(string message, Exception innerException) : base(message, innerException)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HubException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue