public IPullRequestDiscussion GetDiscussion() { if (_discussion is null) { _discussion = new GitHubPullRequestDiscussion(_pullRequest); } return(_discussion); }
private void LoadDiscussion(IPullRequestDiscussion discussion) { var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion != null ? discussion.Entries : null); _discussionWB.DocumentText = t; }
private void LoadDiscussion([CanBeNull] IPullRequestDiscussion discussion) { var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion?.Entries); _discussionWB.DocumentText = t; }
private void LoadDiscussion(IPullRequestDiscussion discussion) { var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion != null ? discussion.Entries : null); _discussionWB.DocumentText = t; }