@@ -38,8 +38,8 @@ public partial interface IFormFile
38
38
}
39
39
public partial interface IFormFileCollection : System . Collections . Generic . IEnumerable < Microsoft . AspNetCore . Http . IFormFile > , System . Collections . Generic . IReadOnlyCollection < Microsoft . AspNetCore . Http . IFormFile > , System . Collections . Generic . IReadOnlyList < Microsoft . AspNetCore . Http . IFormFile > , System . Collections . IEnumerable
40
40
{
41
- Microsoft . AspNetCore . Http . IFormFile this [ string name ] { get ; }
42
- Microsoft . AspNetCore . Http . IFormFile GetFile ( string name ) ;
41
+ Microsoft . AspNetCore . Http . IFormFile ? this [ string name ] { get ; }
42
+ Microsoft . AspNetCore . Http . IFormFile ? GetFile ( string name ) ;
43
43
System . Collections . Generic . IReadOnlyList < Microsoft . AspNetCore . Http . IFormFile > GetFiles ( string name ) ;
44
44
}
45
45
public partial interface IHeaderDictionary : System . Collections . Generic . ICollection < System . Collections . Generic . KeyValuePair < string , Microsoft . Extensions . Primitives . StringValues > > , System . Collections . Generic . IDictionary < string , Microsoft . Extensions . Primitives . StringValues > , System . Collections . Generic . IEnumerable < System . Collections . Generic . KeyValuePair < string , Microsoft . Extensions . Primitives . StringValues > > , System . Collections . IEnumerable
@@ -58,10 +58,10 @@ public partial interface IQueryCollection : System.Collections.Generic.IEnumerab
58
58
public partial interface IRequestCookieCollection : System . Collections . Generic . IEnumerable < System . Collections . Generic . KeyValuePair < string , string > > , System . Collections . IEnumerable
59
59
{
60
60
int Count { get ; }
61
- string this [ string key ] { get ; }
61
+ string ? this [ string key ] { get ; }
62
62
System . Collections . Generic . ICollection < string > Keys { get ; }
63
63
bool ContainsKey ( string key ) ;
64
- bool TryGetValue ( string key , out string value ) ;
64
+ bool TryGetValue ( string key , [ System . Diagnostics . CodeAnalysis . MaybeNullWhenAttribute ( false ) ] out string ? value ) ;
65
65
}
66
66
public partial interface IResponseCookies
67
67
{
@@ -121,8 +121,8 @@ public partial struct FeatureReferences<TCache>
121
121
public FeatureReferences ( Microsoft . AspNetCore . Http . Features . IFeatureCollection collection ) { throw null ; }
122
122
public Microsoft . AspNetCore . Http . Features . IFeatureCollection Collection { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
123
123
public int Revision { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } }
124
- public TFeature Fetch < TFeature > ( [ System . Diagnostics . CodeAnalysis . AllowNullAttribute , System . Diagnostics . CodeAnalysis . MaybeNullAttribute ] ref TFeature cached , System . Func < Microsoft . AspNetCore . Http . Features . IFeatureCollection , TFeature > factory ) where TFeature : class { throw null ; }
125
- [ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ] public TFeature Fetch < TFeature , TState > ( [ System . Diagnostics . CodeAnalysis . AllowNullAttribute , System . Diagnostics . CodeAnalysis . MaybeNullAttribute ] ref TFeature cached , TState state , System . Func < TState , TFeature > factory ) where TFeature : class { throw null ; }
124
+ public TFeature Fetch < TFeature > ( [ System . Diagnostics . CodeAnalysis . AllowNullAttribute , System . Diagnostics . CodeAnalysis . MaybeNullAttribute ] ref TFeature cached , System . Func < Microsoft . AspNetCore . Http . Features . IFeatureCollection , TFeature > factory ) where TFeature : class ? { throw null ; }
125
+ [ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ] public TFeature Fetch < TFeature , TState > ( [ System . Diagnostics . CodeAnalysis . AllowNullAttribute , System . Diagnostics . CodeAnalysis . MaybeNullAttribute ] ref TFeature cached , TState state , System . Func < TState , TFeature > factory ) where TFeature : class ? { throw null ; }
126
126
[ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ] public void Initalize ( Microsoft . AspNetCore . Http . Features . IFeatureCollection collection ) { }
127
127
[ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ] public void Initalize ( Microsoft . AspNetCore . Http . Features . IFeatureCollection collection , int revision ) { }
128
128
}
@@ -152,7 +152,7 @@ public partial interface IFeatureCollection : System.Collections.Generic.IEnumer
152
152
}
153
153
public partial interface IFormFeature
154
154
{
155
- Microsoft . AspNetCore . Http . IFormCollection Form { get ; set ; }
155
+ Microsoft . AspNetCore . Http . IFormCollection ? Form { get ; set ; }
156
156
bool HasFormContentType { get ; }
157
157
Microsoft . AspNetCore . Http . IFormCollection ReadForm ( ) ;
158
158
System . Threading . Tasks . Task < Microsoft . AspNetCore . Http . IFormCollection > ReadFormAsync ( System . Threading . CancellationToken cancellationToken ) ;
@@ -170,9 +170,9 @@ public partial interface IHttpBufferingFeature
170
170
public partial interface IHttpConnectionFeature
171
171
{
172
172
string ConnectionId { get ; set ; }
173
- System . Net . IPAddress LocalIpAddress { get ; set ; }
173
+ System . Net . IPAddress ? LocalIpAddress { get ; set ; }
174
174
int LocalPort { get ; set ; }
175
- System . Net . IPAddress RemoteIpAddress { get ; set ; }
175
+ System . Net . IPAddress ? RemoteIpAddress { get ; set ; }
176
176
int RemotePort { get ; set ; }
177
177
}
178
178
public partial interface IHttpMaxRequestBodySizeFeature
@@ -225,7 +225,7 @@ public partial interface IHttpResponseFeature
225
225
System . IO . Stream Body { get ; set ; }
226
226
bool HasStarted { get ; }
227
227
Microsoft . AspNetCore . Http . IHeaderDictionary Headers { get ; set ; }
228
- string ReasonPhrase { get ; set ; }
228
+ string ? ReasonPhrase { get ; set ; }
229
229
int StatusCode { get ; set ; }
230
230
void OnCompleted ( System . Func < object , System . Threading . Tasks . Task > callback , object state ) ;
231
231
void OnStarting ( System . Func < object , System . Threading . Tasks . Task > callback , object state ) ;
@@ -255,7 +255,7 @@ public partial interface IHttpWebSocketFeature
255
255
}
256
256
public partial interface IItemsFeature
257
257
{
258
- System . Collections . Generic . IDictionary < object , object > Items { get ; set ; }
258
+ System . Collections . Generic . IDictionary < object , object ? > Items { get ; set ; }
259
259
}
260
260
public partial interface IQueryFeature
261
261
{
@@ -287,8 +287,8 @@ public partial interface ISessionFeature
287
287
}
288
288
public partial interface ITlsConnectionFeature
289
289
{
290
- System . Security . Cryptography . X509Certificates . X509Certificate2 ClientCertificate { get ; set ; }
291
- System . Threading . Tasks . Task < System . Security . Cryptography . X509Certificates . X509Certificate2 > GetClientCertificateAsync ( System . Threading . CancellationToken cancellationToken ) ;
290
+ System . Security . Cryptography . X509Certificates . X509Certificate2 ? ClientCertificate { get ; set ; }
291
+ System . Threading . Tasks . Task < System . Security . Cryptography . X509Certificates . X509Certificate2 ? > GetClientCertificateAsync ( System . Threading . CancellationToken cancellationToken ) ;
292
292
}
293
293
public partial interface ITlsTokenBindingFeature
294
294
{
@@ -309,6 +309,6 @@ namespace Microsoft.AspNetCore.Http.Features.Authentication
309
309
{
310
310
public partial interface IHttpAuthenticationFeature
311
311
{
312
- System . Security . Claims . ClaimsPrincipal User { get ; set ; }
312
+ System . Security . Claims . ClaimsPrincipal ? User { get ; set ; }
313
313
}
314
314
}
0 commit comments