Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 78a2518

Browse files
committed
Import Lazy<IPullRequestSessionManager> directly
No need to go through IGitHubServiceProvider.
1 parent d8256bd commit 78a2518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.InlineReviews/Margins/InlineCommentMarginProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal sealed class InlineCommentMarginProvider : IWpfTextViewMarginProvider
2626

2727
[ImportingConstructor]
2828
public InlineCommentMarginProvider(
29-
IGitHubServiceProvider serviceProvider,
29+
Lazy<IPullRequestSessionManager> sessionManager,
3030
IEditorFormatMapService editorFormatMapService,
3131
IViewTagAggregatorFactoryService tagAggregatorFactory,
3232
IInlineCommentPeekService peekService,
@@ -35,7 +35,7 @@ public InlineCommentMarginProvider(
3535
this.editorFormatMapService = editorFormatMapService;
3636
this.tagAggregatorFactory = tagAggregatorFactory;
3737
this.peekService = peekService;
38-
sessionManager = new Lazy<IPullRequestSessionManager>(() => serviceProvider.GetService<IPullRequestSessionManager>());
38+
this.sessionManager = sessionManager;
3939
this.inlineCommentMarginEnabled = inlineCommentMarginEnabled;
4040
}
4141

0 commit comments

Comments
 (0)