Class EncryptorProducerBehavior
- Namespace
- Silverback.Messaging.Encryption
- Assembly
- Silverback.Integration.dll
Encrypts the message according to the IEncryptionSettings.
public class EncryptorProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
- Inheritance
-
EncryptorProducerBehavior
- Implements
- Inherited Members
Constructors
EncryptorProducerBehavior(ISilverbackCryptoStreamFactory)
Initializes a new instance of the EncryptorProducerBehavior class.
public EncryptorProducerBehavior(ISilverbackCryptoStreamFactory streamFactory)
Parameters
streamFactoryISilverbackCryptoStreamFactory
Properties
SortIndex
Gets the sort index.
public int SortIndex { get; }
Property Value
Methods
HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being produced.
public ValueTask HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextProducerPipelineContextThe context that is passed along the behaviors pipeline.
nextProducerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.