Subscription behaviour

Jul 9, 2009 at 6:59 PM

It seems that the subscription behaviour is different from the behaviour alluded to in the Demo03PublishSubscribe.cs. Even if sub1 subscribes after the first news item was published to sub0, it contains 2 items after the second news item was published. Hence Debug.Assert(sub1.ItemCount == 1) fails.

Jul 9, 2009 at 7:06 PM

Ok, it seems like the second subscription was handled before the post was. A sleep after the first news item post resulted in the desired behaviour.