public static string GetShared(string filename) { var name = Path.GetFileName(filename)?.ApartFromLast(ReplayObject.ReplayExtension, StringComparison.OrdinalIgnoreCase); var info = new FileInfo(filename); return(name == null || !info.Exists ? null : CacheStorage.GetString($@"sharedReplay:{name.ToLowerInvariant()}:{info.Length}")); }