Esempio n. 1
0
 public static void Match(
     this AuthenticationResult result,
     Action <AuthenticationResult.Authenticated> authenticated,
     Action <AuthenticationResult.AuthenticationFailed> authenticationFailed,
     Action <AuthenticationResult.NotSupported> notSupported,
     Action <AuthenticationResult.TaskCanceled> taskCanceled)
 {
     result.TypeMatch(authenticated, authenticationFailed, notSupported, taskCanceled);
 }
Esempio n. 2
0
 public static Task <TMatchResult> Match <TMatchResult>(
     this AuthenticationResult result,
     Func <AuthenticationResult.Authenticated, Task <TMatchResult> > authenticated,
     Func <AuthenticationResult.AuthenticationFailed, Task <TMatchResult> > authenticationFailed,
     Func <AuthenticationResult.NotSupported, Task <TMatchResult> > notSupported,
     Func <AuthenticationResult.TaskCanceled, Task <TMatchResult> > taskCanceled)
 {
     return(result.TypeMatch(authenticated, authenticationFailed, notSupported, taskCanceled));
 }