Ejemplo n.º 1
0
 /// <summary>Create move op.</summary>
 public TransferTree(OperationSession session, IFileSystem srcFilesystem, string srcPath, IFileSystem dstFilesystem, string dstPath, IOption srcOption = null, IOption dstOption = null, OperationPolicy policy = OperationPolicy.Unset) : base(session, policy)
 {
     this.srcFileSystem = srcFilesystem ?? throw new ArgumentNullException(nameof(srcFilesystem));
     this.dstFileSystem = dstFilesystem ?? throw new ArgumentNullException(nameof(dstFilesystem));
     this.srcPath       = srcPath ?? throw new ArgumentNullException(nameof(srcPath));
     this.dstPath       = dstPath ?? throw new ArgumentNullException(nameof(dstPath));
     this.srcOption     = srcOption;
     this.Option        = dstOption;
 }
 public ObserverHandle(OperationSession session, IObserver <IOperationEvent> observer)
 {
     this.session  = session;
     this.observer = observer ?? throw new ArgumentNullException(nameof(observer));
 }