diff --git a/GraphQL/XBaseGraphQLTypeHelper.cs b/GraphQL/XBaseGraphQLTypeHelper.cs index fa06eda..bf3ce11 100644 --- a/GraphQL/XBaseGraphQLTypeHelper.cs +++ b/GraphQL/XBaseGraphQLTypeHelper.cs @@ -12,7 +12,7 @@ namespace xDataService.GraphQL private readonly XDataServiceConfiguration configuration; // - public XBaseGraphQLTypeHelper( + protected XBaseGraphQLTypeHelper( XDataServiceConfiguration configuration = null ) { diff --git a/Interfaces/IXBaseReferencedProvider.cs b/Interfaces/IXBaseReferencedProvider.cs index 7dfdd58..ff1fe09 100644 --- a/Interfaces/IXBaseReferencedProvider.cs +++ b/Interfaces/IXBaseReferencedProvider.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; using xDataService.Models; using xModels.Dtos; @@ -30,41 +31,57 @@ namespace xDataService.Interfaces /// /// /// + /// /// Task GetReference( TKey providedForId, - int forIndex = 0 + int forIndex = 0, + CancellationToken cancellationToken = default ); /// /// Retrieve all Exists References of Specific Provided ID ... /// /// + /// /// - Task> GetAllReferences(TKey providedForId); + Task> GetAllReferences( + TKey providedForId, + CancellationToken cancellationToken = default + ); /// /// Extract all Referencing Models for Specified Key ... /// /// + /// /// - Task>> GetAllReferencings(TKey providedForId); + Task>> GetAllReferencings( + TKey providedForId, + CancellationToken cancellationToken = default + ); /// /// Count References ... /// /// + /// /// - Task CountReferences(TKey providedForId); + Task CountReferences( + TKey providedForId, + CancellationToken cancellationToken = default + ); /// /// Retrieve References of Specific Provided ID as Query ... /// /// + /// /// Task> QueryReferences( XQuery query, - TKey providedForId + TKey providedForId, + CancellationToken cancellationToken = default ); /// @@ -72,13 +89,14 @@ namespace xDataService.Interfaces /// /// /// - /// /// + /// /// Task AddReference( TModel model, TKey providedForId, - string connectionId = null + string connectionId = null, + CancellationToken cancellationToken = default ); /// @@ -87,11 +105,13 @@ namespace xDataService.Interfaces /// /// /// + /// /// Task AddReference( TModel model, XReference reference, - string connectionId = null + string connectionId = null, + CancellationToken cancellationToken = default ); /// @@ -99,26 +119,29 @@ namespace xDataService.Interfaces /// /// /// - /// if null, removes all /// + /// /// Task RemoveReference( TModel model, TKey providedForId, - string connectionId = null + string connectionId = null, + CancellationToken cancellationToken = default ); /// /// Remove Reference a Model for Specific XRefence ... /// /// - /// + /// /// + /// /// Task RemoveReference( TModel model, XReference reference, - string connectionId = null + string connectionId = null, + CancellationToken cancellationToken = default ); /// @@ -126,10 +149,12 @@ namespace xDataService.Interfaces /// /// /// + /// /// Task RemoveReferences( TKey providedForId, - string connectionId = null + string connectionId = null, + CancellationToken cancellationToken = default ); #endregion }