14 lines
419 B
C#
14 lines
419 B
C#
namespace PrivaPub.Federation.Inbox
|
|||
|
|
{
|
||
|
|
public sealed record Arrival(string ActivityId, string ActivityType, string ActorURI, string Inbox, string KeyId, string Algorithm,
|
||
|
|
IReadOnlyList<string> SignedHeaders, DateTime ReceivedAt, string Context = default)
|
||
|
|
{
|
||
|
|
static readonly AsyncLocal<Arrival> current = new();
|
||
|
|
|
||
|
|
public static Arrival Current
|
||
|
|
{
|
||
|
|
get => current.Value;
|
||
|
|
set => current.Value = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|