/// <summary> Constructor of replication master file</summary> /// <param name="storage">replication storage /// </param> /// <param name="file">local file used to store data locally /// </param> public ReplicationMasterFile(ReplicationMasterStorageImpl storage, IFile file) : this(file, storage.hosts, storage.replicationAck) { this.storage = storage; }
/// <summary> Constructor of replication master file</summary> /// <param name="storage">replication storage /// </param> /// <param name="file">local file used to store data locally /// </param> /// <param name="asyncBufSize">size of asynchronous buffer /// </param> public AsyncReplicationMasterFile(ReplicationMasterStorageImpl storage, IFile file, int asyncBufSize) : base(storage, file) { this.asyncBufSize = asyncBufSize; Start(); }