@@ -28,7 +28,11 @@ public class DefaultHttpContext : HttpContext
2828
2929 private HttpRequest _request ;
3030 private HttpResponse _response ;
31+
32+ #pragma warning disable CS0618 // Type or member is obsolete
3133 private AuthenticationManager _authenticationManager ;
34+ #pragma warning restore CS0618 // Type or member is obsolete
35+
3236 private ConnectionInfo _connection ;
3337 private WebSocketManager _websockets ;
3438
@@ -66,7 +70,9 @@ public virtual void Uninitialize()
6670 }
6771 if ( _authenticationManager != null )
6872 {
73+ #pragma warning disable CS0618 // Type or member is obsolete
6974 UninitializeAuthenticationManager ( _authenticationManager ) ;
75+ #pragma warning restore CS0618 // Type or member is obsolete
7076 _authenticationManager = null ;
7177 }
7278 if ( _connection != null )
@@ -196,7 +202,9 @@ protected virtual void UninitializeHttpResponse(HttpResponse instance) { }
196202 protected virtual ConnectionInfo InitializeConnectionInfo ( ) => new DefaultConnectionInfo ( Features ) ;
197203 protected virtual void UninitializeConnectionInfo ( ConnectionInfo instance ) { }
198204
205+ [ Obsolete ( "This is obsolete and will be removed in a future version. See https://go.microsoft.com/fwlink/?linkid=845470." ) ]
199206 protected virtual AuthenticationManager InitializeAuthenticationManager ( ) => new DefaultAuthenticationManager ( this ) ;
207+ [ Obsolete ( "This is obsolete and will be removed in a future version. See https://go.microsoft.com/fwlink/?linkid=845470." ) ]
200208 protected virtual void UninitializeAuthenticationManager ( AuthenticationManager instance ) { }
201209
202210 protected virtual WebSocketManager InitializeWebSocketManager ( ) => new DefaultWebSocketManager ( Features ) ;
0 commit comments