private ReturnNextMiddleware ( HttpContext httpContext ) : bool | ||
httpContext | HttpContext | |
리턴 | bool |
bool ReturnNextMiddleware(HttpContext httpContext)
{
if (options.UseOtherMiddleware && options.PassThroughWhenStatusCodesAre != null)
{
var code = httpContext.Response.StatusCode;
for (int i = 0; i < options.PassThroughWhenStatusCodesAre.Length; i++)
{
if (code == options.PassThroughWhenStatusCodesAre[i])
{
return true;
}
}
return false;
}
else
{
return options.UseOtherMiddleware;
}
}
LightNodeServer::ReturnNextMiddleware ( object>.IDictionary |