Ejemplo n.º 1
0
        protected RawStateMachineBase(TState initialState, Configuration <TState, TTrigger> configuration)
        {
            Representations = configuration.Representations;

            CurrentStateRepresentation = StateConfigurationHelper.FindStateRepresentation(
                initialState, Representations);

            if (CurrentStateRepresentation == null)
            {
                ExceptionHelper.ThrowInvalidState(initialState);
            }

            diagnostics = new RawStateMachineDiagnostics <TState, TTrigger>(this);
        }