/// <summary>
        /// Initializes a new instance of the <see cref="CmisSync.Lib.Events.FileConflictEvent"/> class.
        /// </summary>
        /// <param name='type'>
        /// Conflict Type.
        /// </param>
        /// <param name='affectedPath'>
        /// Affected path.
        /// </param>
        /// <param name='createdConflictPath'>
        /// Created conflict path.
        /// </param>
        public FileConflictEvent(FileConflictType type, string affectedPath, string createdConflictPath = null) {
            if (affectedPath == null) {
                throw new ArgumentNullException("affectedPath");
            }

            this.Type = type;
            this.AffectedPath = affectedPath;
            this.CreatedConflictPath = createdConflictPath;
        }
示例#2
0
 /// <summary></summary>
 /// <param name="type"></param>
 /// <param name="affectedPath"></param>
 /// <param name="createdConflictPath"></param>
 public FileConflictEvent(FileConflictType type, string affectedPath, string createdConflictPath = null)
 {
     if (affectedPath == null)
     {
         throw new ArgumentNullException("Argument null in FileConflictEvent Constructor", "path");
     }
     Type                = type;
     AffectedPath        = affectedPath;
     CreatedConflictPath = createdConflictPath;
 }
示例#3
0
 public FileConflictEvent(FileConflictType type, string affectedPath, string createdConflictPath = null)
 {
     if (affectedPath == null)
     {
         throw new ArgumentNullException("Argument null in FileConflictEvent Constructor", "path");
     }
     Type = type;
     AffectedPath = affectedPath;
     CreatedConflictPath = createdConflictPath;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CmisSync.Lib.Events.FileConflictEvent"/> class.
        /// </summary>
        /// <param name='type'>
        /// Conflict Type.
        /// </param>
        /// <param name='affectedPath'>
        /// Affected path.
        /// </param>
        /// <param name='createdConflictPath'>
        /// Created conflict path.
        /// </param>
        public FileConflictEvent(FileConflictType type, string affectedPath, string createdConflictPath = null)
        {
            if (affectedPath == null)
            {
                throw new ArgumentNullException("affectedPath");
            }

            this.Type                = type;
            this.AffectedPath        = affectedPath;
            this.CreatedConflictPath = createdConflictPath;
        }
示例#5
0
 public FileConflict(Guid fileId, FileConflictType type)
 {
     FileId = fileId;
     Type   = type;
 }