Skip to content

Commit 4ab8eec

Browse files
committed
Remove non-public members from IProtocol
1 parent 267bae7 commit 4ab8eec

File tree

3 files changed

+1
-37
lines changed

3 files changed

+1
-37
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public IConnection CreateConnection(IEndpointResolver endpointResolver, string c
493493
}
494494
else
495495
{
496-
IProtocol protocol = Protocols.DefaultProtocol;
496+
var protocol = new RabbitMQ.Client.Framing.Protocol();
497497
conn = protocol.CreateConnection(this, false, endpointResolver.SelectOne(CreateFrameHandler), clientProvidedName);
498498
}
499499
}

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,36 +73,5 @@ public interface IProtocol
7373
/// Retrieve the protocol's revision (if specified).
7474
/// </summary>
7575
int Revision { get; }
76-
77-
/// <summary>
78-
/// Construct a connection from a given set of parameters,
79-
/// a frame handler, and no automatic recovery.
80-
/// The "insist" parameter is passed on to the AMQP connection.open method.
81-
/// </summary>
82-
IConnection CreateConnection(IConnectionFactory factory, bool insist, IFrameHandler frameHandler);
83-
84-
/// <summary>
85-
/// Construct a connection from a given set of parameters,
86-
/// a frame handler, and automatic recovery settings.
87-
/// </summary>
88-
IConnection CreateConnection(ConnectionFactory factory, IFrameHandler frameHandler, bool automaticRecoveryEnabled);
89-
90-
/// <summary>
91-
/// Construct a connection from a given set of parameters,
92-
/// a frame handler, a client-provided name, and no automatic recovery.
93-
/// The "insist" parameter is passed on to the AMQP connection.open method.
94-
/// </summary>
95-
IConnection CreateConnection(IConnectionFactory factory, bool insist, IFrameHandler frameHandler, string clientProvidedName);
96-
97-
/// <summary>
98-
/// Construct a connection from a given set of parameters,
99-
/// a frame handler, a client-provided name, and automatic recovery settings.
100-
/// </summary>
101-
IConnection CreateConnection(ConnectionFactory factory, IFrameHandler frameHandler, bool automaticRecoveryEnabled, string clientProvidedName);
102-
103-
/// <summary>
104-
/// Construct a protocol model atop a given session.
105-
/// </summary>
106-
IModel CreateModel(ISession session);
10776
}
10877
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,6 @@ namespace RabbitMQ.Client
440440
int MajorVersion { get; }
441441
int MinorVersion { get; }
442442
int Revision { get; }
443-
RabbitMQ.Client.IConnection CreateConnection(RabbitMQ.Client.ConnectionFactory factory, RabbitMQ.Client.Impl.IFrameHandler frameHandler, bool automaticRecoveryEnabled);
444-
RabbitMQ.Client.IConnection CreateConnection(RabbitMQ.Client.IConnectionFactory factory, bool insist, RabbitMQ.Client.Impl.IFrameHandler frameHandler);
445-
RabbitMQ.Client.IConnection CreateConnection(RabbitMQ.Client.ConnectionFactory factory, RabbitMQ.Client.Impl.IFrameHandler frameHandler, bool automaticRecoveryEnabled, string clientProvidedName);
446-
RabbitMQ.Client.IConnection CreateConnection(RabbitMQ.Client.IConnectionFactory factory, bool insist, RabbitMQ.Client.Impl.IFrameHandler frameHandler, string clientProvidedName);
447-
RabbitMQ.Client.IModel CreateModel(RabbitMQ.Client.Impl.ISession session);
448443
}
449444
public interface IRecoverable
450445
{

0 commit comments

Comments
 (0)