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); }
public static VclFrontendHandlerState Get(VclFrontendAction frontendAction) { return(KnownStates[frontendAction]); }