protected SmugglerBase(DatabaseSmugglerOptions options, DatabaseSmugglerNotifications notifications, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination) { Options = options; Notifications = notifications; Source = source; Destination = destination; }
public DatabaseSmuggler(DatabaseSmugglerOptions options, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination) { _options = options; _source = source; _destination = destination; _notifications = new DatabaseSmugglerNotifications(); }
private static async Task <DatabaseSmugglerOperationState> GetOperationStateAsync(DatabaseSmugglerOptions options, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination, CancellationToken cancellationToken) { DatabaseSmugglerOperationState state = null; if (destination.SupportsOperationState) { state = await destination .LoadOperationStateAsync(options, cancellationToken) .ConfigureAwait(false); } if (state == null) { state = new DatabaseSmugglerOperationState { LastDocsEtag = options.StartDocsEtag, LastDocDeleteEtag = options.StartDocsDeletionEtag, }; } Debug.Assert(state.LastDocsEtag != null); Debug.Assert(state.LastDocDeleteEtag != null); return(state); }
public AttachmentSmuggler(DatabaseSmugglerOptions options, DatabaseSmugglerNotifications notifications, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination) : base(options, notifications, source, destination) { }
public TransformerSmuggler(DatabaseSmugglerOptions options, DatabaseSmugglerNotifications notifications, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination) : base(options, notifications, source, destination) { }
public DocumentSmuggler(DatabaseSmugglerOptions options, DatabaseSmugglerNotifications notifications, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination, DatabaseLastEtagsInfo maxEtags) : base(options, notifications, source, destination) { _maxEtags = maxEtags; _patcher = new SmugglerJintHelper(); _patcher.Initialize(options); }
public DocumentDeletionsSmuggler(DatabaseSmugglerOptions options, DatabaseSmugglerNotifications notifications, IDatabaseSmugglerSource source, IDatabaseSmugglerDestination destination, DatabaseLastEtagsInfo maxEtags) : base(options, notifications, source, destination) { _maxEtags = maxEtags; }