Method DoDigestAction
DoDigestAction(Action<Byte[]>)
Performs the given action after the document content digest has been calculated.
Declaration
public Behaviour DoDigestAction(Action<byte[]> digestAction)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Byte[]> | digestAction | The action to perform. |
Returns
Type | Description |
---|---|
Behaviour | The changed behaviour. |
Remarks
To be used in conjunction with DoHardwareSign().
Examples
Creates a behaviour that will print the calculated document content digest to the console.
Behaviour behaviour = Behaviour.GetDefault()
.DoHardwareSign()
.DoDigestAction((digest) => Console.WriteLine(BitConverter.ToString(digest)));