mirror of
https://github.com/bitwarden/server
synced 2026-01-11 13:03:27 +00:00
* Added CQRS pattern * Added the GetManyByUserIdAsync signature to the repositiory * Added sql sproc Created user defined type to hold status Created migration file * Added ef core query * Added absract and concrete implementation for GetManyByUserIdStatusAsync * Added integration tests * Updated params to status * Implemented new query to utilize repository method * Added controller for the security task endpoint * Fixed lint issues * Added documentation * simplified to require single status modified script to check for users with edit rights * Updated ef core query * Added new assertions * simplified to require single status * fixed formatting * Fixed sql script * Removed default null * Added OperationAuthorizationRequirement for secruity task * Added and registered MarkTaskAsCompletedCommand * Added unit tests for the command * Added complete endpoint * removed false value
24 lines
744 B
C#
24 lines
744 B
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>();
|
|
}
|
|
}
|