public override void AddSyncronizationJob( IEntitySyncStateContext <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> stateContext, IJobList <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity> aJobs, IJobList <TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity> bJobs, IEntitySynchronizationLoggerFactory <TAtypeEntityId, TAtypeEntity, TBtypeEntityId, TBtypeEntity> loggerFactory, TContext context) { var logger = loggerFactory.CreateEntitySynchronizationLogger(SynchronizationOperation.DeleteInB); logger.SetBId(_bId); bJobs.AddDeleteJob(new JobWrapper(stateContext, this, logger)); }
public override void AddSyncronizationJob( IEntitySyncStateContext <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> stateContext, IJobList <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity> aJobs, IJobList <TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity> bJobs, IEntitySynchronizationLoggerFactory <TAtypeEntityId, TAtypeEntity, TBtypeEntityId, TBtypeEntity> loggerFactory, TContext context) { var logger = loggerFactory.CreateEntitySynchronizationLogger(SynchronizationOperation.CreateInB); _loggerOrNull = logger; logger.SetAId(AId); logger.LogA(_aEntity); bJobs.AddCreateJob(new JobWrapper(stateContext, this, logger, context)); }
public override void AddSyncronizationJob( IEntitySyncStateContext <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> stateContext, IJobList <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity> aJobs, IJobList <TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity> bJobs, IEntitySynchronizationLoggerFactory <TAtypeEntityId, TAtypeEntity, TBtypeEntityId, TBtypeEntity> loggerFactory, TContext context) { var logger = loggerFactory.CreateEntitySynchronizationLogger(SynchronizationOperation.UpdateInA); logger.SetAId(KnownData.AtypeId); logger.SetBId(KnownData.BtypeId); logger.LogA(_aEntity); logger.LogB(_bEntity); aJobs.AddUpdateJob(new JobWrapper(stateContext, this, logger, context)); }