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