Ejemplo n.º 1
0
        /// <summary>
        /// Регистрация шага для вызова.
        /// </summary>
        public WorkflowArea RegisterStep <TStep, TParameters>()
            where TStep : StepBase <TParameters>, new()
            where TParameters : StepParameters, new()
        {
            _steps[typeof(TStep)] = new TStep();

            return(this);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= tMarkers_.GetHashCode();
            if (TStep != 0D)
            {
                hash ^= TStep.GetHashCode();
            }
            if (Strategy.Length != 0)
            {
                hash ^= Strategy.GetHashCode();
            }
            return(hash);
        }