SignedCloudEvent Constructor
Definition
- Namespace
- Savvyio.EventDriven.Messaging.CloudEvents.Cryptography
- Assemblies
- Savvyio.EventDriven.Messaging.dll
SignedCloudEvent(ICloudEvent<T>, string)
Initializes a new instance of the SignedCloudEvent<T> class.
public SignedCloudEvent(ICloudEvent<T> message, string signature)
Parameters
messageICloudEvent<T>The cloud event to sign.
signaturestringThe cryptographic signature of the
message.
Exceptions
- ArgumentNullException
messagecannot be null - or -signaturecannot be null.- ArgumentException
signaturecannot be empty or consist only of white-space characters.