I have long running process running in the message handler, I noticed that I can't read from the table while the task is in process.
Is this ok?
Or is there a better way to handle long running processes?
My transport is SQL Server.
Thanks in advance :)
public class HandlerAwaitsTheTask : IHandleMessages<CommandMessage>
{
public async Task Handle(CommandMessage message, IMessageHandlerContext context)
{
await SomeLibrary.VeryVeryVeryLongTask(message);
}
}