mirror of
https://github.com/bitwarden/server.git
synced 2025-06-28 06:36:15 -05:00
Add scoped services for collection commands
* Register ICreateCollectionCommand and IUpdateCollectionCommand in the service collection for handling collection creation and updates.
This commit is contained in:
parent
2e2cf2e0df
commit
c7f3db3047
@ -143,6 +143,8 @@ public static class OrganizationServiceCollectionExtensions
|
|||||||
|
|
||||||
public static void AddOrganizationCollectionCommands(this IServiceCollection services)
|
public static void AddOrganizationCollectionCommands(this IServiceCollection services)
|
||||||
{
|
{
|
||||||
|
services.AddScoped<ICreateCollectionCommand, CreateCollectionCommand>();
|
||||||
|
services.AddScoped<IUpdateCollectionCommand, UpdateCollectionCommand>();
|
||||||
services.AddScoped<IDeleteCollectionCommand, DeleteCollectionCommand>();
|
services.AddScoped<IDeleteCollectionCommand, DeleteCollectionCommand>();
|
||||||
services.AddScoped<IBulkAddCollectionAccessCommand, BulkAddCollectionAccessCommand>();
|
services.AddScoped<IBulkAddCollectionAccessCommand, BulkAddCollectionAccessCommand>();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user