mirror of
https://github.com/bitwarden/server.git
synced 2026-02-02 07:03:11 +08:00
* Added the ArchivedDate to cipher entity and response model * Created migration scripts for sqlserver and ef core migration to add the ArchivedDate column --------- Co-authored-by: gbubemismith <gsmithwalter@gmail.com> Co-authored-by: SmithThe4th <gsmith@bitwarden.com> Co-authored-by: Shane <smelton@bitwarden.com> Co-authored-by: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Co-authored-by: jng <jng@bitwarden.com>
33 lines
1.6 KiB
C#
33 lines
1.6 KiB
C#
using Bit.Core.Vault.Commands;
|
|
using Bit.Core.Vault.Commands.Interfaces;
|
|
using Bit.Core.Vault.Queries;
|
|
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>();
|
|
services.AddScoped<IGetTaskDetailsForUserQuery, GetTaskDetailsForUserQuery>();
|
|
services.AddScoped<IMarkTaskAsCompleteCommand, MarkTaskAsCompletedCommand>();
|
|
services.AddScoped<IGetCipherPermissionsForUserQuery, GetCipherPermissionsForUserQuery>();
|
|
services.AddScoped<IGetTasksForOrganizationQuery, GetTasksForOrganizationQuery>();
|
|
services.AddScoped<IGetSecurityTasksNotificationDetailsQuery, GetSecurityTasksNotificationDetailsQuery>();
|
|
services.AddScoped<ICreateManyTaskNotificationsCommand, CreateManyTaskNotificationsCommand>();
|
|
services.AddScoped<ICreateManyTasksCommand, CreateManyTasksCommand>();
|
|
services.AddScoped<IArchiveCiphersCommand, ArchiveCiphersCommand>();
|
|
services.AddScoped<IUnarchiveCiphersCommand, UnarchiveCiphersCommand>();
|
|
services.AddScoped<IMarkNotificationsForTaskAsDeletedCommand, MarkNotificationsForTaskAsDeletedCommand>();
|
|
services.AddScoped<IGetTaskMetricsForOrganizationQuery, GetTaskMetricsForOrganizationQuery>();
|
|
}
|
|
}
|