mirror of
https://github.com/bitwarden/server
synced 2025-12-26 13:13:24 +00:00
22 lines
618 B
C#
22 lines
618 B
C#
#nullable enable
|
|
|
|
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;
|
|
}
|
|
}
|