Skip to content

Commit ccb7a77

Browse files
stebetlukebakken
authored andcommitted
Making sure we don't remove the old byte[] based overload from the IBasicPublishBatch interface.
1 parent 5b4e07a commit ccb7a77

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
@@ -285,6 +285,7 @@ namespace RabbitMQ.Client
285285
}
286286
public interface IBasicPublishBatch
287287
{
288+
void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, byte[] body);
288289
void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, System.ReadOnlyMemory<byte> body);
289290
void Publish();
290291
}

0 commit comments

Comments
 (0)