Restore latest from ProfessorFartsalot/SnowcloakClient

This commit is contained in:
2025-08-30 23:16:59 -04:00
parent 144c7a6c09
commit 3034660770
366 changed files with 51109 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
namespace MareSynchronos.Services.Mediator;
#pragma warning disable MA0048
public abstract record MessageBase
{
public virtual bool KeepThreadContext => false;
public virtual string? SubscriberKey => null;
}
public record SameThreadMessage : MessageBase
{
public override bool KeepThreadContext => true;
}
public record KeyedMessage(string MessageKey, bool SameThread = false) : MessageBase
{
public override string? SubscriberKey => MessageKey;
public override bool KeepThreadContext => SameThread;
}
#pragma warning restore MA0048