Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        public static Result UnregisterExternalKey(this FileSystemClient fs, ref FsRightsId rightsId)
        {
            IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject();

            return(fsProxy.UnregisterExternalKey(ref rightsId));
        }
Esempio n. 6
0
        public static Result RegisterExternalKey(this FileSystemClient fs, ref FsRightsId rightsId, ref AccessKey key)
        {
            IFileSystemProxy fsProxy = fs.GetFileSystemProxyServiceObject();

            return(fsProxy.RegisterExternalKey(ref rightsId, ref key));
        }