feat: explicit queue client, resolve handler avoiding type registry
This commit is contained in:
@@ -61,7 +61,7 @@ public class TaskRepository: ITaskRepository
|
||||
await ((NpgsqlTransaction)tx).RollbackAsync();
|
||||
}
|
||||
|
||||
public QueueTask? GetNextTask(IDbTransaction tx)
|
||||
public QueueTask? GetNextTask(IDbTransaction tx, string? taskType = null)
|
||||
{
|
||||
var sql = $@"select * from QUEUE where
|
||||
order by {nameof(QueueTask.DateCreated)}
|
||||
@@ -71,7 +71,7 @@ public class TaskRepository: ITaskRepository
|
||||
return _connection.QuerySingleOrDefault<QueueTask>(sql, tx);
|
||||
}
|
||||
|
||||
public async Task<QueueTask?> GetNextTaskAsync(IDbTransaction tx)
|
||||
public async Task<QueueTask?> GetNextTaskAsync(IDbTransaction tx, string? taskType = null)
|
||||
{
|
||||
var sql = $@"select * from QUEUE
|
||||
order by {nameof(QueueTask.DateCreated)}
|
||||
|
||||
Reference in New Issue
Block a user