Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="args">Optional arguments for the new execution.</param>
        /// <param name="domain">Optional domain for the new execution.</param>
        /// <param name="taskList">Optional task list for the new execution.</param>
        /// <param name="executionToStartTimeout">Optional execution to start timeout for the new execution.</param>
        /// <param name="scheduleToCloseTimeout">Optional schedule to close timeout for the new execution.</param>
        /// <param name="scheduleToStartTimeout">Optional schedule to start timeout for the new execution.</param>
        /// <param name="taskStartToCloseTimeout">Optional decision task start to close timeout for the new execution.</param>
        /// <param name="retryPolicy">Optional retry policy for the new execution.</param>
        public CadenceWorkflowRestartException(
            byte[]          args             = null,
            string domain                    = null,
            string taskList                  = null,
            TimeSpan executionToStartTimeout = default,
            TimeSpan scheduleToCloseTimeout  = default,
            TimeSpan scheduleToStartTimeout  = default,
            TimeSpan taskStartToCloseTimeout = default,
            RetryOptions retryPolicy         = null)

            : base()
        {
            this.Args     = args;
            this.Domain   = domain;
            this.TaskList = taskList;
            this.ExecutionStartToCloseTimeout = executionToStartTimeout;
            this.ScheduleToStartTimeout       = scheduleToStartTimeout;
            this.ScheduleToCloseTimeout       = scheduleToCloseTimeout;
            this.TaskStartToCloseTimeout      = taskStartToCloseTimeout;
            this.RetryPolicy = retryPolicy;
        }
Пример #2
0
        /// <summary>
        /// Constructs an instance using explicit arguments.
        /// </summary>
        /// <param name="args">Optional arguments for the new execution.</param>
        /// <param name="workflow">Optional workflow for the new execution.</param>
        /// <param name="domain">Optional domain for the new execution.</param>
        /// <param name="taskList">Optional task list for the new execution.</param>
        /// <param name="startToCloseTimeout">Optional execution to start timeout for the new execution.</param>
        /// <param name="scheduleToCloseTimeout">Optional schedule to close timeout for the new execution.</param>
        /// <param name="scheduleToStartTimeout">Optional schedule to start timeout for the new execution.</param>
        /// <param name="decisionTaskTimeout">Optional decision task start to close timeout for the new execution.</param>
        /// <param name="retryOptions">Optional retry options for the new execution.</param>
        public ContinueAsNewException(
            byte[]          args                   = null,
            string          workflow               = null,
            string          domain                 = null,
            string          taskList               = null,
            TimeSpan        startToCloseTimeout    = default,
            TimeSpan        scheduleToCloseTimeout = default,
            TimeSpan        scheduleToStartTimeout = default,
            TimeSpan        decisionTaskTimeout    = default,
            RetryOptions    retryOptions           = null)

            : base()
        {
            this.Args                   = args;
            this.Workflow               = workflow;
            this.Domain                 = domain;
            this.TaskList               = taskList;
            this.StartToCloseTimeout    = startToCloseTimeout;
            this.ScheduleToStartTimeout = scheduleToStartTimeout;
            this.ScheduleToCloseTimeout = scheduleToCloseTimeout;
            this.DecisionTaskTimeout    = decisionTaskTimeout;
            this.RetryOptions           = retryOptions;
        }