@@ -508,7 +508,7 @@ protected void ChannelSend<TMethod, THeader>(in TMethod method, in THeader heade
508508 }
509509
510510 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
511- protected ValueTask ModelSendAsync < TMethod , THeader > ( in TMethod method , in THeader header , ReadOnlySequence < byte > body , bool copyBody )
511+ protected ValueTask ModelSendAsync < TMethod , THeader > ( in TMethod method , in THeader header , ReadOnlySequence < byte > body , bool ? copyBody = null )
512512 where TMethod : struct , IOutgoingAmqpMethod
513513 where THeader : IAmqpHeader
514514 {
@@ -1259,7 +1259,7 @@ public void BasicPublish<TProperties>(CachedString exchange, CachedString routin
12591259 ChannelSend ( in cmd , in basicProperties , body ) ;
12601260 }
12611261
1262- public ValueTask BasicPublishAsync < TProperties > ( string exchange , string routingKey , in TProperties basicProperties , ReadOnlySequence < byte > body , bool mandatory , bool copyBody = true )
1262+ public ValueTask BasicPublishAsync < TProperties > ( string exchange , string routingKey , in TProperties basicProperties , ReadOnlySequence < byte > body , bool mandatory , bool ? copyBody = null )
12631263 where TProperties : IReadOnlyBasicProperties , IAmqpHeader
12641264 {
12651265 if ( NextPublishSeqNo > 0 )
@@ -1274,13 +1274,13 @@ public ValueTask BasicPublishAsync<TProperties>(string exchange, string routingK
12741274 return ModelSendAsync ( in cmd , in basicProperties , body , copyBody ) ;
12751275 }
12761276
1277- public ValueTask BasicPublishAsync < TProperties > ( string exchange , string routingKey , in TProperties basicProperties , ReadOnlyMemory < byte > body , bool mandatory , bool copyBody = true )
1277+ public ValueTask BasicPublishAsync < TProperties > ( string exchange , string routingKey , in TProperties basicProperties , ReadOnlyMemory < byte > body , bool mandatory , bool ? copyBody = null )
12781278 where TProperties : IReadOnlyBasicProperties , IAmqpHeader
12791279 {
12801280 return BasicPublishAsync ( exchange , routingKey , in basicProperties , new ReadOnlySequence < byte > ( body ) , mandatory , copyBody ) ;
12811281 }
12821282
1283- public ValueTask BasicPublishAsync < TProperties > ( CachedString exchange , CachedString routingKey , in TProperties basicProperties , ReadOnlySequence < byte > body , bool mandatory , bool copyBody = true )
1283+ public ValueTask BasicPublishAsync < TProperties > ( CachedString exchange , CachedString routingKey , in TProperties basicProperties , ReadOnlySequence < byte > body , bool mandatory , bool ? copyBody = null )
12841284 where TProperties : IReadOnlyBasicProperties , IAmqpHeader
12851285 {
12861286 if ( NextPublishSeqNo > 0 )
@@ -1295,7 +1295,7 @@ public ValueTask BasicPublishAsync<TProperties>(CachedString exchange, CachedStr
12951295 return ModelSendAsync ( in cmd , in basicProperties , body , copyBody ) ;
12961296 }
12971297
1298- public ValueTask BasicPublishAsync < TProperties > ( CachedString exchange , CachedString routingKey , in TProperties basicProperties , ReadOnlyMemory < byte > body , bool mandatory , bool copyBody = true )
1298+ public ValueTask BasicPublishAsync < TProperties > ( CachedString exchange , CachedString routingKey , in TProperties basicProperties , ReadOnlyMemory < byte > body , bool mandatory , bool ? copyBody = null )
12991299 where TProperties : IReadOnlyBasicProperties , IAmqpHeader
13001300 {
13011301 return BasicPublishAsync ( exchange , routingKey , in basicProperties , new ReadOnlySequence < byte > ( body ) , mandatory , copyBody ) ;
0 commit comments