protected RespondDecisionTaskCompletedRequest StartTimer(WorkflowTimerSetupContext timer)
        {
            var attributes = new StartTimerDecisionAttributes
            {
                TimerId            = timer.TimerId,
                StartToFireTimeout = timer.StartToFireTimeoutInSeconds.ToString(),
                Control            = timer.Control
            };

            var decisionRequest = new RespondDecisionTaskCompletedRequest
            {
                Decisions = new List <Decision>
                {
                    new Decision
                    {
                        DecisionType = "StartTimer",
                        StartTimerDecisionAttributes = attributes
                    }
                }
            };

            Debug.WriteLine(">>> Decision: StartTimer " + attributes.TimerId + " (elapses in " + attributes.StartToFireTimeout + " seconds)");

            return(decisionRequest);
        }
        protected RespondDecisionTaskCompletedRequest StartTimer(WorkflowTimerSetupContext timer)
        {
            var attributes = new StartTimerDecisionAttributes
            {
                TimerId = timer.TimerId,
                StartToFireTimeout = timer.StartToFireTimeoutInSeconds.ToString(),
                Control = timer.Control
            };

            var decisionRequest = new RespondDecisionTaskCompletedRequest
            {
                Decisions = new List<Decision>
                    {
                        new Decision
                            {
                                DecisionType = "StartTimer",
                                StartTimerDecisionAttributes = attributes
                            }
                    }
            };

            Debug.WriteLine(">>> Decision: StartTimer " + attributes.TimerId + " (elapses in " + attributes.StartToFireTimeout + " seconds)");

            return decisionRequest;
        }