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

Commit

Permalink
Merge 7766c8c into 3c23402
Browse files Browse the repository at this point in the history
  • Loading branch information
jcansdale authored Feb 2, 2018
2 parents 3c23402 + 7766c8c commit 74753ef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

namespace GitHub.TeamFoundation.Services
{
[Export(typeof(ILocalRepositoryModelFactory))]
[PartCreationPolicy(CreationPolicy.Shared)]
class LocalRepositoryModelFactory : ILocalRepositoryModelFactory
{
public ILocalRepositoryModel Create(string localPath)
Expand Down
6 changes: 6 additions & 0 deletions src/GitHub.TeamFoundation.14/Services/VSGitExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using GitHub.Models;
using GitHub.Services;
using GitHub.Logging;
using GitHub.TeamFoundation.Services;
using Serilog;
using Microsoft.VisualStudio.TeamFoundation.Git.Extensibility;
using Task = System.Threading.Tasks.Task;
Expand All @@ -28,6 +29,11 @@ public class VSGitExt : IVSGitExt
IReadOnlyList<ILocalRepositoryModel> activeRepositories;

[ImportingConstructor]
public VSGitExt(IGitHubServiceProvider serviceProvider)
: this(serviceProvider, new VSUIContextFactory(), new LocalRepositoryModelFactory())
{
}

public VSGitExt(IGitHubServiceProvider serviceProvider, IVSUIContextFactory factory, ILocalRepositoryModelFactory repositoryFactory)
{
this.serviceProvider = serviceProvider;
Expand Down
2 changes: 0 additions & 2 deletions src/GitHub.TeamFoundation.14/Services/VSUIContextFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace GitHub.TeamFoundation.Services
{
[Export(typeof(IVSUIContextFactory))]
[PartCreationPolicy(CreationPolicy.Shared)]
class VSUIContextFactory : IVSUIContextFactory
{
public IVSUIContext GetUIContext(Guid contextGuid)
Expand Down
6 changes: 6 additions & 0 deletions src/GitHub.TeamFoundation.15/GitHub.TeamFoundation.15.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,15 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\GitHub.TeamFoundation.14\Services\LocalRepositoryModelFactory.cs">
<Link>Services\LocalRepositoryModelFactory.cs</Link>
</Compile>
<Compile Include="..\GitHub.TeamFoundation.14\Services\VSGitExt.cs">
<Link>Services\VSGitExt.cs</Link>
</Compile>
<Compile Include="..\GitHub.TeamFoundation.14\Services\VSUIContextFactory.cs">
<Link>Services\VSUIContextFactory.cs</Link>
</Compile>
<Compile Include="..\GitHub.TeamFoundation.14\Settings.cs">
<Link>Settings.cs</Link>
</Compile>
Expand Down

0 comments on commit 74753ef

Please sign in to comment.