Skip to content

Commit a7b405b

Browse files
committed
Making sure we don't remove the old byte[] based overload from the IBasicPublishBatch interface.
1 parent 2bb856d commit a7b405b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

projects/RabbitMQ.Client/client/api/IBasicPublishBatch.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ namespace RabbitMQ.Client
4343
{
4444
public interface IBasicPublishBatch
4545
{
46+
void Add(string exchange, string routingKey, bool mandatory, IBasicProperties properties, byte[] body);
4647
void Add(string exchange, string routingKey, bool mandatory, IBasicProperties properties, ReadOnlyMemory<byte> body);
4748
void Publish();
4849
}

projects/RabbitMQ.Client/client/impl/BasicPublishBatch.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ internal BasicPublishBatch (ModelBase model)
5555
_model = model;
5656
}
5757

58+
public void Add(string exchange, string routingKey, bool mandatory, IBasicProperties basicProperties, byte[] body)
59+
{
60+
Add(exchange, routingKey, mandatory, basicProperties, body.AsMemory());
61+
}
62+
5863
public void Add(string exchange, string routingKey, bool mandatory, IBasicProperties basicProperties, ReadOnlyMemory<byte> body)
5964
{
6065
IBasicProperties bp = basicProperties ?? _model.CreateBasicProperties();

projects/Unit/APIApproval.Approve.verified.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ namespace RabbitMQ.Client
258258
}
259259
public interface IBasicPublishBatch
260260
{
261+
void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, byte[] body);
261262
void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, System.ReadOnlyMemory<byte> body);
262263
void Publish();
263264
}

0 commit comments

Comments
 (0)