Flatwhite.WebApi.OutputCacheAttribute.GetAllVaryCustomKey C# (CSharp) Method

GetAllVaryCustomKey() public method

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