Esempio n. 1
0
 public WorkflowResponse(WorkflowRequest request)
 {
     if (request != null)
     {
         this.WaitSeconds = request.WaitSeconds;
     }
 }
Esempio n. 2
0
        public static async Task <WorkflowResponse> FirstActivityAsync([ActivityTrigger] WorkflowRequest request, ILogger log)
        {
            WorkflowResponse retVal = new WorkflowResponse(request);

            log.LogInformation($"FirstActivity, waiting {request.WaitSeconds} seconds...");

            await Task.Delay(request.WaitSeconds * 1000);

            retVal.WaitSeconds = retVal.WaitSeconds + 1;

            return(retVal);
        }