NServiceBus.ConfigureRijndaelEncryptionService.RegisterEncryptionService C# (CSharp) Method

RegisterEncryptionService() public static method

Register a custom IEncryptionService to be used for message encryption.
public static RegisterEncryptionService ( this config, Func func ) : void
config this The instance to apply the settings to.
func Func /// A delegate that constructs the instance of to use for all /// encryption. ///
return void
        public static void RegisterEncryptionService(this EndpointConfiguration config, Func<IEncryptionService> func)
        {
            Guard.AgainstNull(nameof(config), config);

            config.Settings.Set(EncryptedServiceContstructorKey, func);
        }