protected override void OnActivated(IActivatedEventArgs args) { continuationManager = new ContinuationManager(); // Activated again due to continuation? var contEventArgs = args as IContinuationActivatedEventArgs; if (contEventArgs != null) { continuationManager.Continue(contEventArgs); } base.OnActivated(args); }