Ejemplo n.º 1
0
 public override void Define(IStateFromBuilder<AuthenticationState> builder)
 {
     builder.From(AuthenticationState.Unauthenticated).To(AuthenticationState.Authenticated)
         .Changing(this, a => a.ChangingHandler1)
         .Changed(this, a => a.ChangedHandler1);
     builder.OnEntering(AuthenticationState.Authenticated, this, a => a.OnEnteringHandler1);
     builder.OnEntered(AuthenticationState.Authenticated, this, a => a.OnEnteredHandler1);
     
     builder.OnExiting(AuthenticationState.Unauthenticated, this, a => a.OnExitingHandler1);
     builder.OnExited(AuthenticationState.Authenticated, this, a => a.OnExitedHandler1);
     
     builder.OnEditing(AuthenticationState.Authenticated, this, a => a.OnEditingHandler1);
     builder.OnEdited(AuthenticationState.Authenticated, this, a => a.OnEditedHandler1);
     
     builder.ThrowExceptionWhenDiscontinued = true;
 }
Ejemplo n.º 2
0
 public abstract void Define(IStateFromBuilder <TState> builder);
Ejemplo n.º 3
0
 public override void Define(IStateFromBuilder <TState> builder)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public override void Define(IStateFromBuilder<AuthenticationState> builder)
 {
     builder.From(AuthenticationState.Unauthenticated).To(AuthenticationState.Authenticated)
         .Changing(this, a => a.ChangingHandler2);
 }