Flatwhite.WebApi.OutputCacheAttribute.GetAllVaryCustomKey C# (CSharp) Méthode

GetAllVaryCustomKey() public méthode

Get all vary by custom string
public GetAllVaryCustomKey ( ) : string
Résultat string
        public virtual string GetAllVaryCustomKey()
        {
            var varyByHeaders = (VaryByHeader ?? "").Split(new[] {',', ' '}, StringSplitOptions.RemoveEmptyEntries);
            return $"{VaryByCustom}, {string.Join(", ", varyByHeaders.Select(h => $"headers.{h}"))}";
        }
    }