コード例 #1
0
        public bool Equals(Nfs3AccessResult other)
        {
            if (other == null)
            {
                return(false);
            }

            return(other.Access == Access &&
                   object.Equals(other.ObjectAttributes, ObjectAttributes) &&
                   other.Status == Status);
        }
コード例 #2
0
        public Nfs3AccessPermissions Access(Nfs3FileHandle handle, Nfs3AccessPermissions requested)
        {
            Nfs3AccessResult result = _nfsClient.Access(handle, requested);

            if (result.ObjectAttributes != null)
            {
                _cachedAttributes[handle] = result.ObjectAttributes;
            }

            if (result.Status == Nfs3Status.Ok)
            {
                return(result.Access);
            }
            throw new Nfs3Exception(result.Status);
        }