# HG changeset patch # User Steven Robbins # Date 1277391470 -3600 # Node ID 7cc63b9f44cded4081b909d7ee0ab577ac07b948 # Parent df88f6f65a44f2861660408e226beaa62a4446c1 Changed default to use strong references - normal usage seems to be lambdas which results in delivery and filters being collected. diff -r df88f6f65a44f2861660408e226beaa62a4446c1 -r 7cc63b9f44cded4081b909d7ee0ab577ac07b948 TinyIoC/TinyMessenger.cs --- a/TinyIoC/TinyMessenger.cs Mon Apr 05 19:42:00 2010 +0100 +++ b/TinyIoC/TinyMessenger.cs Thu Jun 24 15:57:50 2010 +0100 @@ -527,7 +527,7 @@ #region Public API /// /// Subscribe to a message type with the given destination and delivery action. - /// All references are held with WeakReferences + /// All references are held with strong references /// /// All messages of this type will be delivered. /// @@ -536,13 +536,13 @@ /// TinyMessageSubscription used to unsubscribing public TinyMessageSubscriptionToken Subscribe(Action deliveryAction) where TMessage : class, ITinyMessage { - return AddSubscriptionInternal(deliveryAction, (m) => true, false, DefaultTinyMessageProxy.Instance); + return AddSubscriptionInternal(deliveryAction, (m) => true, true, DefaultTinyMessageProxy.Instance); } /// /// Subscribe to a message type with the given destination and delivery action. /// Messages will be delivered via the specified proxy. - /// All references (apart from the proxy) are held with WeakReferences + /// All references (apart from the proxy) are held with strong references /// /// All messages of this type will be delivered. /// @@ -552,7 +552,7 @@ /// TinyMessageSubscription used to unsubscribing public TinyMessageSubscriptionToken Subscribe(Action deliveryAction, ITinyMessageProxy proxy) where TMessage : class, ITinyMessage { - return AddSubscriptionInternal(deliveryAction, (m) => true, false, proxy); + return AddSubscriptionInternal(deliveryAction, (m) => true, true, proxy); } ///