Exemplo n.º 1
0
        private static IHeaderDictionary GetHeaders(IResponseCookies responseCookies)
        {
            if (_headerPropertyInfo == null)
            {
                _headerPropertyInfo = responseCookies.GetType().GetProperty("Headers", BindingFlags.NonPublic | BindingFlags.Instance);
            }

            return((IHeaderDictionary)_headerPropertyInfo.GetValue(responseCookies));
        }