Skip to content

Commit 1303490

Browse files
Merge pull request #472 from paulomorgado/reomve-autoclose
Remove deprecated IConnection.AutoClose
2 parents d9e7f6a + a5e6668 commit 1303490

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,6 @@ namespace RabbitMQ.Client
6666
/// </remarks>
6767
public interface IConnection : NetworkConnection, IDisposable
6868
{
69-
/// <summary>
70-
/// If true, will close the whole connection as soon as there are no channels open on it;
71-
/// if false, manual connection closure will be required.
72-
/// </summary>
73-
/// <remarks>
74-
/// DON'T set AutoClose to true before opening the first
75-
/// channel, because the connection will be immediately closed if you do!
76-
/// </remarks>
77-
[Obsolete("Please explicitly close connections instead.")]
78-
bool AutoClose { get; set; }
79-
8069
/// <summary>
8170
/// The maximum channel number this connection supports (0 if unlimited).
8271
/// Usable channel numbers range from 1 to this number, inclusive.

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,6 @@ public event EventHandler<EventArgs> Recovery
288288

289289
public string ClientProvidedName { get; private set; }
290290

291-
[Obsolete("Please explicitly close connections instead.")]
292-
public bool AutoClose
293-
{
294-
get { return m_delegate.AutoClose; }
295-
set { m_delegate.AutoClose = value; }
296-
}
297-
298291
public ushort ChannelMax
299292
{
300293
get { return m_delegate.ChannelMax; }

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,6 @@ public event EventHandler<ConnectionRecoveryErrorEventArgs> ConnectionRecoveryEr
273273
}
274274
public string ClientProvidedName { get; private set; }
275275

276-
[Obsolete("Please explicitly close connections instead.")]
277-
public bool AutoClose
278-
{
279-
get { return m_sessionManager.AutoClose; }
280-
set { m_sessionManager.AutoClose = value; }
281-
}
282-
283276
public ushort ChannelMax
284277
{
285278
get { return m_sessionManager.ChannelMax; }

0 commit comments

Comments
 (0)