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

Commit 79325ff

Browse files
Creating a Rothko Environment to send to UsageService
- `ServiceProviderPackage` is there to avoid making calls to MEF - `Environment` is not a MEF Part so it will be created everytime for e veryone that needs it
1 parent cf74826 commit 79325ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/GitHubPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async Task<object> CreateService(IAsyncServiceContainer container, CancellationT
250250
else if (serviceType == typeof(IUsageService))
251251
{
252252
var sp = await GetServiceAsync(typeof(IGitHubServiceProvider)) as IGitHubServiceProvider;
253-
var environment = await GetServiceAsync(typeof(IEnvironment)) as IEnvironment;
253+
var environment = new Rothko.Environment();
254254
return new UsageService(sp, environment);
255255
}
256256
else if (serviceType == typeof(IUsageTracker))

0 commit comments

Comments
 (0)