| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | |
| | | 6 | | namespace Azure.Messaging.ServiceBus.Core |
| | | 7 | | { |
| | | 8 | | internal abstract class TransportConnectionScope : IDisposable |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Indicates whether this <see cref="TransportConnectionScope"/> has been disposed. |
| | | 12 | | /// </summary> |
| | | 13 | | /// |
| | | 14 | | /// <value><c>true</c> if disposed; otherwise, <c>false</c>.</value> |
| | | 15 | | /// |
| | | 16 | | public abstract bool IsDisposed { get; protected set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The recommended timeout to associate with the session. |
| | | 20 | | /// </summary> |
| | | 21 | | /// |
| | 106 | 22 | | public TimeSpan SessionTimeout { get; } = TimeSpan.FromSeconds(30); |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Disposes of the connection scope. |
| | | 26 | | /// </summary> |
| | | 27 | | public abstract void Dispose(); |
| | | 28 | | } |
| | | 29 | | } |