diff --git a/Stack/Opc.Ua.Bindings.Pcap/Bindings/PcapTransportChannelBinding.cs b/Stack/Opc.Ua.Bindings.Pcap/Bindings/PcapTransportChannelBinding.cs index a29e4e41e2..f62499cdd5 100644 --- a/Stack/Opc.Ua.Bindings.Pcap/Bindings/PcapTransportChannelBinding.cs +++ b/Stack/Opc.Ua.Bindings.Pcap/Bindings/PcapTransportChannelBinding.cs @@ -87,10 +87,7 @@ namespace Opc.Ua.Bindings.Pcap.Bindings // offline decoder receives the derived key material alongside // the wire bytes. Subscribing here once per channel is // cheaper than subscribing at every send/receive site. - if (channel is ISecureChannel secureChannel) - { - secureChannel.OnTokenActivated += OnChannelTokenActivated; - } + ((ISecureChannel)channel).OnTokenActivated += OnChannelTokenActivated; return channel; }