This commit is contained in:
2025-12-19 04:01:42 +03:30
parent cdd12cb6f6
commit b956e7a0fe
@@ -24,11 +24,6 @@ namespace xIdentityService.Interfaces
string Provider { get; }
#endregion
//
#region Identifier ...
Task<int> LastIndex(TKey providedForId);
#endregion
//
#region Referenced Actions ...
/// <summary>
@@ -49,6 +44,13 @@ namespace xIdentityService.Interfaces
/// <returns></returns>
Task<IEnumerable<TModel>> GetAllReferences(TKey providedForId);
/// <summary>
/// Count References ...
/// </summary>
/// <param name="providedForId"></param>
/// <returns></returns>
Task<int> CountReferences(TKey providedForId);
/// <summary>
/// Retrieve References of Specific Provided ID as Query ...
/// </summary>
@@ -64,14 +66,12 @@ namespace xIdentityService.Interfaces
/// </summary>
/// <param name="model"></param>
/// <param name="providedForId"></param>
/// <param name="forIndex"></param>
/// <param name="connectionId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task<bool> AddReference(
TModel model,
TKey providedForId,
int forIndex = 0,
string connectionId = null,
XUserClaimsInfoDto userInfo = null
);
@@ -96,14 +96,12 @@ namespace xIdentityService.Interfaces
/// </summary>
/// <param name="model"></param>
/// <param name="providedForId"></param>
/// <param name="forIndex">if null, removes all</param>
/// <param name="connectionId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task<bool> RemoveReference(
TModel model,
TKey providedForId,
int? forIndex = null,
string connectionId = null,
XUserClaimsInfoDto userInfo = null
);