diff options
Diffstat (limited to 'dotnet/Qpid.Client/Client/AMQConnection.cs')
| -rw-r--r-- | dotnet/Qpid.Client/Client/AMQConnection.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dotnet/Qpid.Client/Client/AMQConnection.cs b/dotnet/Qpid.Client/Client/AMQConnection.cs index c620412cab..1da46f19fd 100644 --- a/dotnet/Qpid.Client/Client/AMQConnection.cs +++ b/dotnet/Qpid.Client/Client/AMQConnection.cs @@ -386,6 +386,7 @@ namespace Qpid.Client public void Start() { CheckNotClosed(); + if (!_started) { foreach (DictionaryEntry lde in _sessions) @@ -400,7 +401,16 @@ namespace Qpid.Client public void Stop() { CheckNotClosed(); - throw new NotImplementedException(); + + if (_started) + { + foreach (DictionaryEntry lde in _sessions) + { + AmqChannel s = (AmqChannel) lde.Value; + s.Stop(); + } + _started = false; + } } public IConnectionListener ConnectionListener |
