Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Copier{T}" /> class.
        /// </summary>
        public Copier(
            ICopyRegistrations <T> copyRegistrations,
            ICopyHelper copyHelper,
            ICopyHelperRegistrationFactory factory)
        {
            copyRegistrations.NotNull(nameof(copyRegistrations));
            copyHelper.NotNull(nameof(copyHelper));
            factory.NotNull(nameof(factory));

            var registrations = factory.Create <T>();

            copyRegistrations.DoRegistrations(registrations);
            this.operations = registrations.EndRegistrations();

            this.copyHelper = copyHelper;
        }
 public SynchronizationOperation(ICopyOperation copyOperation)
 {
     _copyOperation = copyOperation;
 }
 public LoggingPollingCopyOperation(ICopyOperation copyOperation, ILogger logger)
 {
     _copyOperation = copyOperation;
     _logger = logger;
 }
 public PollingCopyOperation(ICopyOperation copyOperation, IPollingManager pollingManager)
 {
     _copyOperation = copyOperation;
     _pollingManager = pollingManager;
 }