File tree Expand file tree Collapse file tree
src/Vertex.Abstractions/Event Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<Sdk Name =" Microsoft.Build.CentralPackageVersions" />
33 <PropertyGroup >
44 <IsPackable >false</IsPackable >
5+ <OutputType >Exe</OutputType >
56 </PropertyGroup >
67 <ItemGroup >
78 <PackageReference Include =" Microsoft.Orleans.CodeGenerator" />
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ public class EventUnit<TPrimaryKey>
1414
1515 [ Id ( 1 ) ]
1616 public EventMeta Meta { get ; set ; }
17-
17+
18+ [ Id ( 3 ) ]
1819 public IEvent Event { get ; set ; }
1920 }
2021}
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Events
45{
56 [ EventName ( nameof ( ErrorTestEvent ) ) ]
7+ [ GenerateSerializer ]
68 public class ErrorTestEvent : IEvent
79 {
810 }
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Events
45{
56 [ EventName ( nameof ( TopupEvent ) ) ]
7+ [ GenerateSerializer ]
68 public class TopupEvent : IEvent
79 {
10+ [ Id ( 0 ) ]
811 public decimal Amount { get ; set ; }
912
13+ [ Id ( 1 ) ]
1014 public decimal Balance { get ; set ; }
1115 }
1216}
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Events
45{
56 [ EventName ( nameof ( TransferArrivedEvent ) ) ]
7+ [ GenerateSerializer ]
68 public class TransferArrivedEvent : IEvent
79 {
10+ [ Id ( 0 ) ]
811 public decimal Amount { get ; set ; }
912
13+ [ Id ( 1 ) ]
1014 public decimal Balance { get ; set ; }
1115 }
1216}
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Events
45{
56 [ EventName ( nameof ( TransferEvent ) ) ]
7+ [ GenerateSerializer ]
68 public class TransferEvent : IEvent
79 {
10+ [ Id ( 0 ) ]
811 public long ToId { get ; set ; }
912
13+ [ Id ( 1 ) ]
1014 public decimal Amount { get ; set ; }
1115
16+ [ Id ( 2 ) ]
1217 public decimal Balance { get ; set ; }
1318 }
1419}
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Events
45{
56 [ EventName ( nameof ( TransferRefundsEvent ) ) ]
7+ [ GenerateSerializer ]
68 public class TransferRefundsEvent : IEvent
79 {
10+ [ Id ( 0 ) ]
811 public decimal Amount { get ; set ; }
912
13+ [ Id ( 1 ) ]
1014 public decimal Balance { get ; set ; }
1115 }
1216}
Original file line number Diff line number Diff line change 1- using Vertex . Abstractions . Event ;
1+ using Orleans ;
2+ using Vertex . Abstractions . Event ;
23
34namespace Vertex . Runtime . Test . Serialization
45{
6+ [ GenerateSerializer ]
57 public class NoNamedEvent : IEvent
68 {
79 }
You can’t perform that action at this time.
0 commit comments