@@ -508,7 +508,7 @@ protected void ChannelSend<TMethod, THeader>(in TMethod method, in THeader heade
508
508
}
509
509
510
510
[ 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 )
512
512
where TMethod : struct , IOutgoingAmqpMethod
513
513
where THeader : IAmqpHeader
514
514
{
@@ -1259,7 +1259,7 @@ public void BasicPublish<TProperties>(CachedString exchange, CachedString routin
1259
1259
ChannelSend ( in cmd , in basicProperties , body ) ;
1260
1260
}
1261
1261
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 )
1263
1263
where TProperties : IReadOnlyBasicProperties , IAmqpHeader
1264
1264
{
1265
1265
if ( NextPublishSeqNo > 0 )
@@ -1274,13 +1274,13 @@ public ValueTask BasicPublishAsync<TProperties>(string exchange, string routingK
1274
1274
return ModelSendAsync ( in cmd , in basicProperties , body , copyBody ) ;
1275
1275
}
1276
1276
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 )
1278
1278
where TProperties : IReadOnlyBasicProperties , IAmqpHeader
1279
1279
{
1280
1280
return BasicPublishAsync ( exchange , routingKey , in basicProperties , new ReadOnlySequence < byte > ( body ) , mandatory , copyBody ) ;
1281
1281
}
1282
1282
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 )
1284
1284
where TProperties : IReadOnlyBasicProperties , IAmqpHeader
1285
1285
{
1286
1286
if ( NextPublishSeqNo > 0 )
@@ -1295,7 +1295,7 @@ public ValueTask BasicPublishAsync<TProperties>(CachedString exchange, CachedStr
1295
1295
return ModelSendAsync ( in cmd , in basicProperties , body , copyBody ) ;
1296
1296
}
1297
1297
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 )
1299
1299
where TProperties : IReadOnlyBasicProperties , IAmqpHeader
1300
1300
{
1301
1301
return BasicPublishAsync ( exchange , routingKey , in basicProperties , new ReadOnlySequence < byte > ( body ) , mandatory , copyBody ) ;
0 commit comments