public override HashValue ComputeHash(long offset, long length)
        {
            try
            {
                return(NetworkNode.ComputeHash(this.OperatingNode, this.ServiceType.AlgorithmName, false, offset, length, null, null));
            }
            catch (NodeNotFoundException)
            {
                NetworkNodeAndFileAttributes attributes;

                attributes = this.OperatingNode.Attributes as NetworkNodeAndFileAttributes;

                if (attributes != null)
                {
                    attributes.SetValue <bool>("exists", false);
                }

                throw;
            }
        }
コード例 #2
0
 public override HashValue ComputeHash(long offset, long length)
 {
     return(NetworkNode.ComputeHash(this.OperatingNode, this.ServiceType.AlgorithmName ?? "null", this.ServiceType.Recursive, offset, length, this.ServiceType.IncludedFileAttributes, this.ServiceType.IncludedDirectoryAttributes));
 }
コード例 #3
0
        protected override INode DoMoveTo(INode target, bool overwrite)
        {
            NetworkNode.DoMoveTo(this, target, base.MoveTo, overwrite);

            return(this);
        }
コード例 #4
0
        protected override IDirectory DoDelete(bool recursive)
        {
            NetworkNode.DoDelete(this, true);

            return(this);
        }
コード例 #5
0
        protected override INode DoDelete()
        {
            NetworkNode.DoDelete(this, false);

            return(this);
        }
コード例 #6
0
        public override INode DoCreate(bool createParent)
        {
            NetworkNode.DoCreate(this, createParent);

            return(this);
        }