public bool Equals(Nfs3AccessResult other) { if (other == null) { return(false); } return(other.Access == Access && object.Equals(other.ObjectAttributes, ObjectAttributes) && other.Status == Status); }
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); }