Beispiel #1
0
            protected virtual void SwitchState(VclHandler handler, VclFrontendAction frontendAction)
            {
                if (!ValidTransitionStates.Contains(frontendAction))
                {
                    throw new InvalidOperationException($"Invalid attempt to transition front-end from {State} to {frontendAction}.");
                }

                handler.Logger?.LogDebug($"Client state transition from {State} to {frontendAction}");
                handler._currentFrontendState = VclFrontendHandlerStateFactory.Get(frontendAction);
            }
Beispiel #2
0
 public static VclFrontendHandlerState Get(VclFrontendAction frontendAction)
 {
     return(KnownStates[frontendAction]);
 }