Пример #1
0
 protected override IEvent GetEvent(IEventProducingRequest request)
 {
     return(new EventA
     {
         SomeData = $"{nameof(SampleEventAProducingHandler)} invoked", RequestData = request.EventData
     });
 }
Пример #2
0
 protected override IEvent GetEvent(IEventProducingRequest request)
 {
     return(new EventI
     {
         SomeData = $"{nameof(SampleEventIProducingHandler)} invoked",
         RequestData = request.EventData,
         IgnoredProperty = "irrelevant data"
     });
 }
Пример #3
0
 protected override IEvent GetEvent(IEventProducingRequest request)
 {
     return(new EventJ
     {
         SomeData = $"{nameof(ScopeAwareRequestHandler)} invoked",
         RequestData = request.EventData,
         RequestScope = _scopeLitmus.Scope
     });
 }
 protected abstract IEvent GetEvent(IEventProducingRequest request);