@@ -54,11 +54,11 @@ public void HandleBasicConsumeOk(IBasicConsumer consumer, string consumerTag)
54
54
}
55
55
56
56
public void HandleBasicDeliver ( string consumerTag , ulong deliveryTag , bool redelivered ,
57
- string exchange , string routingKey , in ReadOnlyBasicProperties basicProperties , ReadOnlyMemory < byte > body , byte [ ] rentedArray )
57
+ ReadOnlyMemory < byte > exchange , ReadOnlyMemory < byte > routingKey , in ReadOnlyBasicProperties basicProperties , ReadOnlyMemory < byte > body , byte [ ] rentedMethodArray , byte [ ] rentedArray )
58
58
{
59
59
if ( ! IsShutdown )
60
60
{
61
- _writer . TryWrite ( new WorkStruct ( GetConsumerOrDefault ( consumerTag ) , consumerTag , deliveryTag , redelivered , exchange , routingKey , basicProperties , body , rentedArray ) ) ;
61
+ _writer . TryWrite ( new WorkStruct ( GetConsumerOrDefault ( consumerTag ) , consumerTag , deliveryTag , redelivered , exchange , routingKey , basicProperties , body , rentedMethodArray , rentedArray ) ) ;
62
62
}
63
63
}
64
64
@@ -108,10 +108,11 @@ protected readonly struct WorkStruct
108
108
public readonly string ? ConsumerTag ;
109
109
public readonly ulong DeliveryTag ;
110
110
public readonly bool Redelivered ;
111
- public readonly string ? Exchange ;
112
- public readonly string ? RoutingKey ;
111
+ public readonly ReadOnlyMemory < byte > Exchange ;
112
+ public readonly ReadOnlyMemory < byte > RoutingKey ;
113
113
public readonly ReadOnlyBasicProperties BasicProperties ;
114
114
public readonly ReadOnlyMemory < byte > Body ;
115
+ public readonly byte [ ] ? RentedMethodArray ;
115
116
public readonly byte [ ] ? RentedArray ;
116
117
public readonly ShutdownEventArgs ? Reason ;
117
118
public readonly WorkType WorkType ;
@@ -133,7 +134,7 @@ public WorkStruct(IBasicConsumer consumer, ShutdownEventArgs reason)
133
134
}
134
135
135
136
public WorkStruct ( IBasicConsumer consumer , string consumerTag , ulong deliveryTag , bool redelivered ,
136
- string exchange , string routingKey , in ReadOnlyBasicProperties basicProperties , ReadOnlyMemory < byte > body , byte [ ] rentedArray )
137
+ ReadOnlyMemory < byte > exchange , ReadOnlyMemory < byte > routingKey , in ReadOnlyBasicProperties basicProperties , ReadOnlyMemory < byte > body , byte [ ] rentedMethodArray , byte [ ] rentedArray )
137
138
{
138
139
WorkType = WorkType . Deliver ;
139
140
Consumer = consumer ;
@@ -144,6 +145,7 @@ public WorkStruct(IBasicConsumer consumer, string consumerTag, ulong deliveryTag
144
145
RoutingKey = routingKey ;
145
146
BasicProperties = basicProperties ;
146
147
Body = body ;
148
+ RentedMethodArray = rentedMethodArray ;
147
149
RentedArray = rentedArray ;
148
150
Reason = default ;
149
151
}
0 commit comments