mirror of https://github.com/Squidex/squidex.git
45 changed files with 302 additions and 166 deletions
@ -1,17 +1,15 @@ |
|||||
// ==========================================================================
|
// ==========================================================================
|
||||
// ExpectedVersion.cs
|
// IUpdateableEntityWithVersion.cs
|
||||
// Squidex Headless CMS
|
// Squidex Headless CMS
|
||||
// ==========================================================================
|
// ==========================================================================
|
||||
// Copyright (c) Squidex Group
|
// Copyright (c) Squidex Group
|
||||
// All rights reserved.
|
// All rights reserved.
|
||||
// ==========================================================================
|
// ==========================================================================
|
||||
|
|
||||
namespace Squidex.Infrastructure.EventSourcing |
namespace Squidex.Domain.Apps.Entities |
||||
{ |
{ |
||||
public static class ExpectedVersion |
public interface IUpdateableEntityWithVersion |
||||
{ |
{ |
||||
public const int Any = -2; |
long Version { get; set; } |
||||
|
|
||||
public const int Empty = -1; |
|
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
// ==========================================================================
|
||||
|
// IDomainState.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
namespace Squidex.Infrastructure.Commands |
||||
|
{ |
||||
|
public interface IDomainState |
||||
|
{ |
||||
|
long Version { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
// ==========================================================================
|
||||
|
// EtagVersion.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
namespace Squidex.Infrastructure |
||||
|
{ |
||||
|
public static class EtagVersion |
||||
|
{ |
||||
|
public const long Any = -2; |
||||
|
|
||||
|
public const long Empty = -1; |
||||
|
|
||||
|
public const long NotFound = long.MinValue; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,17 @@ |
|||||
|
// ==========================================================================
|
||||
|
// MyDomainState.cs
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex Group
|
||||
|
// All rights reserved.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using Squidex.Infrastructure.Commands; |
||||
|
|
||||
|
namespace Squidex.Infrastructure.TestHelpers |
||||
|
{ |
||||
|
public class MyDomainState : IDomainState |
||||
|
{ |
||||
|
public long Version { get; set; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue