Example #1
0
 public Task OnHandlersSample()
 {
     VerifierSettings.OnVerify(
         before: () => { Debug.WriteLine("before"); },
         after: () => { Debug.WriteLine("after"); });
     VerifierSettings.OnFirstVerify(
         receivedFile =>
     {
         Debug.WriteLine(receivedFile);
         return(Task.CompletedTask);
     });
     VerifierSettings.OnVerifyMismatch(
         (filePair, message) =>
     {
         Debug.WriteLine(filePair.Received);
         Debug.WriteLine(filePair.Verified);
         Debug.WriteLine(message);
         return(Task.CompletedTask);
     });
     return(Verifier.Verify("value"));
 }