-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace idee5.Common.Data; | ||
/// <summary> | ||
/// The asynchronous data importer | ||
/// </summary> | ||
/// <typeparam name="TQuery">The query parameter type</typeparam> | ||
/// <typeparam name="TCommand">The command parameter type</typeparam> | ||
/// <typeparam name="TCleanupCmd">The cleanup command parameter type</typeparam> | ||
public interface IAsyncDataImporter<TQuery, TCommand, TCleanupCmd> where TQuery : IQuery<TCommand> where TCleanupCmd : ICleanupCommand { | ||
/// <summary> | ||
/// Executes the import | ||
/// </summary> | ||
/// <param name="query">The query parameters</param> | ||
/// <param name="cleanupCmd">The cleanup parameters</param> | ||
/// <param name="cancellationToken">The cancellation token</param> | ||
Task ExecuteAsync(TQuery query, TCleanupCmd cleanupCmd, CancellationToken cancellationToken = default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters