This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-20
lines changed
Expand file tree Collapse file tree 3 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 329329 <Compile Include =" Services\LoginManagerDispatcher.cs" />
330330 <Compile Include =" Services\UsageTrackerDispatcher.cs" />
331331 <Compile Include =" Services\VSGitExtFactory.cs" />
332- <Compile Include =" Services\VSGitExtDispatcher.cs" />
333332 <Compile Include =" Settings\Constants.cs" />
334333 <Compile Include =" Services\ConnectionManager.cs" />
335334 <Compile Include =" Services\Program.cs" />
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22extern alias TF15 ;
33
44using System ;
5+ using System . ComponentModel . Composition ;
56using GitHub . Logging ;
67using Serilog ;
78using VSGitExt14 = TF14 . GitHub . VisualStudio . Base . VSGitExt ;
1011
1112namespace GitHub . Services
1213{
14+ [ PartCreationPolicy ( CreationPolicy . Shared ) ]
1315 public class VSGitExtFactory
1416 {
1517 static readonly ILogger log = LogManager . ForContext < VSGitExtFactory > ( ) ;
1618
19+ readonly IGitHubServiceProvider serviceProvider ;
20+
21+ [ ImportingConstructor ]
22+ public VSGitExtFactory ( IGitHubServiceProvider serviceProvider )
23+ {
24+ this . serviceProvider = serviceProvider ;
25+ }
26+
27+ [ Export ( typeof ( IVSGitExt ) ) ]
28+ public IVSGitExt VSGitExt => serviceProvider . GetService < IVSGitExt > ( ) ;
29+
1730 public static IVSGitExt Create ( string dteVersion , IAsyncServiceProvider sp )
1831 {
1932 // DTE.Version always ends with ".0" even for later minor versions.
You can’t perform that action at this time.
0 commit comments