Providers/AspNet/Revo.AspNet/Security/Identity/HttpContextExtensions.cs
/// <summary>
/// Gets the <see cref="IOwinContext"/> for the current request.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Gets the  for the current request.
Gets the for the current request .
public static IOwinContext GetOwinContext(this HttpContext context)
        {
            IDictionary<string, object> environment = GetOwinEnvironment(context);
            if (environment == null)
            {
                throw new InvalidOperationException("No owin.Environment item was found in the context.");
            }
            return new OwinContext(environment);
        }
public static IOwinContext GetOwinContext ( this HttpContext context ) { IDictionary < string , object > environment = GetOwinEnvironment ( context ) ; if ( environment == null ) { throw new InvalidOperationException ( " " ) ; } return new OwinContext ( environment ) ; }
Gets the  for the current request.
Gets the for the current request .
None
HttpContext
this
context
None