Replaced BlockingCollection in Agents/Agent.cs with AsyncProducerConsumerCollection...
authorPanagiotis Kanavos <pkanavos@gmail.com>
Thu, 1 Mar 2012 13:37:22 +0000 (15:37 +0200)
committerPanagiotis Kanavos <pkanavos@gmail.com>
Thu, 1 Mar 2012 13:37:22 +0000 (15:37 +0200)
commitec1a1baffadc3bf8bc13730c39c9c267ea5d049b
tree6d271ebe1c870d8485ca3623f7afe82358b2e778
parentcd1bbba907dcd975a7e512131ab5701b9ee66d34
Replaced BlockingCollection in Agents/Agent.cs with AsyncProducerConsumerCollection, to reduce locking and avoid exceptions
when an agent stops (e.g. when a FileAgent stops because an account is removed).
Cleanup of several related files

Fixes #1785
trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
trunk/Pithos.Core/Agents/Agent.cs
trunk/Pithos.Core/Agents/CloudTransferAction.cs
trunk/Pithos.Core/Agents/NetworkAgent.cs
trunk/Pithos.Core/Agents/PollAgent.cs
trunk/Pithos.Core/PithosMonitor.cs