/// <summary> /// Initializes a new instance of the <see cref="MessageEncryptingForwardingAppender"/> class. /// </summary> /// <remarks> /// Default constructor. This instantiates the class with all default dependencies /// </remarks> public MessageEncryptingForwardingAppender() { // Use the default config section name var sectionName = LocateEncryptionConfigurationSection(); MessageEncryption = new RijndaelMessageEncryptor(sectionName); LogEventFactory = new LoggingEventFactory(); }
/// <summary> /// Initializes a new instance of the <see cref="MessageEncryptingForwardingAppender"/> class. /// </summary> /// <param name="configurationSection">The name of the configuration section that contains the encryption information.</param> /// <remarks> /// Default constructor. This instantiates the class with all default dependencies /// </remarks> public MessageEncryptingForwardingAppender(string configurationSection) { MessageEncryption = new RijndaelMessageEncryptor(configurationSection); LogEventFactory = new LoggingEventFactory(); }