public JobWrapper( UpdateAToB <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity> state, IEntitySynchronizationLogger logger) { if (state == null) { throw new ArgumentNullException(nameof(state)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _state = state; _logger = logger; }
public JobWrapper( IEntitySyncStateContext <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> stateContext, UpdateAToB <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> state, IEntitySynchronizationLogger logger, TContext context) { if (state == null) { throw new ArgumentNullException(nameof(state)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _stateContext = stateContext; _state = state; _logger = logger; _context = context; }