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