Opc.Ua.Security.Audit.SecureChannelRenewed C# (CSharp) Method

SecureChannelRenewed() public static method

Called when a secure channel is renewed by the client.
public static SecureChannelRenewed ( string implementationInfo, string secureChannelId ) : void
implementationInfo string Information about the secure channel implementation.
secureChannelId string The identifier assigned to the secure channel.
return void
        public static void SecureChannelRenewed(
            string implementationInfo,
            string secureChannelId)
        {
            // do nothing if security turned off.
            if ((Utils.TraceMask & Utils.TraceMasks.Security) == 0)
            {
                return;
            }

            StringBuilder buffer = new StringBuilder();

            buffer.Append("SECURE CHANNEL RENEWED");
            buffer.Append(" [");
            buffer.Append(implementationInfo);
            buffer.Append("]");
            buffer.Append(" [ID=");
            buffer.Append(secureChannelId);
            buffer.Append("]");

            Utils.Trace(Utils.TraceMasks.Security, buffer.ToString());
        }
    }