Restrictions
Scoping of events only works on asynchronous publications. Synchronous events are fired right away and the publisher blocks until all subscribers processed the event. Asynchronous events, as the name implies, give no guarantee when the execution of the event is triggered. Therefore only asynchronous events can be further delayed until the scope is released or eventually cancelled. From the built in handler types you can only use OnBackground or OnUserinterfaceAsync. If you programmed your own custom handlers you need to make sure that they provide the asynchronous handler kind (HandlerKind.Asynchronous).