protected internal virtual void addEmergingTimerJobs(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, IDictionary <string, TimerDeclarationImpl> sourceTimerDeclarationsInEventScope, IDictionary <string, TimerDeclarationImpl> targetTimerDeclarationsInEventScope) { foreach (TimerDeclarationImpl targetTimerDeclaration in targetTimerDeclarationsInEventScope.Values) { if (!isNonInterruptingTimerTriggeredAlready(parseContext, sourceTimerDeclarationsInEventScope, targetTimerDeclaration)) { activityInstance.addEmergingDependentInstance(new EmergingJobInstance(targetTimerDeclaration)); } } }
protected internal virtual void addEmergingEventSubscriptions(MigratingActivityInstance owningInstance, IDictionary <string, EventSubscriptionDeclaration> targetDeclarations) { foreach (string key in targetDeclarations.Keys) { // the event subscription will be created EventSubscriptionDeclaration declaration = targetDeclarations[key]; if (!declaration.StartEvent) { owningInstance.addEmergingDependentInstance(new MigratingEventSubscriptionInstance(declaration)); } } }