2024-12-13 14:50:20 -05:00
|
|
|
|
using Bit.Core.Vault.Commands;
|
|
|
|
|
|
using Bit.Core.Vault.Commands.Interfaces;
|
|
|
|
|
|
using Bit.Core.Vault.Queries;
|
2024-02-08 14:07:58 -08:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Vault;
|
|
|
|
|
|
|
|
|
|
|
|
public static class VaultServiceCollectionExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static IServiceCollection AddVaultServices(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddVaultQueries();
|
|
|
|
|
|
|
|
|
|
|
|
return services;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void AddVaultQueries(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddScoped<IOrganizationCiphersQuery, OrganizationCiphersQuery>();
|
2024-12-12 14:27:31 -05:00
|
|
|
|
services.AddScoped<IGetTaskDetailsForUserQuery, GetTaskDetailsForUserQuery>();
|
2024-12-13 14:50:20 -05:00
|
|
|
|
services.AddScoped<IMarkTaskAsCompleteCommand, MarkTaskAsCompletedCommand>();
|
2025-01-09 12:14:24 -08:00
|
|
|
|
services.AddScoped<IGetCipherPermissionsForUserQuery, GetCipherPermissionsForUserQuery>();
|
2025-01-29 12:07:03 -08:00
|
|
|
|
services.AddScoped<IGetTasksForOrganizationQuery, GetTasksForOrganizationQuery>();
|
2025-02-27 08:34:42 -06:00
|
|
|
|
services.AddScoped<IGetSecurityTasksNotificationDetailsQuery, GetSecurityTasksNotificationDetailsQuery>();
|
|
|
|
|
|
services.AddScoped<ICreateManyTaskNotificationsCommand, CreateManyTaskNotificationsCommand>();
|
2025-02-05 16:56:01 -05:00
|
|
|
|
services.AddScoped<ICreateManyTasksCommand, CreateManyTasksCommand>();
|
2024-02-08 14:07:58 -08:00
|
|
|
|
}
|
|
|
|
|
|
}
|