public async ValueTask <bool> SaveRecordAsync(RecordEnvelopeRef <PlayerRecord> recordRef) { var path = FileSystemPaths.GetPlayerPath(recordRef.Unref().Record.Id); return(await this._dbFileSystemProxy.WriteAsync(path, recordRef)); }
public async ValueTask <RecordEnvelopeRef <PlayerRecord> > GetRecordAsync(PlayerId id) { var path = FileSystemPaths.GetPlayerPath(id); return(await this._dbFileSystemProxy.ReadAsync(path)); }