mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
940 B
31 lines
940 B
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
namespace Squidex.Infrastructure.EventSourcing
|
|
{
|
|
public sealed class EventData
|
|
{
|
|
public EnvelopeHeaders Headers { get; }
|
|
|
|
public string Payload { get; }
|
|
|
|
public string Type { get; set; }
|
|
|
|
public EventData(string type, EnvelopeHeaders headers, string payload)
|
|
{
|
|
Guard.NotNull(type, nameof(type));
|
|
Guard.NotNull(headers, nameof(headers));
|
|
Guard.NotNull(payload, nameof(payload));
|
|
|
|
Headers = headers;
|
|
|
|
Payload = payload;
|
|
|
|
Type = type;
|
|
}
|
|
}
|
|
}
|