Ejemplo n.º 1
0
        public virtual MigratingEventScopeInstance AddEventScopeInstance(IMigrationInstruction migrationInstruction,
                                                                         ExecutionEntity eventScopeExecution, ScopeImpl sourceScope, ScopeImpl targetScope,
                                                                         IMigrationInstruction eventSubscriptionInstruction, EventSubscriptionEntity eventSubscription,
                                                                         ScopeImpl eventSubscriptionSourceScope, ScopeImpl eventSubscriptionTargetScope)
        {
            var compensationInstance = new MigratingEventScopeInstance(migrationInstruction, eventScopeExecution,
                                                                       sourceScope, targetScope, eventSubscriptionInstruction, eventSubscription, eventSubscriptionSourceScope,
                                                                       eventSubscriptionTargetScope);

            migratingEventScopeInstances.Add(compensationInstance);

            return(compensationInstance);
        }
Ejemplo n.º 2
0
 public virtual void RemoveChild(MigratingEventScopeInstance compensationInstance)
 {
     childCompensationInstances.Remove(compensationInstance);
 }
Ejemplo n.º 3
0
 public virtual void AddChild(MigratingEventScopeInstance compensationInstance)
 {
     childCompensationInstances.Add(compensationInstance);
 }