public Task Handle(CreatePullRequestResponse message, IMessageHandlerContext context) { this.Data.PullRequestLocation = message.PullRequestLocation; return(this.RequestTimeout <CheckCommentAnswerTimeout>( context, TimeSpan.FromSeconds(this.configurationManager.CommentResponseAddedSagaTimeoutInSeconds))); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreatePullRequestResponse response = new CreatePullRequestResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("pullRequest", targetDepth)) { var unmarshaller = PullRequestUnmarshaller.Instance; response.PullRequest = unmarshaller.Unmarshall(context); continue; } } return(response); }