Skip to content

Commit 29ee1bd

Browse files
authored
Merge pull request github#12369 from michaelnebel/csharp/unsafestubs
C#: .NET 7 Runtime and ASP.NET 7 stubs.
2 parents 6adc04e + af12aff commit 29ee1bd

File tree

246 files changed

+10918
-9667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+10918
-9667
lines changed

csharp/ql/test/library-tests/dataflow/library/FlowSummaries.expected

Lines changed: 941 additions & 39 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/dataflow/library/FlowSummariesFiltered.expected

Lines changed: 63 additions & 0 deletions
Large diffs are not rendered by default.

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Antiforgery.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// This file contains auto-generated code.
2+
// Generated from `Microsoft.AspNetCore.Antiforgery, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`.
23

34
namespace Microsoft
45
{
56
namespace AspNetCore
67
{
78
namespace Antiforgery
89
{
9-
// Generated from `Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
1010
public class AntiforgeryOptions
1111
{
1212
public AntiforgeryOptions() => throw null;
@@ -17,7 +17,6 @@ public class AntiforgeryOptions
1717
public bool SuppressXFrameOptionsHeader { get => throw null; set => throw null; }
1818
}
1919

20-
// Generated from `Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
2120
public class AntiforgeryTokenSet
2221
{
2322
public AntiforgeryTokenSet(string requestToken, string cookieToken, string formFieldName, string headerName) => throw null;
@@ -27,14 +26,12 @@ public class AntiforgeryTokenSet
2726
public string RequestToken { get => throw null; }
2827
}
2928

30-
// Generated from `Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
3129
public class AntiforgeryValidationException : System.Exception
3230
{
3331
public AntiforgeryValidationException(string message) => throw null;
3432
public AntiforgeryValidationException(string message, System.Exception innerException) => throw null;
3533
}
3634

37-
// Generated from `Microsoft.AspNetCore.Antiforgery.IAntiforgery` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
3835
public interface IAntiforgery
3936
{
4037
Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext);
@@ -44,7 +41,6 @@ public interface IAntiforgery
4441
System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext);
4542
}
4643

47-
// Generated from `Microsoft.AspNetCore.Antiforgery.IAntiforgeryAdditionalDataProvider` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
4844
public interface IAntiforgeryAdditionalDataProvider
4945
{
5046
string GetAdditionalData(Microsoft.AspNetCore.Http.HttpContext context);
@@ -57,7 +53,6 @@ namespace Extensions
5753
{
5854
namespace DependencyInjection
5955
{
60-
// Generated from `Microsoft.Extensions.DependencyInjection.AntiforgeryServiceCollectionExtensions` in `Microsoft.AspNetCore.Antiforgery, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
6156
public static class AntiforgeryServiceCollectionExtensions
6257
{
6358
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null;

csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Abstractions.cs

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// This file contains auto-generated code.
2+
// Generated from `Microsoft.AspNetCore.Authentication.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`.
23

34
namespace Microsoft
45
{
56
namespace AspNetCore
67
{
78
namespace Authentication
89
{
9-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticateResult` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
1010
public class AuthenticateResult
1111
{
1212
protected AuthenticateResult() => throw null;
@@ -25,7 +25,6 @@ public class AuthenticateResult
2525
public Microsoft.AspNetCore.Authentication.AuthenticationTicket Ticket { get => throw null; set => throw null; }
2626
}
2727

28-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
2928
public static class AuthenticationHttpContextExtensions
3029
{
3130
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync(this Microsoft.AspNetCore.Http.HttpContext context) => throw null;
@@ -50,7 +49,6 @@ public static class AuthenticationHttpContextExtensions
5049
public static System.Threading.Tasks.Task SignOutAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null;
5150
}
5251

53-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationOptions` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
5452
public class AuthenticationOptions
5553
{
5654
public void AddScheme(string name, System.Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> configureBuilder) => throw null;
@@ -67,7 +65,6 @@ public class AuthenticationOptions
6765
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> Schemes { get => throw null; }
6866
}
6967

70-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationProperties` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
7168
public class AuthenticationProperties
7269
{
7370
public bool? AllowRefresh { get => throw null; set => throw null; }
@@ -91,7 +88,6 @@ public class AuthenticationProperties
9188
public void SetString(string key, string value) => throw null;
9289
}
9390

94-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationScheme` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
9591
public class AuthenticationScheme
9692
{
9793
public AuthenticationScheme(string name, string displayName, System.Type handlerType) => throw null;
@@ -100,7 +96,6 @@ public class AuthenticationScheme
10096
public string Name { get => throw null; }
10197
}
10298

103-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
10499
public class AuthenticationSchemeBuilder
105100
{
106101
public AuthenticationSchemeBuilder(string name) => throw null;
@@ -110,7 +105,6 @@ public class AuthenticationSchemeBuilder
110105
public string Name { get => throw null; }
111106
}
112107

113-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationTicket` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
114108
public class AuthenticationTicket
115109
{
116110
public string AuthenticationScheme { get => throw null; }
@@ -121,15 +115,13 @@ public class AuthenticationTicket
121115
public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; }
122116
}
123117

124-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationToken` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
125118
public class AuthenticationToken
126119
{
127120
public AuthenticationToken() => throw null;
128121
public string Name { get => throw null; set => throw null; }
129122
public string Value { get => throw null; set => throw null; }
130123
}
131124

132-
// Generated from `Microsoft.AspNetCore.Authentication.AuthenticationTokenExtensions` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
133125
public static class AuthenticationTokenExtensions
134126
{
135127
public static System.Threading.Tasks.Task<string> GetTokenAsync(this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName) => throw null;
@@ -140,20 +132,22 @@ public static class AuthenticationTokenExtensions
140132
public static bool UpdateTokenValue(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue) => throw null;
141133
}
142134

143-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticateResultFeature` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
144135
public interface IAuthenticateResultFeature
145136
{
146137
Microsoft.AspNetCore.Authentication.AuthenticateResult AuthenticateResult { get; set; }
147138
}
148139

149-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationFeature` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
140+
public interface IAuthenticationConfigurationProvider
141+
{
142+
Microsoft.Extensions.Configuration.IConfiguration AuthenticationConfiguration { get; }
143+
}
144+
150145
public interface IAuthenticationFeature
151146
{
152147
Microsoft.AspNetCore.Http.PathString OriginalPath { get; set; }
153148
Microsoft.AspNetCore.Http.PathString OriginalPathBase { get; set; }
154149
}
155150

156-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationHandler` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
157151
public interface IAuthenticationHandler
158152
{
159153
System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync();
@@ -162,19 +156,16 @@ public interface IAuthenticationHandler
162156
System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context);
163157
}
164158

165-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
166159
public interface IAuthenticationHandlerProvider
167160
{
168161
System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler> GetHandlerAsync(Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme);
169162
}
170163

171-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
172164
public interface IAuthenticationRequestHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler
173165
{
174166
System.Threading.Tasks.Task<bool> HandleRequestAsync();
175167
}
176168

177-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
178169
public interface IAuthenticationSchemeProvider
179170
{
180171
void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme);
@@ -190,7 +181,6 @@ public interface IAuthenticationSchemeProvider
190181
bool TryAddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null;
191182
}
192183

193-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationService` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
194184
public interface IAuthenticationService
195185
{
196186
System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme);
@@ -200,19 +190,16 @@ public interface IAuthenticationService
200190
System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
201191
}
202192

203-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationSignInHandler` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
204193
public interface IAuthenticationSignInHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler
205194
{
206195
System.Threading.Tasks.Task SignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
207196
}
208197

209-
// Generated from `Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
210198
public interface IAuthenticationSignOutHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler
211199
{
212200
System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
213201
}
214202

215-
// Generated from `Microsoft.AspNetCore.Authentication.IClaimsTransformation` in `Microsoft.AspNetCore.Authentication.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`
216203
public interface IClaimsTransformation
217204
{
218205
System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> TransformAsync(System.Security.Claims.ClaimsPrincipal principal);

0 commit comments

Comments
 (0)