-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vincent Wilms
committed
Nov 11, 2024
1 parent
19b9954
commit f971542
Showing
5 changed files
with
66 additions
and
67 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/Nexus.PackageManagement/Core/PackageManagementServiceCollectionExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Nexus.PackageManagement.Services; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
/// <summary> | ||
/// Extension methods for setting up MVC services in an <see cref="IServiceCollection" />. | ||
/// </summary> | ||
public static class MvcServiceCollectionExtensions | ||
{ | ||
/// <summary> | ||
/// Adds services required for the package management. | ||
/// </summary> | ||
/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> | ||
/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> | ||
public static IServiceCollection AddPackageManagement(this IServiceCollection services) | ||
{ | ||
return services | ||
.AddSingleton<IPackageService, PackageService>() | ||
.AddSingleton<IPackageManagementDatabaseService, PackageManagementDatabaseService>() | ||
.AddSingleton<IExtensionHive, ExtensionHive>() | ||
.Configure<IPackageManagementPathsOptions>(options => new PackageManagementPathsOptions()); | ||
} | ||
} |
61 changes: 0 additions & 61 deletions
61
src/Nexus.PackageManagement/Core/PackageMangementServiceCollectionExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters