public static Result GetRightsId(this FileSystemClient fs, out FsRightsId rightsId, TitleId programId, StorageId storageId) { IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject(); return(fsProxy.GetRightsId(out rightsId, programId, storageId)); }
public static Result GetRightsId(this FileSystemClient fs, out FsRightsId rightsId, ProgramId programId, StorageId storageId) { using ReferenceCountedDisposable <IFileSystemProxy> fsProxy = fs.Impl.GetFileSystemProxyServiceObject(); return(fsProxy.Target.GetRightsId(out rightsId, programId, storageId)); }
public static Result GetRightsId(this FileSystemClient fs, out FsRightsId rightsId, U8Span path) { rightsId = default; IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject(); Result rc = FsPath.FromSpan(out FsPath fsPath, path); if (rc.IsFailure()) { return(rc); } return(fsProxy.GetRightsIdByPath(out rightsId, ref fsPath)); }
public static Result GetRightsId(this FileSystemClient fs, out FsRightsId rightsId, out byte keyGeneration, U8Span path) { UnsafeHelpers.SkipParamInit(out rightsId, out keyGeneration); using ReferenceCountedDisposable <IFileSystemProxy> fsProxy = fs.Impl.GetFileSystemProxyServiceObject(); Result rc = FspPath.FromSpan(out FspPath sfPath, path); if (rc.IsFailure()) { return(rc); } return(fsProxy.Target.GetRightsIdAndKeyGenerationByPath(out rightsId, out keyGeneration, in sfPath)); }
public static Result UnregisterExternalKey(this FileSystemClient fs, ref FsRightsId rightsId) { IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject(); return(fsProxy.UnregisterExternalKey(ref rightsId)); }
public static Result RegisterExternalKey(this FileSystemClient fs, ref FsRightsId rightsId, ref AccessKey key) { IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject(); return(fsProxy.RegisterExternalKey(ref rightsId, ref key)); }