Skip to main content

ResQ.Blockchain.MockNeoClient

MockNeoClient.RecordEvidenceAsync(EvidenceRecord, CancellationToken) Method

Records mock evidence metadata in memory.

Parameters

evidence EvidenceRecord The evidence record to record. cancellationToken System.Threading.CancellationToken Cancellation token for the operation. Implements RecordEvidenceAsync(EvidenceRecord, CancellationToken)

Returns

System.Threading.Tasks.Task<TransactionResult>
A TransactionResult with a generated transaction hash and confirmed status.

Example

Remarks

This mock implementation generates a transaction hash and logs the evidence details including the incident ID and IPFS CID.