Skip to content

Commit 4a1d99b

Browse files
authored
Merge pull request #783 from rabbitmq/internalize-consumer-work-service
Public API cleanup, round 3
2 parents d0f0e6c + 8b1196d commit 4a1d99b

File tree

5 files changed

+3
-20
lines changed

5 files changed

+3
-20
lines changed

projects/client/RabbitMQ.Client/src/client/api/IConnection.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,5 @@ public interface IConnection : INetworkConnection, IDisposable
321321
/// Handle incoming Connection.Unblocked methods.
322322
/// </summary>
323323
void HandleConnectionUnblocked();
324-
325-
ConsumerWorkService ConsumerWorkService { get; }
326324
}
327325
}

projects/client/RabbitMQ.Client/src/client/impl/ConsumerWorkService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace RabbitMQ.Client.Impl
77
{
8-
public class ConsumerWorkService
8+
class ConsumerWorkService
99
{
1010
private readonly ConcurrentDictionary<IModel, WorkPool> _workPools = new ConcurrentDictionary<IModel, WorkPool>();
1111

projects/client/RabbitMQ.Client/src/client/impl/ISession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
using System;
4242
using System.Collections.Generic;
43+
using RabbitMQ.Client.Framing.Impl;
4344

4445
namespace RabbitMQ.Client.Impl
4546
{
@@ -63,7 +64,7 @@ interface ISession
6364
/// <summary>
6465
/// Gets the connection.
6566
/// </summary>
66-
IConnection Connection { get; }
67+
Connection Connection { get; }
6768

6869
/// <summary>
6970
/// Gets a value indicating whether this session is open.

projects/client/RabbitMQ.Client/src/client/impl/SessionBase.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ public bool IsOpen
102102
get { return CloseReason == null; }
103103
}
104104

105-
IConnection ISession.Connection
106-
{
107-
get { return Connection; }
108-
}
109-
110105
public virtual void OnCommandReceived(Command cmd)
111106
{
112107
CommandReceived?.Invoke(this, cmd);

projects/client/Unit/src/unit/APIApproval.Approve.approved.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ namespace RabbitMQ.Client
267267
System.Collections.Generic.IDictionary<string, object> ClientProperties { get; }
268268
string ClientProvidedName { get; }
269269
RabbitMQ.Client.ShutdownEventArgs CloseReason { get; }
270-
RabbitMQ.Client.Impl.ConsumerWorkService ConsumerWorkService { get; }
271270
RabbitMQ.Client.AmqpTcpEndpoint Endpoint { get; }
272271
uint FrameMax { get; }
273272
System.TimeSpan Heartbeat { get; }
@@ -782,16 +781,6 @@ namespace RabbitMQ.Client.Exceptions
782781
public object Offender { get; }
783782
}
784783
}
785-
namespace RabbitMQ.Client.Impl
786-
{
787-
public class ConsumerWorkService
788-
{
789-
public ConsumerWorkService() { }
790-
public void AddWork(RabbitMQ.Client.IModel model, System.Action fn) { }
791-
public void StopWork() { }
792-
public void StopWork(RabbitMQ.Client.IModel model) { }
793-
}
794-
}
795784
namespace RabbitMQ.Client.Logging
796785
{
797786
[System.Diagnostics.Tracing.EventSource(Name="rabbitmq-dotnet-client")]

0 commit comments

Comments
 (0)