Skip to content

Commit 73927ef

Browse files
committed
Messaging: Remove legacy serialization support ctor
This ctor has been obsoleted from .net 8.0.
1 parent 18d247e commit 73927ef

File tree

4 files changed

+0
-35
lines changed

4 files changed

+0
-35
lines changed

src/Helsenorge.Messaging/Amqp/Receivers/HeaderValidationException.cs

-6
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,5 @@ public HeaderValidationException(string message) : base(message)
2828
public HeaderValidationException(string message, Exception inner) : base(message, inner)
2929
{
3030
}
31-
32-
protected HeaderValidationException(
33-
SerializationInfo info,
34-
StreamingContext context) : base(info, context)
35-
{
36-
}
3731
}
3832
}

src/Helsenorge.Messaging/Amqp/Receivers/ReceivedDataMismatchException.cs

-9
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,5 @@ public ReceivedDataMismatchException(string message) : base(message) { }
6666
/// <param name="message"></param>
6767
/// <param name="inner"></param>
6868
public ReceivedDataMismatchException(string message, Exception inner) : base(message, inner) { }
69-
/// <summary>
70-
/// Constructor
71-
/// </summary>
72-
/// <param name="info"></param>
73-
/// <param name="context"></param>
74-
protected ReceivedDataMismatchException(
75-
System.Runtime.Serialization.SerializationInfo info,
76-
System.Runtime.Serialization.StreamingContext context)
77-
: base(info, context) { }
7869
}
7970
}

src/Helsenorge.Messaging/Amqp/Receivers/UnsupportedMessageException.cs

-10
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,5 @@ public UnsupportedMessageException(string message) : base(message)
4343
public UnsupportedMessageException(string message, Exception innerException) : base(message, innerException)
4444
{
4545
}
46-
47-
/// <summary>Initializes a new instance of the <see cref="UnsupportedMessageException" /> class with serialized data.</summary>
48-
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
49-
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
50-
/// <exception cref="T:System.ArgumentNullException">
51-
/// <paramref name="info" /> is <see langword="null" />.</exception>
52-
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is <see langword="null" /> or <see cref="P:System.Exception.HResult" /> is zero (0).</exception>
53-
protected UnsupportedMessageException(SerializationInfo info, StreamingContext context) : base(info, context)
54-
{
55-
}
5646
}
5747
}

src/Helsenorge.Messaging/Amqp/ReportableErrorException.cs

-10
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,5 @@ public NotifySenderException(string message) : base(message) { }
3232
/// <param name="message"></param>
3333
/// <param name="inner"></param>
3434
public NotifySenderException(string message, Exception inner) : base(message, inner) { }
35-
/// <summary>
36-
///
37-
/// </summary>
38-
/// <param name="info"></param>
39-
/// <param name="context"></param>
40-
protected NotifySenderException(
41-
SerializationInfo info,
42-
StreamingContext context)
43-
: base(info, context) { }
44-
4535
}
4636
}

0 commit comments

Comments
 (0)