mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 07:03:11 +08:00
19 lines
581 B
C#
19 lines
581 B
C#
|
|
using Bit.Core.KeyManagement.Commands;
|
|||
|
|
using Bit.Core.KeyManagement.Commands.Interfaces;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.KeyManagement;
|
|||
|
|
|
|||
|
|
public static class KeyManagementServiceCollectionExtensions
|
|||
|
|
{
|
|||
|
|
public static void AddKeyManagementServices(this IServiceCollection services)
|
|||
|
|
{
|
|||
|
|
services.AddKeyManagementCommands();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private static void AddKeyManagementCommands(this IServiceCollection services)
|
|||
|
|
{
|
|||
|
|
services.AddScoped<IRegenerateUserAsymmetricKeysCommand, RegenerateUserAsymmetricKeysCommand>();
|
|||
|
|
}
|
|||
|
|
}
|