Пример #1
0
            /// <summary>
            /// Defines the currently configured state as a substate of a composite state
            /// </summary>
            public Enter AsSubstateOf(TState parentStateId)
            {
                if (parentStateId is null)
                {
                    throw new ArgumentNullException(nameof(parentStateId));
                }

                ParentStateId = parentStateId.ToMaybe();

                return(this);
            }