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

Commit e29b295

Browse files
committed
Allow MEF to find UsageTracker.
1 parent d5b9df5 commit e29b295

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/GitHub.App/Services/UsageTracker.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
using ReactiveUI;
1616
using Rothko;
1717

18+
#pragma warning disable CS0649
19+
1820
namespace GitHub.Services
1921
{
22+
using Microsoft.VisualStudio.Shell;
2023
using Guard = GitHub.Extensions.Guard;
2124

2225
[Export(typeof(IUsageTracker))]
@@ -67,16 +70,8 @@ public UsageTracker(
6770
////Lazy<IAppVersionProvider> appVersionProvider,
6871
Lazy<IEnvironment> environment,
6972
IPackageSettings userSettings,
70-
IServiceProvider serviceProvider)
73+
IUIProvider serviceProvider)
7174
{
72-
Guard.ArgumentNotNull(cache, "cache");
73-
////Guard.ArgumentNotNull(trackedRepositories, "trackedRepositories");
74-
Guard.ArgumentNotNull(repositoryHosts, "repositoryHosts");
75-
////Guard.ArgumentNotNull(appVersionProvider, "appVersionProvider");
76-
Guard.ArgumentNotNull(environment, "environment");
77-
Guard.ArgumentNotNull(userSettings, "userSettings");
78-
Guard.ArgumentNotNull(serviceProvider, "serviceProvider");
79-
8075
this.cache = cache;
8176
////this.trackedRepositories = trackedRepositories;
8277
this.repositoryHosts = repositoryHosts;

src/GitHub.App/ViewModels/RepositoryCloneViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ IObservable<Unit> OnCloneRepository(object state)
134134
// The following is a noop if the directory already exists.
135135
operatingSystem.Directory.CreateDirectory(BaseRepositoryPath);
136136

137-
// Are we OK doing this here or should we be doing it after the clone succeeds.
137+
// Are we OK doing this here or should we be doing it after the clone succeeds?
138138
this.usageTracker.IncrementCloneCount();
139139

140140
return cloneService.CloneRepository(repository.CloneUrl, repository.Name, BaseRepositoryPath);

0 commit comments

Comments
 (0)