@@ -47,24 +47,32 @@ public class ShutdownEventArgs : EventArgs
4747 /// Construct a <see cref="ShutdownEventArgs"/> with the given parameters and
4848 /// 0 for <see cref="ClassId"/> and <see cref="MethodId"/>.
4949 /// </summary>
50- public ShutdownEventArgs ( ShutdownInitiator initiator , ushort replyCode , string replyText , object cause = null , Exception exception = null )
51- : this ( initiator , replyCode , replyText , 0 , 0 , cause , exception )
50+ public ShutdownEventArgs ( ShutdownInitiator initiator , ushort replyCode , string replyText , object cause = null )
51+ : this ( initiator , replyCode , replyText , 0 , 0 , cause )
5252 {
5353 }
5454
5555 /// <summary>
5656 /// Construct a <see cref="ShutdownEventArgs"/> with the given parameters.
5757 /// </summary>
5858 public ShutdownEventArgs ( ShutdownInitiator initiator , ushort replyCode , string replyText ,
59- ushort classId , ushort methodId , object cause = null , Exception exception = null )
59+ ushort classId , ushort methodId , object cause = null )
6060 {
6161 Initiator = initiator ;
6262 ReplyCode = replyCode ;
6363 ReplyText = replyText ;
6464 ClassId = classId ;
6565 MethodId = methodId ;
6666 Cause = cause ;
67- _exception = exception ;
67+ }
68+
69+ /// <summary>
70+ /// Construct a <see cref="ShutdownEventArgs"/> with the given parameters.
71+ /// </summary>
72+ public ShutdownEventArgs ( ShutdownInitiator initiator , ushort replyCode , string replyText , Exception exception )
73+ : this ( initiator , replyCode , replyText , 0 , 0 )
74+ {
75+ _exception = exception ?? throw new ArgumentNullException ( nameof ( exception ) ) ;
6876 }
6977
7078 /// <summary>
0 commit comments