/// <inheritdoc/> protected override async Task <object> CallGitHubApi(DialogContext dc, Octokit.GitHubClient gitHubClient, CancellationToken cancellationToken = default(CancellationToken)) { if (Owner != null && Name != null && Number != null && IssueUpdate != null) { var ownerValue = Owner.GetValue(dc.State); var nameValue = Name.GetValue(dc.State); var numberValue = Number.GetValue(dc.State); var issueUpdateValue = IssueUpdate.GetValue(dc.State); return(await gitHubClient.Issue.Update(ownerValue, nameValue, (Int32)numberValue, issueUpdateValue).ConfigureAwait(false)); } if (RepositoryId != null && Number != null && IssueUpdate != null) { var repositoryIdValue = RepositoryId.GetValue(dc.State); var numberValue = Number.GetValue(dc.State); var issueUpdateValue = IssueUpdate.GetValue(dc.State); return(await gitHubClient.Issue.Update((Int64)repositoryIdValue, (Int32)numberValue, issueUpdateValue).ConfigureAwait(false)); } throw new ArgumentNullException("Required [number,issueUpdate] arguments missing for GitHubClient.Issue.Update"); }