Flatwhite.WebApi.OutputCacheAttribute.GetAllVaryCustomKey C# (CSharp) 메소드

GetAllVaryCustomKey() 공개 메소드

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