Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CmisSync.Lib.Events.FileTransmissionEvent"/> class.
 /// </summary>
 /// <param name='type'>
 /// Type of the transmission.
 /// </param>
 /// <param name='path'>
 /// Path to the file of the transmission.
 /// </param>
 /// <param name='cachePath'>
 /// If a download runs and a cache file is used, this should be the path to the cache file
 /// </param>
 public FileTransmissionEvent(FileTransmissionType type, string path, string cachePath = null)
 {
     if(path == null) {
         throw new ArgumentNullException("Argument null in FSEvent Constructor","path");
     }
     Type = type;
     Path = path;
     status = new TransmissionProgressEventArgs();
     CachePath = cachePath;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CmisSync.Lib.Events.FileTransmissionEvent"/> class.
 /// </summary>
 /// <param name='type'>
 /// Type of the transmission.
 /// </param>
 /// <param name='path'>
 /// Path to the file of the transmission.
 /// </param>
 /// <param name='cachePath'>
 /// If a download runs and a cache file is used, this should be the path to the cache file
 /// </param>
 public FileTransmissionEvent(FileTransmissionType type, string path, string cachePath = null)
 {
     if (path == null)
     {
         throw new ArgumentNullException("Argument null in FSEvent Constructor", "path");
     }
     Type      = type;
     Path      = path;
     status    = new TransmissionProgressEventArgs();
     CachePath = cachePath;
 }