コード例 #1
0
 public FrontendBehavior(StepType type, ChallengeType challengeType, CallAction callback,
                         FrontendBehavior alternativeBehavior = null)
 {
     Type                = type;
     ActionType          = ActionType.Callback;
     Callback            = callback;
     ChallengeType       = challengeType;
     AlternativeBehavior = alternativeBehavior;
 }
コード例 #2
0
 public static FrontendBehavior CreateRedirect(Uri uri)
 {
     return(new()
     {
         ActionType = ActionType.Redirect,
         Callback = new CallAction(uri, HttpMethod.Get.Method),
         Type = StepType.Success
     });
 }