I want to use GetFeature of httpcontext ,but httpcontext does not contain GetFeature error occurred,
how to use GetFeature of httpcontext?
publicTaskInvoke(HttpContextcontext){// Detect if an opaque upgrade is available. If so, add a websocket upgrade.varupgradeFeature=context.GetFeature<IHttpUpgradeFeature>();if(upgradeFeature!=null){if(_options.ReplaceFeature||context.GetFeature<IHttpWebSocketFeature>()==null){context.SetFeature<IHttpWebSocketFeature>(newUpgradeHandshake(context,upgradeFeature,_options));}}return_next(context);}