Exemple #1
0
            public JobWrapper(
                RestoreInA <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,
                RestoreInA <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> state,
                IEntitySynchronizationLogger <TAtypeEntityId, TAtypeEntity, TBtypeEntityId, TBtypeEntity> logger,
                TContext context)
            {
                if (state == null)
                {
                    throw new ArgumentNullException(nameof(state));
                }
                if (logger == null)
                {
                    throw new ArgumentNullException(nameof(logger));
                }
                if (stateContext == null)
                {
                    throw new ArgumentNullException(nameof(stateContext));
                }

                _state        = state;
                _logger       = logger;
                _context      = context;
                _stateContext = stateContext;
            }