Type Eve command operations
This commit is contained in:
parent
be1207c585
commit
bafcfa4ead
10 changed files with 300 additions and 93 deletions
|
|
@ -275,6 +275,7 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
AetheriaRuntimeEveCommandDocument command)
|
||||
{
|
||||
if (command == null) throw new ArgumentNullException(nameof(command));
|
||||
AetheriaRuntimeEveCommandClient.NormalizeDocument(command);
|
||||
command.Schema = AetheriaRuntimeEveCommandDocument.SchemaId;
|
||||
if (string.IsNullOrWhiteSpace(command.CommandId))
|
||||
command.CommandId = Guid.NewGuid().ToString("N");
|
||||
|
|
@ -288,6 +289,7 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
{
|
||||
return Cache
|
||||
.GetAll<AetheriaRuntimeEveCommandDocument>()
|
||||
.Select(AetheriaRuntimeEveCommandClient.NormalizeDocument)
|
||||
.OrderBy(command => command.IssuedAtUtc ?? "", StringComparer.Ordinal)
|
||||
.ThenBy(command => command.CommandId ?? "", StringComparer.Ordinal)
|
||||
.ToArray();
|
||||
|
|
|
|||
Loading…
Reference in a new issue