1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . Diagnostics ;
34
45namespace Ev . ServiceBus . Abstractions ;
@@ -11,21 +12,18 @@ public Dispatch(object payload)
1112 ApplicationProperties = new Dictionary < string , object > ( ) ;
1213 }
1314
14- public Dispatch ( object payload , IDispatchContext context )
15- {
16- SessionId = context . SessionId ;
17- CorrelationId = context . CorrelationId ;
18- MessageId = context . MessageId ;
19- DiagnosticId = context . DiagnosticId ?? Activity . Current ? . Id ;
20- ApplicationProperties = new Dictionary < string , object > ( context . ApplicationProperties ) ;
21- Payload = payload ;
22- }
23-
2415 public object Payload { get ; }
2516 public string ? SessionId { get ; set ; }
2617 public string ? CorrelationId { get ; set ; }
2718 public string ? MessageId { get ; set ; }
2819 public string ? DiagnosticId { get ; set ; }
20+ public string ? PartitionKey { get ; set ; }
21+ public string ? TransactionPartitionKey { get ; set ; }
22+ public string ? ReplyToSessionId { get ; set ; }
23+ public TimeSpan ? TimeToLive { get ; set ; }
24+ public string ? Subject { get ; set ; }
25+ public string ? To { get ; set ; }
26+ public string ? ReplyTo { get ; set ; }
27+ public DateTimeOffset ? ScheduledEnqueueTime { get ; set ; }
2928 public IDictionary < string , object > ApplicationProperties { get ; }
3029}
31-
0 commit comments