mirror of
https://github.com/bitwarden/server
synced 2025-12-25 20:53:16 +00:00
20 lines
600 B
C#
20 lines
600 B
C#
using Bit.Core.Platform.Installations;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Bit.Core.Platform;
|
|
|
|
public static class PlatformServiceCollectionExtensions
|
|
{
|
|
/// <summary>
|
|
/// Extend DI to include commands and queries exported from the Platform
|
|
/// domain.
|
|
/// </summary>
|
|
public static IServiceCollection AddPlatformServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IGetInstallationQuery, GetInstallationQuery>();
|
|
services.AddScoped<IUpdateInstallationCommand, UpdateInstallationCommand>();
|
|
|
|
return services;
|
|
}
|
|
}
|