Exemplo n.º 1
0
        public async ValueTask <bool> SaveRecordAsync(RecordEnvelopeRef <PlayerRecord> recordRef)
        {
            var path = FileSystemPaths.GetPlayerPath(recordRef.Unref().Record.Id);

            return(await this._dbFileSystemProxy.WriteAsync(path, recordRef));
        }
Exemplo n.º 2
0
        public async ValueTask <RecordEnvelopeRef <PlayerRecord> > GetRecordAsync(PlayerId id)
        {
            var path = FileSystemPaths.GetPlayerPath(id);

            return(await this._dbFileSystemProxy.ReadAsync(path));
        }