File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed
Benchmarks/ConsumerDispatching Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class ConsumerDispatcherBase
19
19
protected readonly ulong _deliveryTag = 500UL ;
20
20
protected readonly string _exchange = "Exchange" ;
21
21
protected readonly string _routingKey = "RoutingKey" ;
22
- protected readonly ReadOnlyBasicProperties _properties = new ReadOnlyBasicProperties ( ) ;
22
+ protected readonly ReadOnlyBasicProperties _properties = null ;
23
23
protected readonly byte [ ] _body = new byte [ 512 ] ;
24
24
25
25
public ConsumerDispatcherBase ( )
Original file line number Diff line number Diff line change @@ -681,7 +681,6 @@ RabbitMQ.Client.ReadOnlyBasicProperties.IsUserIdPresent() -> bool
681
681
RabbitMQ.Client.ReadOnlyBasicProperties.MessageId.get -> string
682
682
RabbitMQ.Client.ReadOnlyBasicProperties.Persistent.get -> bool
683
683
RabbitMQ.Client.ReadOnlyBasicProperties.Priority.get -> byte
684
- RabbitMQ.Client.ReadOnlyBasicProperties.ReadOnlyBasicProperties() -> void
685
684
RabbitMQ.Client.ReadOnlyBasicProperties.ReadOnlyBasicProperties(System.ReadOnlySpan<byte> span) -> void
686
685
RabbitMQ.Client.ReadOnlyBasicProperties.ReplyTo.get -> string
687
686
RabbitMQ.Client.ReadOnlyBasicProperties.ReplyToAddress.get -> RabbitMQ.Client.PublicationAddress
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace RabbitMQ.Client
39
39
/// <summary>
40
40
/// AMQP specification content header properties for content class "basic"
41
41
/// </summary>
42
- public readonly struct ReadOnlyBasicProperties : IReadOnlyBasicProperties
42
+ public sealed class ReadOnlyBasicProperties : IReadOnlyBasicProperties
43
43
{
44
44
private readonly string ? _contentType ;
45
45
private readonly string ? _contentEncoding ;
@@ -83,7 +83,6 @@ public PublicationAddress? ReplyToAddress
83
83
}
84
84
85
85
public ReadOnlyBasicProperties ( ReadOnlySpan < byte > span )
86
- : this ( )
87
86
{
88
87
int offset = 2 ;
89
88
ref readonly byte bits = ref span [ 0 ] ;
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ protected override Task InternalShutdownAsync()
234
234
public readonly bool Redelivered ;
235
235
public readonly string ? Exchange ;
236
236
public readonly string ? RoutingKey ;
237
- public readonly ReadOnlyBasicProperties BasicProperties ;
237
+ public readonly ReadOnlyBasicProperties ? BasicProperties ;
238
238
public readonly RentedMemory Body ;
239
239
public readonly ShutdownEventArgs ? Reason ;
240
240
public readonly WorkType WorkType ;
You can’t perform that action at this time.
0 commit comments