1
- [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/rabbitmq/rabbitmq-dotnet-client")]
2
- [assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Benchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d20ec856aeeb8c3153a77faa2d80e6e43b5db93224a20cc7ae384f65f142e89730e2ff0fcc5d578bbe96fa98a7196c77329efdee4579b3814c0789e5a39b51df6edd75b602a33ceabdfcf19a3feb832f31d8254168cd7ba5700dfbca301fbf8db614ba41ba18474de0a5f4c2d51c995bc3636c641c8cbe76f45717bfcb943b5")]
1
+ [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/rabbitmq/rabbitmq-dotnet-client.git")]
3
2
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(@"Unit, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d20ec856aeeb8c3153a77faa2d80e6e43b5db93224a20cc7ae384f65f142e89730e2ff0fcc5d578bbe96fa98a7196c77329efdee4579b3814c0789e5a39b51df6edd75b602a33ceabdfcf19a3feb832f31d8254168cd7ba5700dfbca301fbf8db614ba41ba18474de0a5f4c2d51c995bc3636c641c8cbe76f45717bfcb943b5")]
4
3
namespace RabbitMQ.Client
5
4
{
@@ -25,16 +24,11 @@ namespace RabbitMQ.Client
25
24
public static RabbitMQ.Client.AmqpTcpEndpoint Parse(string address) { }
26
25
public static RabbitMQ.Client.AmqpTcpEndpoint[] ParseMultiple(string addresses) { }
27
26
}
28
- public struct AmqpTimestamp : System.IEquatable<RabbitMQ.Client.AmqpTimestamp>
27
+ public struct AmqpTimestamp
29
28
{
30
29
public AmqpTimestamp(long unixTime) { }
31
30
public long UnixTime { get; }
32
- public bool Equals(RabbitMQ.Client.AmqpTimestamp other) { }
33
- public override bool Equals(object obj) { }
34
- public override int GetHashCode() { }
35
31
public override string ToString() { }
36
- public static bool operator !=(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
37
- public static bool operator ==(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
38
32
}
39
33
public class AsyncDefaultBasicConsumer : RabbitMQ.Client.IAsyncBasicConsumer, RabbitMQ.Client.IBasicConsumer
40
34
{
@@ -52,35 +46,28 @@ namespace RabbitMQ.Client
52
46
public virtual System.Threading.Tasks.Task HandleModelShutdown(object model, RabbitMQ.Client.ShutdownEventArgs reason) { }
53
47
public virtual System.Threading.Tasks.Task OnCancel(params string[] consumerTags) { }
54
48
}
55
- public sealed class BasicGetResult : System.IDisposable
49
+ public class BasicGetResult
56
50
{
57
51
public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body) { }
58
- public BasicGetResult(ulong deliveryTag, bool redelivered, string exchange, string routingKey, uint messageCount, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body, byte[] rentedArray) { }
59
52
public RabbitMQ.Client.IBasicProperties BasicProperties { get; }
60
53
public System.ReadOnlyMemory<byte> Body { get; }
61
54
public ulong DeliveryTag { get; }
62
55
public string Exchange { get; }
63
56
public uint MessageCount { get; }
64
57
public bool Redelivered { get; }
65
58
public string RoutingKey { get; }
66
- public void Dispose() { }
59
+ }
60
+ public static class BasicPublishBatchExtensions
61
+ {
62
+ public static void Add(this RabbitMQ.Client.IBasicPublishBatch batch, string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, System.ReadOnlyMemory<byte> body) { }
67
63
}
68
64
public class BinaryTableValue
69
65
{
70
66
public BinaryTableValue() { }
71
67
public BinaryTableValue(byte[] bytes) { }
72
68
public byte[] Bytes { get; set; }
73
69
}
74
- public sealed class CachedString
75
- {
76
- public readonly System.ReadOnlyMemory<byte> Bytes;
77
- public readonly string Value;
78
- public static readonly RabbitMQ.Client.CachedString Empty;
79
- public CachedString(System.ReadOnlyMemory<byte> bytes) { }
80
- public CachedString(string value) { }
81
- public CachedString(string value, System.ReadOnlyMemory<byte> bytes) { }
82
- }
83
- public sealed class ConnectionFactory : RabbitMQ.Client.ConnectionFactoryBase, RabbitMQ.Client.IConnectionFactory
70
+ public sealed class ConnectionFactory : RabbitMQ.Client.ConnectionFactoryBase, RabbitMQ.Client.IAsyncConnectionFactory, RabbitMQ.Client.IConnectionFactory
84
71
{
85
72
public const ushort DefaultChannelMax = 2047;
86
73
public const uint DefaultFrameMax = 0u;
@@ -115,6 +102,7 @@ namespace RabbitMQ.Client
115
102
public RabbitMQ.Client.SslOption Ssl { get; set; }
116
103
public bool TopologyRecoveryEnabled { get; set; }
117
104
public System.Uri Uri { get; set; }
105
+ public bool UseBackgroundThreadsForIO { get; set; }
118
106
public string UserName { get; set; }
119
107
public string VirtualHost { get; set; }
120
108
public static System.Net.Sockets.AddressFamily DefaultAddressFamily { get; set; }
@@ -232,6 +220,10 @@ namespace RabbitMQ.Client
232
220
System.Threading.Tasks.Task HandleBasicDeliver(string consumerTag, ulong deliveryTag, bool redelivered, string exchange, string routingKey, RabbitMQ.Client.IBasicProperties properties, System.ReadOnlyMemory<byte> body);
233
221
System.Threading.Tasks.Task HandleModelShutdown(object model, RabbitMQ.Client.ShutdownEventArgs reason);
234
222
}
223
+ public interface IAsyncConnectionFactory : RabbitMQ.Client.IConnectionFactory
224
+ {
225
+ bool DispatchConsumersAsync { get; set; }
226
+ }
235
227
public interface IAuthMechanism
236
228
{
237
229
byte[] handleChallenge(byte[] challenge, RabbitMQ.Client.IConnectionFactory factory);
@@ -241,6 +233,13 @@ namespace RabbitMQ.Client
241
233
string Name { get; }
242
234
RabbitMQ.Client.IAuthMechanism GetInstance();
243
235
}
236
+ public interface IAutorecoveringConnection : RabbitMQ.Client.IConnection, RabbitMQ.Client.INetworkConnection, System.IDisposable
237
+ {
238
+ event System.EventHandler<RabbitMQ.Client.Events.ConnectionRecoveryErrorEventArgs> ConnectionRecoveryError;
239
+ event System.EventHandler<RabbitMQ.Client.Events.ConsumerTagChangedAfterRecoveryEventArgs> ConsumerTagChangeAfterRecovery;
240
+ event System.EventHandler<RabbitMQ.Client.Events.QueueNameChangedAfterRecoveryEventArgs> QueueNameChangeAfterRecovery;
241
+ event System.EventHandler<System.EventArgs> RecoverySucceeded;
242
+ }
244
243
public interface IBasicConsumer
245
244
{
246
245
RabbitMQ.Client.IModel Model { get; }
@@ -300,8 +299,9 @@ namespace RabbitMQ.Client
300
299
}
301
300
public interface IBasicPublishBatch
302
301
{
303
- void Add(RabbitMQ.Client.CachedString exchange, RabbitMQ.Client.CachedString routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body);
304
- void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, System.ReadOnlyMemory<byte> body);
302
+ [System.Obsolete("Use Add(string exchange, string routingKey, bool mandatory, IBasicProperties prop" +
303
+ "erties, ReadOnlyMemory<byte> body) instead. Will be replaced in version 7.0", false)]
304
+ void Add(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties properties, byte[] body);
305
305
void Publish();
306
306
}
307
307
public interface IConnection : RabbitMQ.Client.INetworkConnection, System.IDisposable
@@ -320,12 +320,8 @@ namespace RabbitMQ.Client
320
320
System.Collections.Generic.IList<RabbitMQ.Client.ShutdownReportEntry> ShutdownReport { get; }
321
321
event System.EventHandler<RabbitMQ.Client.Events.CallbackExceptionEventArgs> CallbackException;
322
322
event System.EventHandler<RabbitMQ.Client.Events.ConnectionBlockedEventArgs> ConnectionBlocked;
323
- event System.EventHandler<RabbitMQ.Client.Events.ConnectionRecoveryErrorEventArgs> ConnectionRecoveryError;
324
323
event System.EventHandler<RabbitMQ.Client.ShutdownEventArgs> ConnectionShutdown;
325
324
event System.EventHandler<System.EventArgs> ConnectionUnblocked;
326
- event System.EventHandler<RabbitMQ.Client.Events.ConsumerTagChangedAfterRecoveryEventArgs> ConsumerTagChangeAfterRecovery;
327
- event System.EventHandler<RabbitMQ.Client.Events.QueueNameChangedAfterRecoveryEventArgs> QueueNameChangeAfterRecovery;
328
- event System.EventHandler<System.EventArgs> RecoverySucceeded;
329
325
void Abort();
330
326
void Abort(System.TimeSpan timeout);
331
327
void Abort(ushort reasonCode, string reasonText);
@@ -343,15 +339,14 @@ namespace RabbitMQ.Client
343
339
{
344
340
System.Collections.Generic.IDictionary<string, object> ClientProperties { get; set; }
345
341
string ClientProvidedName { get; set; }
346
- int ConsumerDispatchConcurrency { get; set; }
347
342
System.TimeSpan ContinuationTimeout { get; set; }
348
- bool DispatchConsumersAsync { get; set; }
349
343
System.TimeSpan HandshakeContinuationTimeout { get; set; }
350
344
string Password { get; set; }
351
345
ushort RequestedChannelMax { get; set; }
352
346
uint RequestedFrameMax { get; set; }
353
347
System.TimeSpan RequestedHeartbeat { get; set; }
354
348
System.Uri Uri { get; set; }
349
+ bool UseBackgroundThreadsForIO { get; set; }
355
350
string UserName { get; set; }
356
351
string VirtualHost { get; set; }
357
352
RabbitMQ.Client.IAuthMechanismFactory AuthMechanismFactory(System.Collections.Generic.IList<string> mechanismNames);
@@ -371,6 +366,12 @@ namespace RabbitMQ.Client
371
366
{
372
367
System.Collections.Generic.IEnumerable<RabbitMQ.Client.AmqpTcpEndpoint> All();
373
368
}
369
+ public interface IMethod
370
+ {
371
+ ushort ProtocolClassId { get; }
372
+ ushort ProtocolMethodId { get; }
373
+ string ProtocolMethodName { get; }
374
+ }
374
375
public interface IModel : System.IDisposable
375
376
{
376
377
int ChannelNumber { get; }
@@ -395,7 +396,6 @@ namespace RabbitMQ.Client
395
396
string BasicConsume(string queue, bool autoAck, string consumerTag, bool noLocal, bool exclusive, System.Collections.Generic.IDictionary<string, object> arguments, RabbitMQ.Client.IBasicConsumer consumer);
396
397
RabbitMQ.Client.BasicGetResult BasicGet(string queue, bool autoAck);
397
398
void BasicNack(ulong deliveryTag, bool multiple, bool requeue);
398
- void BasicPublish(RabbitMQ.Client.CachedString exchange, RabbitMQ.Client.CachedString routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body);
399
399
void BasicPublish(string exchange, string routingKey, bool mandatory, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body);
400
400
void BasicQos(uint prefetchSize, ushort prefetchCount, bool global);
401
401
void BasicRecover(bool requeue);
@@ -407,7 +407,6 @@ namespace RabbitMQ.Client
407
407
uint ConsumerCount(string queue);
408
408
RabbitMQ.Client.IBasicProperties CreateBasicProperties();
409
409
RabbitMQ.Client.IBasicPublishBatch CreateBasicPublishBatch();
410
- RabbitMQ.Client.IBasicPublishBatch CreateBasicPublishBatch(int sizeHint);
411
410
void ExchangeBind(string destination, string source, string routingKey, System.Collections.Generic.IDictionary<string, object> arguments);
412
411
void ExchangeBindNoWait(string destination, string source, string routingKey, System.Collections.Generic.IDictionary<string, object> arguments);
413
412
void ExchangeDeclare(string exchange, string type, bool durable, bool autoDelete, System.Collections.Generic.IDictionary<string, object> arguments);
@@ -436,14 +435,13 @@ namespace RabbitMQ.Client
436
435
void WaitForConfirmsOrDie();
437
436
void WaitForConfirmsOrDie(System.TimeSpan timeout);
438
437
}
439
- public static class IModelExtensions
438
+ public static class IModelExensions
440
439
{
441
440
public static string BasicConsume(this RabbitMQ.Client.IModel model, string queue, bool autoAck, RabbitMQ.Client.IBasicConsumer consumer) { }
442
441
public static string BasicConsume(this RabbitMQ.Client.IModel model, string queue, bool autoAck, string consumerTag, RabbitMQ.Client.IBasicConsumer consumer) { }
443
442
public static string BasicConsume(this RabbitMQ.Client.IModel model, string queue, bool autoAck, string consumerTag, System.Collections.Generic.IDictionary<string, object> arguments, RabbitMQ.Client.IBasicConsumer consumer) { }
444
443
public static string BasicConsume(this RabbitMQ.Client.IModel model, RabbitMQ.Client.IBasicConsumer consumer, string queue, bool autoAck = false, string consumerTag = "", bool noLocal = false, bool exclusive = false, System.Collections.Generic.IDictionary<string, object> arguments = null) { }
445
444
public static void BasicPublish(this RabbitMQ.Client.IModel model, RabbitMQ.Client.PublicationAddress addr, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body) { }
446
- public static void BasicPublish(this RabbitMQ.Client.IModel model, RabbitMQ.Client.CachedString exchange, RabbitMQ.Client.CachedString routingKey, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body) { }
447
445
public static void BasicPublish(this RabbitMQ.Client.IModel model, string exchange, string routingKey, RabbitMQ.Client.IBasicProperties basicProperties, System.ReadOnlyMemory<byte> body) { }
448
446
public static void BasicPublish(this RabbitMQ.Client.IModel model, string exchange, string routingKey, bool mandatory = false, RabbitMQ.Client.IBasicProperties basicProperties = null, System.ReadOnlyMemory<byte> body = default) { }
449
447
public static void ExchangeBind(this RabbitMQ.Client.IModel model, string destination, string source, string routingKey, System.Collections.Generic.IDictionary<string, object> arguments = null) { }
@@ -500,7 +498,6 @@ namespace RabbitMQ.Client
500
498
bool Connected { get; }
501
499
System.TimeSpan ReceiveTimeout { get; set; }
502
500
void Close();
503
- System.Threading.Tasks.Task ConnectAsync(System.Net.IPAddress host, int port);
504
501
System.Threading.Tasks.Task ConnectAsync(string host, int port);
505
502
System.Net.Sockets.NetworkStream GetStream();
506
503
}
@@ -811,10 +808,8 @@ namespace RabbitMQ.Client.Exceptions
811
808
[System.Serializable]
812
809
public class UnexpectedMethodException : RabbitMQ.Client.Exceptions.ProtocolViolationException
813
810
{
814
- public UnexpectedMethodException(ushort classId, ushort methodId, string methodName) { }
815
- public ushort ProtocolClassId { get; }
816
- public ushort ProtocolMethodId { get; }
817
- public string ProtocolMethodName { get; }
811
+ public UnexpectedMethodException(RabbitMQ.Client.IMethod method) { }
812
+ public RabbitMQ.Client.IMethod Method { get; }
818
813
}
819
814
public class UnknownClassOrMethodException : RabbitMQ.Client.Exceptions.HardProtocolException
820
815
{
0 commit comments