NServiceBus.WireEncryptedStringConversions.EncryptValue C# (CSharp) Method

EncryptValue() public static method

public static EncryptValue ( this encryptionService, WireEncryptedString wireEncryptedString, IOutgoingLogicalMessageContext context ) : void
encryptionService this
wireEncryptedString WireEncryptedString
context IOutgoingLogicalMessageContext
return void
        public static void EncryptValue(this IEncryptionService encryptionService, WireEncryptedString wireEncryptedString, IOutgoingLogicalMessageContext context)
        {
            wireEncryptedString.EncryptedValue = encryptionService.Encrypt(wireEncryptedString.Value, context);
            wireEncryptedString.Value = null;
        }
WireEncryptedStringConversions