Skip to content

Commit

Permalink
transient to scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d12 committed Feb 27, 2025
1 parent c91ca05 commit 83db593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static void RegisterServices(this IServiceCollection services)
{
services.TryAddSingleton<IAzureDevOpsService, AzureDevOpsService>();
services.TryAddSingleton<IAzureDevOpsConnectionService, AzureDevOpsConnectionService>();
services.AddTransient<IQueryService, AzureDevOpsQueryService>();
services.AddScoped<IQueryService, AzureDevOpsQueryService>();
services.AddSingleton<IDiscoveryService, AzureDevOpsDiscoveryService>();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ private static void RegisterServices(this IServiceCollection services)
{
services.TryAddSingleton<IGitHubConnectionService, GitHubConnectionService>();
services.TryAddSingleton<IGitHubService, GitHubService>();
services.AddScoped<IQueryService, GitHubQueryService>();
services.AddSingleton<IDiscoveryService, GitHubDiscoveryService>();
services.AddTransient<IQueryService, GitHubQueryService>();
}

private static void RegisterOptions(this IServiceCollection services, IConfiguration configuration)
Expand Down

0 comments on commit 83db593

Please sign in to comment.