示例#1
0
        protected void ValidateOptions()
        {
            if (string.IsNullOrEmpty(EncryptionKey))
            {
                EncryptionKey = "Progress";
                Log.Info($"Using default encryption key : {EncryptionKey.PrettyQuote()}.");
            }

            if (EncryptionKey.Length > 8)
            {
                Log.Warn("The max length for encryption key is 8 characters. Everything above is actually ignored.");
                Log.Warn($"The actual key used will be : {EncryptionKey.Substring(0, 8).PrettyQuote()}.");
            }
        }