Skip to content

Commit e944b90

Browse files
committed
C#: Regenerate Microsoft.AspNetCore.App stubs
1 parent c547adc commit e944b90

File tree

133 files changed

+8639
-11734
lines changed

Some content is hidden

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

133 files changed

+8639
-11734
lines changed
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// This file contains auto-generated code.
22
// Generated from `Microsoft.AspNetCore.Antiforgery, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`.
3-
43
namespace Microsoft
54
{
65
namespace AspNetCore
@@ -9,29 +8,26 @@ namespace Antiforgery
98
{
109
public class AntiforgeryOptions
1110
{
11+
public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } }
1212
public AntiforgeryOptions() => throw null;
13-
public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set => throw null; }
1413
public static string DefaultCookiePrefix;
15-
public string FormFieldName { get => throw null; set => throw null; }
16-
public string HeaderName { get => throw null; set => throw null; }
17-
public bool SuppressXFrameOptionsHeader { get => throw null; set => throw null; }
14+
public string FormFieldName { get => throw null; set { } }
15+
public string HeaderName { get => throw null; set { } }
16+
public bool SuppressXFrameOptionsHeader { get => throw null; set { } }
1817
}
19-
2018
public class AntiforgeryTokenSet
2119
{
22-
public AntiforgeryTokenSet(string requestToken, string cookieToken, string formFieldName, string headerName) => throw null;
2320
public string CookieToken { get => throw null; }
21+
public AntiforgeryTokenSet(string requestToken, string cookieToken, string formFieldName, string headerName) => throw null;
2422
public string FormFieldName { get => throw null; }
2523
public string HeaderName { get => throw null; }
2624
public string RequestToken { get => throw null; }
2725
}
28-
2926
public class AntiforgeryValidationException : System.Exception
3027
{
3128
public AntiforgeryValidationException(string message) => throw null;
3229
public AntiforgeryValidationException(string message, System.Exception innerException) => throw null;
3330
}
34-
3531
public interface IAntiforgery
3632
{
3733
Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext);
@@ -40,25 +36,22 @@ public interface IAntiforgery
4036
void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext);
4137
System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext);
4238
}
43-
4439
public interface IAntiforgeryAdditionalDataProvider
4540
{
4641
string GetAdditionalData(Microsoft.AspNetCore.Http.HttpContext context);
4742
bool ValidateAdditionalData(Microsoft.AspNetCore.Http.HttpContext context, string additionalData);
4843
}
49-
5044
}
5145
}
5246
namespace Extensions
5347
{
5448
namespace DependencyInjection
5549
{
56-
public static class AntiforgeryServiceCollectionExtensions
50+
public static partial class AntiforgeryServiceCollectionExtensions
5751
{
5852
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null;
5953
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> setupAction) => throw null;
6054
}
61-
6255
}
6356
}
6457
}

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

Lines changed: 33 additions & 54 deletions
Large diffs are not rendered by default.

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

Lines changed: 42 additions & 57 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// This file contains auto-generated code.
22
// Generated from `Microsoft.AspNetCore.Authentication.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`.
3-
43
namespace Microsoft
54
{
65
namespace AspNetCore
@@ -10,17 +9,15 @@ namespace Authentication
109
public class AuthenticationFeature : Microsoft.AspNetCore.Authentication.IAuthenticationFeature
1110
{
1211
public AuthenticationFeature() => throw null;
13-
public Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; set => throw null; }
14-
public Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; set => throw null; }
12+
public Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; set { } }
13+
public Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; set { } }
1514
}
16-
1715
public class AuthenticationHandlerProvider : Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider
1816
{
1917
public AuthenticationHandlerProvider(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes) => throw null;
2018
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler> GetHandlerAsync(Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme) => throw null;
2119
public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; }
2220
}
23-
2421
public class AuthenticationSchemeProvider : Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider
2522
{
2623
public virtual void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null;
@@ -37,12 +34,11 @@ public class AuthenticationSchemeProvider : Microsoft.AspNetCore.Authentication.
3734
public virtual void RemoveScheme(string name) => throw null;
3835
public virtual bool TryAddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null;
3936
}
40-
4137
public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthenticationService
4238
{
4339
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> AuthenticateAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null;
44-
public AuthenticationService(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider handlers, Microsoft.AspNetCore.Authentication.IClaimsTransformation transform, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.AuthenticationOptions> options) => throw null;
4540
public virtual System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null;
41+
public AuthenticationService(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider handlers, Microsoft.AspNetCore.Authentication.IClaimsTransformation transform, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.AuthenticationOptions> options) => throw null;
4642
public virtual System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null;
4743
public Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider Handlers { get => throw null; }
4844
public Microsoft.AspNetCore.Authentication.AuthenticationOptions Options { get => throw null; }
@@ -51,25 +47,22 @@ public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthen
5147
public virtual System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null;
5248
public Microsoft.AspNetCore.Authentication.IClaimsTransformation Transform { get => throw null; }
5349
}
54-
5550
public class NoopClaimsTransformation : Microsoft.AspNetCore.Authentication.IClaimsTransformation
5651
{
5752
public NoopClaimsTransformation() => throw null;
5853
public virtual System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> TransformAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null;
5954
}
60-
6155
}
6256
}
6357
namespace Extensions
6458
{
6559
namespace DependencyInjection
6660
{
67-
public static class AuthenticationCoreServiceCollectionExtensions
61+
public static partial class AuthenticationCoreServiceCollectionExtensions
6862
{
6963
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null;
7064
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Microsoft.AspNetCore.Authentication.AuthenticationOptions> configureOptions) => throw null;
7165
}
72-
7366
}
7467
}
7568
}

0 commit comments

Comments
 (0)