Ejemplo n.º 1
0
        /// <summary>
        /// 创建当前请求的上下文信息
        /// </summary>
        /// <typeparam name="TFeatures"></typeparam>
        /// <param name="features"></param>
        /// <returns></returns>
        public OwinContext CreateContext <TFeatures>(TFeatures features)
        {
            OwinContext context = _contextFactory.Create(features);

            _diagnosticListener.BeginRequest(context);
            return(context);
        }