Esempio n. 1
0
 public DirectoryTransferJob(DirectoryTransferArguments args, OnProgressChangeDelegate progressChangeDelegate, CancellationToken ct)
     : this(args, ct)
 {
     ProgressChange += progressChangeDelegate;
 }
 private static string CreateMessage(DirectoryTransferArguments jobArgs, Exception innerException)
 {
     return($"A {innerException.GetType()} has been raised when trying to transfer directory {jobArgs.From.FullName} to {jobArgs.To.FullName} with settings {jobArgs.Settings}");
 }
Esempio n. 3
0
 public DirectoryTransferJob(DirectoryTransferArguments args, CancellationToken ct)
 {
     Args    = args;
     this.ct = ct;
 }
 public DirectoryTransferException(DirectoryTransferArguments args, Exception innerException)
     : base(CreateMessage(args, innerException), innerException)
 {
     Args = args;
 }