[FA-misc] Add IJobStatusUpdate event contract and publishing helper
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
|
||||
namespace FictionArchive.Service.Shared.Contracts.Events;
|
||||
|
||||
public interface IJobStatusUpdate
|
||||
{
|
||||
Guid JobId { get; }
|
||||
Guid? ParentJobId { get; }
|
||||
string JobType { get; }
|
||||
string DisplayName { get; }
|
||||
JobStatus Status { get; }
|
||||
string? ErrorMessage { get; }
|
||||
Dictionary<string, string>? Metadata { get; }
|
||||
}
|
||||
|
||||
public record JobStatusUpdate(
|
||||
Guid JobId,
|
||||
Guid? ParentJobId,
|
||||
string JobType,
|
||||
string DisplayName,
|
||||
JobStatus Status,
|
||||
string? ErrorMessage,
|
||||
Dictionary<string, string>? Metadata) : IJobStatusUpdate;
|
||||
Reference in New Issue
Block a user