Headless CMS and Content Managment Hub
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.
 
 
 
 
 

36 lines
1.0 KiB

// ==========================================================================
// MongoEventConsumerInfo.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Squidex.Infrastructure.CQRS.Events
{
public sealed class MongoEventConsumerInfo : IEventConsumerInfo
{
[BsonId]
[BsonRepresentation(BsonType.String)]
public string Name { get; set; }
[BsonElement]
[BsonIgnoreIfNull]
public string Error { get; set; }
[BsonElement]
[BsonIgnoreIfDefault]
public bool IsStopped { get; set; }
[BsonElement]
[BsonIgnoreIfDefault]
public bool IsResetting { get; set; }
[BsonElement]
[BsonRequired]
public string Position { get; set; }
}
}