コード例 #1
0
ファイル: VclHandler.cs プロジェクト: dementeddevil/vcl-proxy
            protected virtual void SwitchState(VclHandler handler, VclBackendAction action)
            {
                if (!ValidTransitionStates.Contains(action))
                {
                    throw new InvalidOperationException($"Invalid attempt to transition back-end from {State} to {action}.");
                }

                handler.Logger?.LogDebug($"Backend state transition from {State} to {action}");
                handler._currentBackendState = VclBackendHandlerStateFactory.Get(action);
            }
コード例 #2
0
ファイル: VclHandler.cs プロジェクト: dementeddevil/vcl-proxy
 public static VclBackendHandlerState Get(VclBackendAction action)
 {
     return(KnownStates[action]);
 }