예제 #1
0
            public JobWrapper(
                CreateInA <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;
            }
예제 #2
0
            public JobWrapper(
                IEntitySyncStateContext <TAtypeEntityId, TAtypeEntityVersion, TAtypeEntity, TBtypeEntityId, TBtypeEntityVersion, TBtypeEntity, TContext> stateContext,
                CreateInA <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;
            }