@@ -164,7 +164,7 @@ private void Handle(object sender, NetMQSocketEventArgs socketEventArgs)
164
164
InvokeEvent ( Connected , new NetMQMonitorSocketEventArgs ( this , monitorEvent . Addr , GetArg < AsyncSocket > ( ) , SocketEvents . Connected ) ) ;
165
165
break ;
166
166
case SocketEvents . ConnectDelayed :
167
- InvokeEvent ( ConnectDelayed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , GetArg < ErrorCode > ( ) , SocketEvents . ConnectDelayed ) ) ;
167
+ InvokeEvent ( ConnectDelayed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , ( ErrorCode ) GetArg < int > ( ) , SocketEvents . ConnectDelayed ) ) ;
168
168
break ;
169
169
case SocketEvents . ConnectRetried :
170
170
InvokeEvent ( ConnectRetried , new NetMQMonitorIntervalEventArgs ( this , monitorEvent . Addr , GetArg < int > ( ) , SocketEvents . ConnectRetried ) ) ;
@@ -173,19 +173,19 @@ private void Handle(object sender, NetMQSocketEventArgs socketEventArgs)
173
173
InvokeEvent ( Listening , new NetMQMonitorSocketEventArgs ( this , monitorEvent . Addr , GetArg < AsyncSocket > ( ) , SocketEvents . Listening ) ) ;
174
174
break ;
175
175
case SocketEvents . BindFailed :
176
- InvokeEvent ( BindFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , GetArg < ErrorCode > ( ) , SocketEvents . BindFailed ) ) ;
176
+ InvokeEvent ( BindFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , ( ErrorCode ) GetArg < int > ( ) , SocketEvents . BindFailed ) ) ;
177
177
break ;
178
178
case SocketEvents . Accepted :
179
179
InvokeEvent ( Accepted , new NetMQMonitorSocketEventArgs ( this , monitorEvent . Addr , GetArg < AsyncSocket > ( ) , SocketEvents . Accepted ) ) ;
180
180
break ;
181
181
case SocketEvents . AcceptFailed :
182
- InvokeEvent ( AcceptFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , GetArg < ErrorCode > ( ) , SocketEvents . AcceptFailed ) ) ;
182
+ InvokeEvent ( AcceptFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , ( ErrorCode ) GetArg < int > ( ) , SocketEvents . AcceptFailed ) ) ;
183
183
break ;
184
184
case SocketEvents . Closed :
185
185
InvokeEvent ( Closed , new NetMQMonitorSocketEventArgs ( this , monitorEvent . Addr , GetArg < AsyncSocket > ( ) , SocketEvents . Closed ) ) ;
186
186
break ;
187
187
case SocketEvents . CloseFailed :
188
- InvokeEvent ( CloseFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , GetArg < ErrorCode > ( ) , SocketEvents . CloseFailed ) ) ;
188
+ InvokeEvent ( CloseFailed , new NetMQMonitorErrorEventArgs ( this , monitorEvent . Addr , ( ErrorCode ) GetArg < int > ( ) , SocketEvents . CloseFailed ) ) ;
189
189
break ;
190
190
case SocketEvents . Disconnected :
191
191
InvokeEvent ( Disconnected , new NetMQMonitorSocketEventArgs ( this , monitorEvent . Addr , GetArg < AsyncSocket > ( ) , SocketEvents . Disconnected ) ) ;
0 commit comments