From a819fa2a4df2d40ce90a9ed394b4ac94d43eb1dc Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Thu, 29 Jan 2026 16:59:07 +0000 Subject: [PATCH] Create database update action delegate for organization initialization. --- .../Interfaces/IInitPendingOrganizationCommand.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Core/AdminConsole/OrganizationFeatures/Organizations/Interfaces/IInitPendingOrganizationCommand.cs b/src/Core/AdminConsole/OrganizationFeatures/Organizations/Interfaces/IInitPendingOrganizationCommand.cs index 8c7e20c62b..761735f205 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/Organizations/Interfaces/IInitPendingOrganizationCommand.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/Organizations/Interfaces/IInitPendingOrganizationCommand.cs @@ -1,6 +1,8 @@ using Bit.Core.AdminConsole.OrganizationFeatures.Organizations; using Bit.Core.AdminConsole.Utilities.v2.Results; using Bit.Core.Entities; +using Microsoft.Data.SqlClient; + namespace Bit.Core.OrganizationFeatures.OrganizationUsers.Interfaces; public interface IInitPendingOrganizationCommand @@ -20,3 +22,10 @@ public interface IInitPendingOrganizationCommand /// A CommandResult indicating success or specific validation errors. Task InitPendingOrganizationVNextAsync(InitPendingOrganizationRequest request); } + +/// +/// Represents a database update action to be executed during organization initialization. +/// +public delegate Task OrganizationInitializationUpdateAction(SqlConnection? connection = null, + SqlTransaction? transaction = null, + object? context = null);