Skip to content

Commit

Permalink
adds event timestamp to events
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen committed Aug 21, 2020
1 parent 0482892 commit b30120e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public async Task Handle(RouteNodeAdded request, CancellationToken token)
(
nameof(Events.RouteNetwork.RouteNodeAdded),
Guid.NewGuid(),
DateTime.UtcNow,
request.CmdType,
request.CmdId,
request.IsLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public async Task Handle(RouteNodeDeleted request, CancellationToken token)
(
nameof(RouteNodeMarkedForDeletion),
Guid.NewGuid(),
DateTime.UtcNow,
string.IsNullOrEmpty(request.CmdType) ? nameof(RouteSegmentDeleted) : request.CmdType,
request.CmdId,
request.IsLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public async Task Handle(RouteNodeLocationChanged request, CancellationToken tok
(
nameof(RouteNodeGeometryModified),
Guid.NewGuid(),
DateTime.UtcNow,
nameof(RouteNodeLocationChanged),
request.CmdId,
false,
Expand All @@ -109,6 +110,7 @@ public async Task Handle(RouteNodeLocationChanged request, CancellationToken tok
(
nameof(RouteSegmentGeometryModified),
Guid.NewGuid(),
DateTime.UtcNow,
nameof(RouteNodeLocationChanged),
request.CmdId,
isLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public async Task Handle(RouteSegmentAdded request, CancellationToken token)
(
nameof(Events.RouteNetwork.RouteSegmentAdded),
Guid.NewGuid(),
DateTime.UtcNow,
request.CmdType,
request.CmdId,
request.IsLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task Handle(RouteSegmentDeleted request, CancellationToken token)
var routeSegmentMarkedForDeletionEvent = new RouteSegmentMarkedForDeletion(
nameof(RouteSegmentMarkedForDeletion),
Guid.NewGuid(),
DateTime.UtcNow,
string.IsNullOrEmpty(request.CmdType) ? nameof(RouteSegmentDeleted) : request.CmdType,
request.CmdId,
request.IsLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task Handle(RouteSegmentLocationChanged request, CancellationToken
(
nameof(RouteSegmentGeometryModified),
Guid.NewGuid(),
DateTime.UtcNow,
nameof(RouteSegmentLocationChanged),
request.CmdId,
request.IsLastEventInCmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public async Task Handle(RouteSegmentRemoved request, CancellationToken token)
(
nameof(Events.RouteNetwork.RouteSegmentRemoved),
Guid.NewGuid(),
DateTime.UtcNow,
request.CmdType,
request.CmdId,
request.RouteSegment.Mrid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="MediatR" Version="8.1.0" />
<PackageReference Include="OpenFTTH.Events" Version="1.0.4-alpha" />
<PackageReference Include="OpenFTTH.Events" Version="1.0.7-alpha" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.3" />
<PackageReference Include="NetTopologySuite.IO.GeoJSON" Version="2.0.3" />
<PackageReference Include="OpenFTTH.Events" Version="1.0.4-alpha" />
<PackageReference Include="OpenFTTH.Events" Version="1.0.7-alpha" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b30120e

Please sign in to comment.