diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Antiforgery.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Antiforgery.cs index bce42e8da38a3..45b90466081f9 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Antiforgery.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Antiforgery.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Antiforgery, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,56 +8,50 @@ namespace Antiforgery { public class AntiforgeryOptions { - public AntiforgeryOptions() => throw null; - public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set => throw null; } public static string DefaultCookiePrefix; - public string FormFieldName { get => throw null; set => throw null; } - public string HeaderName { get => throw null; set => throw null; } - public bool SuppressXFrameOptionsHeader { get => throw null; set => throw null; } + public AntiforgeryOptions() => throw null; + public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } } + public string FormFieldName { get => throw null; set { } } + public string HeaderName { get => throw null; set { } } + public bool SuppressXFrameOptionsHeader { get => throw null; set { } } } - public class AntiforgeryTokenSet { public AntiforgeryTokenSet(string requestToken, string cookieToken, string formFieldName, string headerName) => throw null; - public string CookieToken { get => throw null; } + public string RequestToken { get => throw null; } public string FormFieldName { get => throw null; } public string HeaderName { get => throw null; } - public string RequestToken { get => throw null; } + public string CookieToken { get => throw null; } } - public class AntiforgeryValidationException : System.Exception { public AntiforgeryValidationException(string message) => throw null; public AntiforgeryValidationException(string message, System.Exception innerException) => throw null; } - public interface IAntiforgery { Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext); Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens(Microsoft.AspNetCore.Http.HttpContext httpContext); System.Threading.Tasks.Task IsRequestValidAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); - void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext); System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); + void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext); } - public interface IAntiforgeryAdditionalDataProvider { string GetAdditionalData(Microsoft.AspNetCore.Http.HttpContext context); bool ValidateAdditionalData(Microsoft.AspNetCore.Http.HttpContext context, string additionalData); } - } } namespace Extensions { namespace DependencyInjection { - public static class AntiforgeryServiceCollectionExtensions + public static partial class AntiforgeryServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Abstractions.cs index e36260275d5ee..a6ddc69c54043 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authentication.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,176 +10,151 @@ public class AuthenticateResult { protected AuthenticateResult() => throw null; public Microsoft.AspNetCore.Authentication.AuthenticateResult Clone() => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticateResult Success(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticateResult NoResult() => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail(System.Exception failure) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail(System.Exception failure, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail(string failureMessage) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticateResult Fail(string failureMessage, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public System.Exception Failure { get => throw null; set => throw null; } - public static Microsoft.AspNetCore.Authentication.AuthenticateResult NoResult() => throw null; - public bool None { get => throw null; set => throw null; } - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } public bool Succeeded { get => throw null; } - public static Microsoft.AspNetCore.Authentication.AuthenticateResult Success(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationTicket Ticket { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationTicket Ticket { get => throw null; set { } } + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + public System.Exception Failure { get => throw null; set { } } + public bool None { get => throw null; set { } } } - - public static class AuthenticationHttpContextExtensions + public static partial class AuthenticationHttpContextExtensions { public static System.Threading.Tasks.Task AuthenticateAsync(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; public static System.Threading.Tasks.Task AuthenticateAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; + public static System.Threading.Tasks.Task ChallengeAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public static System.Threading.Tasks.Task ChallengeAsync(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; public static System.Threading.Tasks.Task ChallengeAsync(this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public static System.Threading.Tasks.Task ChallengeAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public static System.Threading.Tasks.Task ChallengeAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public static System.Threading.Tasks.Task ForbidAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public static System.Threading.Tasks.Task ForbidAsync(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; public static System.Threading.Tasks.Task ForbidAsync(this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public static System.Threading.Tasks.Task ForbidAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public static System.Threading.Tasks.Task ForbidAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Http.HttpContext context, string tokenName) => throw null; - public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName) => throw null; + public static System.Threading.Tasks.Task SignInAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal) => throw null; public static System.Threading.Tasks.Task SignInAsync(this Microsoft.AspNetCore.Http.HttpContext context, System.Security.Claims.ClaimsPrincipal principal) => throw null; public static System.Threading.Tasks.Task SignInAsync(this Microsoft.AspNetCore.Http.HttpContext context, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public static System.Threading.Tasks.Task SignInAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal) => throw null; public static System.Threading.Tasks.Task SignInAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public static System.Threading.Tasks.Task SignOutAsync(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; public static System.Threading.Tasks.Task SignOutAsync(this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public static System.Threading.Tasks.Task SignOutAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public static System.Threading.Tasks.Task SignOutAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName) => throw null; + public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Http.HttpContext context, string tokenName) => throw null; } - public class AuthenticationOptions { public void AddScheme(string name, System.Action configureBuilder) => throw null; public void AddScheme(string name, string displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler => throw null; public AuthenticationOptions() => throw null; - public string DefaultAuthenticateScheme { get => throw null; set => throw null; } - public string DefaultChallengeScheme { get => throw null; set => throw null; } - public string DefaultForbidScheme { get => throw null; set => throw null; } - public string DefaultScheme { get => throw null; set => throw null; } - public string DefaultSignInScheme { get => throw null; set => throw null; } - public string DefaultSignOutScheme { get => throw null; set => throw null; } - public bool RequireAuthenticatedSignIn { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary SchemeMap { get => throw null; } public System.Collections.Generic.IEnumerable Schemes { get => throw null; } + public System.Collections.Generic.IDictionary SchemeMap { get => throw null; } + public string DefaultScheme { get => throw null; set { } } + public string DefaultAuthenticateScheme { get => throw null; set { } } + public string DefaultSignInScheme { get => throw null; set { } } + public string DefaultSignOutScheme { get => throw null; set { } } + public string DefaultChallengeScheme { get => throw null; set { } } + public string DefaultForbidScheme { get => throw null; set { } } + public bool RequireAuthenticatedSignIn { get => throw null; set { } } } - public class AuthenticationProperties { - public bool? AllowRefresh { get => throw null; set => throw null; } public AuthenticationProperties() => throw null; public AuthenticationProperties(System.Collections.Generic.IDictionary items) => throw null; public AuthenticationProperties(System.Collections.Generic.IDictionary items, System.Collections.Generic.IDictionary parameters) => throw null; public Microsoft.AspNetCore.Authentication.AuthenticationProperties Clone() => throw null; - public System.DateTimeOffset? ExpiresUtc { get => throw null; set => throw null; } + public string GetString(string key) => throw null; + public void SetString(string key, string value) => throw null; + public T GetParameter(string key) => throw null; + public void SetParameter(string key, T value) => throw null; protected bool? GetBool(string key) => throw null; + protected void SetBool(string key, bool? value) => throw null; protected System.DateTimeOffset? GetDateTimeOffset(string key) => throw null; - public T GetParameter(string key) => throw null; - public string GetString(string key) => throw null; - public bool IsPersistent { get => throw null; set => throw null; } - public System.DateTimeOffset? IssuedUtc { get => throw null; set => throw null; } + protected void SetDateTimeOffset(string key, System.DateTimeOffset? value) => throw null; public System.Collections.Generic.IDictionary Items { get => throw null; } public System.Collections.Generic.IDictionary Parameters { get => throw null; } - public string RedirectUri { get => throw null; set => throw null; } - protected void SetBool(string key, bool? value) => throw null; - protected void SetDateTimeOffset(string key, System.DateTimeOffset? value) => throw null; - public void SetParameter(string key, T value) => throw null; - public void SetString(string key, string value) => throw null; + public bool IsPersistent { get => throw null; set { } } + public string RedirectUri { get => throw null; set { } } + public System.DateTimeOffset? IssuedUtc { get => throw null; set { } } + public System.DateTimeOffset? ExpiresUtc { get => throw null; set { } } + public bool? AllowRefresh { get => throw null; set { } } } - public class AuthenticationScheme { public AuthenticationScheme(string name, string displayName, System.Type handlerType) => throw null; + public string Name { get => throw null; } public string DisplayName { get => throw null; } public System.Type HandlerType { get => throw null; } - public string Name { get => throw null; } } - public class AuthenticationSchemeBuilder { public AuthenticationSchemeBuilder(string name) => throw null; public Microsoft.AspNetCore.Authentication.AuthenticationScheme Build() => throw null; - public string DisplayName { get => throw null; set => throw null; } - public System.Type HandlerType { get => throw null; set => throw null; } public string Name { get => throw null; } + public string DisplayName { get => throw null; set { } } + public System.Type HandlerType { get => throw null; set { } } } - public class AuthenticationTicket { - public string AuthenticationScheme { get => throw null; } public AuthenticationTicket(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; public AuthenticationTicket(System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme) => throw null; public Microsoft.AspNetCore.Authentication.AuthenticationTicket Clone() => throw null; + public string AuthenticationScheme { get => throw null; } public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; } public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } } - public class AuthenticationToken { public AuthenticationToken() => throw null; - public string Name { get => throw null; set => throw null; } - public string Value { get => throw null; set => throw null; } + public string Name { get => throw null; set { } } + public string Value { get => throw null; set { } } } - - public static class AuthenticationTokenExtensions - { - public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName) => throw null; - public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName) => throw null; - public static string GetTokenValue(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName) => throw null; - public static System.Collections.Generic.IEnumerable GetTokens(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public static void StoreTokens(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IEnumerable tokens) => throw null; - public static bool UpdateTokenValue(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue) => throw null; - } - public interface IAuthenticateResultFeature { Microsoft.AspNetCore.Authentication.AuthenticateResult AuthenticateResult { get; set; } } - public interface IAuthenticationConfigurationProvider { Microsoft.Extensions.Configuration.IConfiguration AuthenticationConfiguration { get; } } - public interface IAuthenticationFeature { - Microsoft.AspNetCore.Http.PathString OriginalPath { get; set; } Microsoft.AspNetCore.Http.PathString OriginalPathBase { get; set; } + Microsoft.AspNetCore.Http.PathString OriginalPath { get; set; } } - public interface IAuthenticationHandler { + System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context); System.Threading.Tasks.Task AuthenticateAsync(); System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); - System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context); } - public interface IAuthenticationHandlerProvider { System.Threading.Tasks.Task GetHandlerAsync(Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme); } - public interface IAuthenticationRequestHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler { System.Threading.Tasks.Task HandleRequestAsync(); } - public interface IAuthenticationSchemeProvider { - void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme); System.Threading.Tasks.Task> GetAllSchemesAsync(); + System.Threading.Tasks.Task GetSchemeAsync(string name); System.Threading.Tasks.Task GetDefaultAuthenticateSchemeAsync(); System.Threading.Tasks.Task GetDefaultChallengeSchemeAsync(); System.Threading.Tasks.Task GetDefaultForbidSchemeAsync(); System.Threading.Tasks.Task GetDefaultSignInSchemeAsync(); System.Threading.Tasks.Task GetDefaultSignOutSchemeAsync(); - System.Threading.Tasks.Task> GetRequestHandlerSchemesAsync(); - System.Threading.Tasks.Task GetSchemeAsync(string name); + void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme); + virtual bool TryAddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null; void RemoveScheme(string name); - bool TryAddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null; + System.Threading.Tasks.Task> GetRequestHandlerSchemesAsync(); } - public interface IAuthenticationService { System.Threading.Tasks.Task AuthenticateAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme); @@ -189,22 +163,27 @@ public interface IAuthenticationService System.Threading.Tasks.Task SignInAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); } - - public interface IAuthenticationSignInHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler + public interface IAuthenticationSignInHandler : Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler { System.Threading.Tasks.Task SignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); } - public interface IAuthenticationSignOutHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler { System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); } - public interface IClaimsTransformation { System.Threading.Tasks.Task TransformAsync(System.Security.Claims.ClaimsPrincipal principal); } - + public static partial class AuthenticationTokenExtensions + { + public static void StoreTokens(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IEnumerable tokens) => throw null; + public static string GetTokenValue(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName) => throw null; + public static bool UpdateTokenValue(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string tokenName, string tokenValue) => throw null; + public static System.Collections.Generic.IEnumerable GetTokens(this Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName) => throw null; + public static System.Threading.Tasks.Task GetTokenAsync(this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName) => throw null; + } } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Cookies.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Cookies.cs index d2df2b11c4f1d..736e4ef8b8307 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Cookies.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Cookies.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authentication.Cookies, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,143 +8,130 @@ namespace Authentication { namespace Cookies { - public class ChunkingCookieManager : Microsoft.AspNetCore.Authentication.Cookies.ICookieManager - { - public void AppendResponseCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, string value, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; - public int? ChunkSize { get => throw null; set => throw null; } - public ChunkingCookieManager() => throw null; - public const int DefaultChunkSize = default; - public void DeleteCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; - public string GetRequestCookie(Microsoft.AspNetCore.Http.HttpContext context, string key) => throw null; - public bool ThrowForPartialCookies { get => throw null; set => throw null; } - } - public static class CookieAuthenticationDefaults { - public static Microsoft.AspNetCore.Http.PathString AccessDeniedPath; - public const string AuthenticationScheme = default; + public static string AuthenticationScheme; public static string CookiePrefix; public static Microsoft.AspNetCore.Http.PathString LoginPath; public static Microsoft.AspNetCore.Http.PathString LogoutPath; + public static Microsoft.AspNetCore.Http.PathString AccessDeniedPath; public static string ReturnUrlParameter; } - public class CookieAuthenticationEvents { + public virtual System.Threading.Tasks.Task ValidatePrincipal(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; public virtual System.Threading.Tasks.Task CheckSlidingExpiration(Microsoft.AspNetCore.Authentication.Cookies.CookieSlidingExpirationContext context) => throw null; - public CookieAuthenticationEvents() => throw null; - public System.Func OnCheckSlidingExpiration { get => throw null; set => throw null; } - public System.Func, System.Threading.Tasks.Task> OnRedirectToAccessDenied { get => throw null; set => throw null; } - public System.Func, System.Threading.Tasks.Task> OnRedirectToLogin { get => throw null; set => throw null; } - public System.Func, System.Threading.Tasks.Task> OnRedirectToLogout { get => throw null; set => throw null; } - public System.Func, System.Threading.Tasks.Task> OnRedirectToReturnUrl { get => throw null; set => throw null; } - public System.Func OnSignedIn { get => throw null; set => throw null; } - public System.Func OnSigningIn { get => throw null; set => throw null; } - public System.Func OnSigningOut { get => throw null; set => throw null; } - public System.Func OnValidatePrincipal { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.Task RedirectToAccessDenied(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; - public virtual System.Threading.Tasks.Task RedirectToLogin(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; - public virtual System.Threading.Tasks.Task RedirectToLogout(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; - public virtual System.Threading.Tasks.Task RedirectToReturnUrl(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; - public virtual System.Threading.Tasks.Task SignedIn(Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext context) => throw null; public virtual System.Threading.Tasks.Task SigningIn(Microsoft.AspNetCore.Authentication.Cookies.CookieSigningInContext context) => throw null; + public virtual System.Threading.Tasks.Task SignedIn(Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext context) => throw null; public virtual System.Threading.Tasks.Task SigningOut(Microsoft.AspNetCore.Authentication.Cookies.CookieSigningOutContext context) => throw null; - public virtual System.Threading.Tasks.Task ValidatePrincipal(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; + public virtual System.Threading.Tasks.Task RedirectToLogout(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; + public virtual System.Threading.Tasks.Task RedirectToLogin(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; + public virtual System.Threading.Tasks.Task RedirectToReturnUrl(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; + public virtual System.Threading.Tasks.Task RedirectToAccessDenied(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; + public CookieAuthenticationEvents() => throw null; + public System.Func OnValidatePrincipal { get => throw null; set { } } + public System.Func OnCheckSlidingExpiration { get => throw null; set { } } + public System.Func OnSigningIn { get => throw null; set { } } + public System.Func OnSignedIn { get => throw null; set { } } + public System.Func OnSigningOut { get => throw null; set { } } + public System.Func, System.Threading.Tasks.Task> OnRedirectToLogin { get => throw null; set { } } + public System.Func, System.Threading.Tasks.Task> OnRedirectToAccessDenied { get => throw null; set { } } + public System.Func, System.Threading.Tasks.Task> OnRedirectToLogout { get => throw null; set { } } + public System.Func, System.Threading.Tasks.Task> OnRedirectToReturnUrl { get => throw null; set { } } } - public class CookieAuthenticationHandler : Microsoft.AspNetCore.Authentication.SignInAuthenticationHandler { public CookieAuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; + protected override System.Threading.Tasks.Task InitializeHandlerAsync() => throw null; protected override System.Threading.Tasks.Task CreateEventsAsync() => throw null; - protected Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents Events { get => throw null; set => throw null; } - protected virtual System.Threading.Tasks.Task FinishResponseAsync() => throw null; protected override System.Threading.Tasks.Task HandleAuthenticateAsync() => throw null; - protected override System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected override System.Threading.Tasks.Task HandleForbiddenAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected virtual System.Threading.Tasks.Task FinishResponseAsync() => throw null; protected override System.Threading.Tasks.Task HandleSignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; protected override System.Threading.Tasks.Task HandleSignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected override System.Threading.Tasks.Task InitializeHandlerAsync() => throw null; + protected override System.Threading.Tasks.Task HandleForbiddenAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected override System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents Events { get => throw null; set { } } } - public class CookieAuthenticationOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions { - public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set => throw null; } public CookieAuthenticationOptions() => throw null; - public Microsoft.AspNetCore.Authentication.Cookies.ICookieManager CookieManager { get => throw null; set => throw null; } - public Microsoft.AspNetCore.DataProtection.IDataProtectionProvider DataProtectionProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents Events { get => throw null; set => throw null; } - public System.TimeSpan ExpireTimeSpan { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString LoginPath { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString LogoutPath { get => throw null; set => throw null; } - public string ReturnUrlParameter { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.Cookies.ITicketStore SessionStore { get => throw null; set => throw null; } - public bool SlidingExpiration { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.ISecureDataFormat TicketDataFormat { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } } + public Microsoft.AspNetCore.DataProtection.IDataProtectionProvider DataProtectionProvider { get => throw null; set { } } + public bool SlidingExpiration { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString LoginPath { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString LogoutPath { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set { } } + public string ReturnUrlParameter { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationEvents Events { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.ISecureDataFormat TicketDataFormat { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.Cookies.ICookieManager CookieManager { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.Cookies.ITicketStore SessionStore { get => throw null; set { } } + public System.TimeSpan ExpireTimeSpan { get => throw null; set { } } } - public class CookieSignedInContext : Microsoft.AspNetCore.Authentication.PrincipalContext { public CookieSignedInContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; } - public class CookieSigningInContext : Microsoft.AspNetCore.Authentication.PrincipalContext { - public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; set => throw null; } public CookieSigningInContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.CookieOptions cookieOptions) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; set { } } } - public class CookieSigningOutContext : Microsoft.AspNetCore.Authentication.PropertiesContext { - public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; set => throw null; } public CookieSigningOutContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.CookieOptions cookieOptions) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; set { } } } - public class CookieSlidingExpirationContext : Microsoft.AspNetCore.Authentication.PrincipalContext { public CookieSlidingExpirationContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, System.TimeSpan elapsedTime, System.TimeSpan remainingTime) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; public System.TimeSpan ElapsedTime { get => throw null; } public System.TimeSpan RemainingTime { get => throw null; } - public bool ShouldRenew { get => throw null; set => throw null; } + public bool ShouldRenew { get => throw null; set { } } } - public class CookieValidatePrincipalContext : Microsoft.AspNetCore.Authentication.PrincipalContext { public CookieValidatePrincipalContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; - public void RejectPrincipal() => throw null; public void ReplacePrincipal(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public bool ShouldRenew { get => throw null; set => throw null; } + public void RejectPrincipal() => throw null; + public bool ShouldRenew { get => throw null; set { } } } - public interface ICookieManager { + string GetRequestCookie(Microsoft.AspNetCore.Http.HttpContext context, string key); void AppendResponseCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, string value, Microsoft.AspNetCore.Http.CookieOptions options); void DeleteCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, Microsoft.AspNetCore.Http.CookieOptions options); - string GetRequestCookie(Microsoft.AspNetCore.Http.HttpContext context, string key); } - public interface ITicketStore { - System.Threading.Tasks.Task RemoveAsync(string key); - System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken cancellationToken) => throw null; - System.Threading.Tasks.Task RemoveAsync(string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; + System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket); + virtual System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; System.Threading.Tasks.Task RenewAsync(string key, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket); - System.Threading.Tasks.Task RenewAsync(string key, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, System.Threading.CancellationToken cancellationToken) => throw null; - System.Threading.Tasks.Task RenewAsync(string key, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task RenewAsync(string key, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task RenewAsync(string key, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; System.Threading.Tasks.Task RetrieveAsync(string key); - System.Threading.Tasks.Task RetrieveAsync(string key, System.Threading.CancellationToken cancellationToken) => throw null; - System.Threading.Tasks.Task RetrieveAsync(string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; - System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket); - System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, System.Threading.CancellationToken cancellationToken) => throw null; - System.Threading.Tasks.Task StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task RetrieveAsync(string key, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task RetrieveAsync(string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; + System.Threading.Tasks.Task RemoveAsync(string key); + virtual System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken cancellationToken) => throw null; + virtual System.Threading.Tasks.Task RemoveAsync(string key, Microsoft.AspNetCore.Http.HttpContext httpContext, System.Threading.CancellationToken cancellationToken) => throw null; } - public class PostConfigureCookieAuthenticationOptions : Microsoft.Extensions.Options.IPostConfigureOptions { - public void PostConfigure(string name, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options) => throw null; public PostConfigureCookieAuthenticationOptions(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtection) => throw null; + public void PostConfigure(string name, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options) => throw null; + } + public class ChunkingCookieManager : Microsoft.AspNetCore.Authentication.Cookies.ICookieManager + { + public static int DefaultChunkSize; + public ChunkingCookieManager() => throw null; + public string GetRequestCookie(Microsoft.AspNetCore.Http.HttpContext context, string key) => throw null; + public void AppendResponseCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, string value, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; + public void DeleteCookie(Microsoft.AspNetCore.Http.HttpContext context, string key, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; + public int? ChunkSize { get => throw null; set { } } + public bool ThrowForPartialCookies { get => throw null; set { } } } - } } } @@ -153,15 +139,14 @@ namespace Extensions { namespace DependencyInjection { - public static class CookieExtensions + public static partial class CookieExtensions { public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; - public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme) => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Core.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Core.cs index 23ddbd0373c7a..bc3c9528ed5b0 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Core.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.Core.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authentication.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,66 +9,60 @@ namespace Authentication public class AuthenticationFeature : Microsoft.AspNetCore.Authentication.IAuthenticationFeature { public AuthenticationFeature() => throw null; - public Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; set { } } } - public class AuthenticationHandlerProvider : Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider { public AuthenticationHandlerProvider(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes) => throw null; public System.Threading.Tasks.Task GetHandlerAsync(Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme) => throw null; public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; } } - public class AuthenticationSchemeProvider : Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider { - public virtual void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null; public AuthenticationSchemeProvider(Microsoft.Extensions.Options.IOptions options) => throw null; protected AuthenticationSchemeProvider(Microsoft.Extensions.Options.IOptions options, System.Collections.Generic.IDictionary schemes) => throw null; - public virtual System.Threading.Tasks.Task> GetAllSchemesAsync() => throw null; public virtual System.Threading.Tasks.Task GetDefaultAuthenticateSchemeAsync() => throw null; public virtual System.Threading.Tasks.Task GetDefaultChallengeSchemeAsync() => throw null; public virtual System.Threading.Tasks.Task GetDefaultForbidSchemeAsync() => throw null; public virtual System.Threading.Tasks.Task GetDefaultSignInSchemeAsync() => throw null; public virtual System.Threading.Tasks.Task GetDefaultSignOutSchemeAsync() => throw null; - public virtual System.Threading.Tasks.Task> GetRequestHandlerSchemesAsync() => throw null; public virtual System.Threading.Tasks.Task GetSchemeAsync(string name) => throw null; - public virtual void RemoveScheme(string name) => throw null; + public virtual System.Threading.Tasks.Task> GetRequestHandlerSchemesAsync() => throw null; public virtual bool TryAddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null; + public virtual void AddScheme(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme) => throw null; + public virtual void RemoveScheme(string name) => throw null; + public virtual System.Threading.Tasks.Task> GetAllSchemesAsync() => throw null; } - public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthenticationService { - public virtual System.Threading.Tasks.Task AuthenticateAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public AuthenticationService(Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider handlers, Microsoft.AspNetCore.Authentication.IClaimsTransformation transform, Microsoft.Extensions.Options.IOptions options) => throw null; + public virtual System.Threading.Tasks.Task AuthenticateAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme) => throw null; public virtual System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public virtual System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider Handlers { get => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationOptions Options { get => throw null; } - public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; } public virtual System.Threading.Tasks.Task SignInAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public virtual System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; } + public Microsoft.AspNetCore.Authentication.IAuthenticationHandlerProvider Handlers { get => throw null; } public Microsoft.AspNetCore.Authentication.IClaimsTransformation Transform { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationOptions Options { get => throw null; } } - public class NoopClaimsTransformation : Microsoft.AspNetCore.Authentication.IClaimsTransformation { - public NoopClaimsTransformation() => throw null; public virtual System.Threading.Tasks.Task TransformAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public NoopClaimsTransformation() => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class AuthenticationCoreServiceCollectionExtensions + public static partial class AuthenticationCoreServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthenticationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.OAuth.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.OAuth.cs index 27bcca97c2400..fff76373ea201 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.OAuth.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.OAuth.cs @@ -1,180 +1,162 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authentication.OAuth, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Authentication { - public static class ClaimActionCollectionMapExtensions + public static partial class ClaimActionCollectionMapExtensions { - public static void DeleteClaim(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType) => throw null; - public static void DeleteClaims(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] claimTypes) => throw null; - public static void MapAll(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection) => throw null; - public static void MapAllExcept(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] exclusions) => throw null; - public static void MapCustomJson(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, System.Func resolver) => throw null; - public static void MapCustomJson(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, System.Func resolver) => throw null; public static void MapJsonKey(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey) => throw null; public static void MapJsonKey(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string valueType) => throw null; public static void MapJsonSubKey(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string subKey) => throw null; public static void MapJsonSubKey(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string subKey, string valueType) => throw null; + public static void MapCustomJson(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, System.Func resolver) => throw null; + public static void MapCustomJson(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, System.Func resolver) => throw null; + public static void MapAll(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection) => throw null; + public static void MapAllExcept(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] exclusions) => throw null; + public static void DeleteClaim(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType) => throw null; + public static void DeleteClaims(this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] claimTypes) => throw null; } - namespace OAuth { + public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext + { + public OAuthCreatingTicketContext(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions options, System.Net.Http.HttpClient backchannel, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens, System.Text.Json.JsonElement user) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions)) => throw null; + public void RunClaimActions() => throw null; + public void RunClaimActions(System.Text.Json.JsonElement userData) => throw null; + public System.Text.Json.JsonElement User { get => throw null; } + public Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse TokenResponse { get => throw null; } + public string AccessToken { get => throw null; } + public string TokenType { get => throw null; } + public string RefreshToken { get => throw null; } + public System.TimeSpan? ExpiresIn { get => throw null; } + public System.Net.Http.HttpClient Backchannel { get => throw null; } + public System.Security.Claims.ClaimsIdentity Identity { get => throw null; } + } + public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents + { + public virtual System.Threading.Tasks.Task CreatingTicket(Microsoft.AspNetCore.Authentication.OAuth.OAuthCreatingTicketContext context) => throw null; + public virtual System.Threading.Tasks.Task RedirectToAuthorizationEndpoint(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; + public OAuthEvents() => throw null; + public System.Func OnCreatingTicket { get => throw null; set { } } + public System.Func, System.Threading.Tasks.Task> OnRedirectToAuthorizationEndpoint { get => throw null; set { } } + } public class OAuthChallengeProperties : Microsoft.AspNetCore.Authentication.AuthenticationProperties { + public static string ScopeKey; public OAuthChallengeProperties() => throw null; public OAuthChallengeProperties(System.Collections.Generic.IDictionary items) => throw null; public OAuthChallengeProperties(System.Collections.Generic.IDictionary items, System.Collections.Generic.IDictionary parameters) => throw null; - public System.Collections.Generic.ICollection Scope { get => throw null; set => throw null; } - public static string ScopeKey; public virtual void SetScope(params string[] scopes) => throw null; + public System.Collections.Generic.ICollection Scope { get => throw null; set { } } } - public class OAuthCodeExchangeContext { - public string Code { get => throw null; } public OAuthCodeExchangeContext(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string code, string redirectUri) => throw null; public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } + public string Code { get => throw null; } public string RedirectUri { get => throw null; } } - public static class OAuthConstants { + public static string CodeVerifierKey; public static string CodeChallengeKey; public static string CodeChallengeMethodKey; public static string CodeChallengeMethodS256; - public static string CodeVerifierKey; - } - - public class OAuthCreatingTicketContext : Microsoft.AspNetCore.Authentication.ResultContext - { - public string AccessToken { get => throw null; } - public System.Net.Http.HttpClient Backchannel { get => throw null; } - public System.TimeSpan? ExpiresIn { get => throw null; } - public System.Security.Claims.ClaimsIdentity Identity { get => throw null; } - public OAuthCreatingTicketContext(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions options, System.Net.Http.HttpClient backchannel, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens, System.Text.Json.JsonElement user) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions)) => throw null; - public string RefreshToken { get => throw null; } - public void RunClaimActions() => throw null; - public void RunClaimActions(System.Text.Json.JsonElement userData) => throw null; - public Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse TokenResponse { get => throw null; } - public string TokenType { get => throw null; } - public System.Text.Json.JsonElement User { get => throw null; } } - public static class OAuthDefaults { public static string DisplayName; } - - public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents - { - public virtual System.Threading.Tasks.Task CreatingTicket(Microsoft.AspNetCore.Authentication.OAuth.OAuthCreatingTicketContext context) => throw null; - public OAuthEvents() => throw null; - public System.Func OnCreatingTicket { get => throw null; set => throw null; } - public System.Func, System.Threading.Tasks.Task> OnRedirectToAuthorizationEndpoint { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.Task RedirectToAuthorizationEndpoint(Microsoft.AspNetCore.Authentication.RedirectContext context) => throw null; - } - public class OAuthHandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() { - protected System.Net.Http.HttpClient Backchannel { get => throw null; } - protected virtual string BuildChallengeUrl(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string redirectUri) => throw null; + public OAuthHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; protected override System.Threading.Tasks.Task CreateEventsAsync() => throw null; - protected virtual System.Threading.Tasks.Task CreateTicketAsync(System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens) => throw null; - protected Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents Events { get => throw null; set => throw null; } + protected override System.Threading.Tasks.Task HandleRemoteAuthenticateAsync() => throw null; protected virtual System.Threading.Tasks.Task ExchangeCodeAsync(Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext context) => throw null; - protected virtual string FormatScope() => throw null; - protected virtual string FormatScope(System.Collections.Generic.IEnumerable scopes) => throw null; + protected virtual System.Threading.Tasks.Task CreateTicketAsync(System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens) => throw null; protected override System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected override System.Threading.Tasks.Task HandleRemoteAuthenticateAsync() => throw null; - public OAuthHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; + protected virtual string BuildChallengeUrl(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string redirectUri) => throw null; + protected virtual string FormatScope(System.Collections.Generic.IEnumerable scopes) => throw null; + protected virtual string FormatScope() => throw null; + protected System.Net.Http.HttpClient Backchannel { get => throw null; } + protected Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents Events { get => throw null; set { } } } - public class OAuthOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions { - public string AuthorizationEndpoint { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection ClaimActions { get => throw null; } - public string ClientId { get => throw null; set => throw null; } - public string ClientSecret { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents Events { get => throw null; set => throw null; } public OAuthOptions() => throw null; - public System.Collections.Generic.ICollection Scope { get => throw null; } - public Microsoft.AspNetCore.Authentication.ISecureDataFormat StateDataFormat { get => throw null; set => throw null; } - public string TokenEndpoint { get => throw null; set => throw null; } - public bool UsePkce { get => throw null; set => throw null; } - public string UserInformationEndpoint { get => throw null; set => throw null; } public override void Validate() => throw null; + public string ClientId { get => throw null; set { } } + public string ClientSecret { get => throw null; set { } } + public string AuthorizationEndpoint { get => throw null; set { } } + public string TokenEndpoint { get => throw null; set { } } + public string UserInformationEndpoint { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.OAuth.OAuthEvents Events { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection ClaimActions { get => throw null; } + public System.Collections.Generic.ICollection Scope { get => throw null; } + public Microsoft.AspNetCore.Authentication.ISecureDataFormat StateDataFormat { get => throw null; set { } } + public bool UsePkce { get => throw null; set { } } } - public class OAuthTokenResponse : System.IDisposable { - public string AccessToken { get => throw null; set => throw null; } - public void Dispose() => throw null; - public System.Exception Error { get => throw null; set => throw null; } - public string ExpiresIn { get => throw null; set => throw null; } - public static Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse Failed(System.Exception error) => throw null; - public string RefreshToken { get => throw null; set => throw null; } - public System.Text.Json.JsonDocument Response { get => throw null; set => throw null; } public static Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse Success(System.Text.Json.JsonDocument response) => throw null; - public string TokenType { get => throw null; set => throw null; } + public static Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse Failed(System.Exception error) => throw null; + public void Dispose() => throw null; + public System.Text.Json.JsonDocument Response { get => throw null; set { } } + public string AccessToken { get => throw null; set { } } + public string TokenType { get => throw null; set { } } + public string RefreshToken { get => throw null; set { } } + public string ExpiresIn { get => throw null; set { } } + public System.Exception Error { get => throw null; set { } } } - namespace Claims { public abstract class ClaimAction { public ClaimAction(string claimType, string valueType) => throw null; - public string ClaimType { get => throw null; } public abstract void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer); + public string ClaimType { get => throw null; } public string ValueType { get => throw null; } } - public class ClaimActionCollection : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public void Add(Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction action) => throw null; - public ClaimActionCollection() => throw null; public void Clear() => throw null; + public void Remove(string claimType) => throw null; + public void Add(Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction action) => throw null; public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public void Remove(string claimType) => throw null; + public ClaimActionCollection() => throw null; } - public class CustomJsonClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction { public CustomJsonClaimAction(string claimType, string valueType, System.Func resolver) : base(default(string), default(string)) => throw null; - public System.Func Resolver { get => throw null; } public override void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer) => throw null; + public System.Func Resolver { get => throw null; } } - public class DeleteClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction { public DeleteClaimAction(string claimType) : base(default(string), default(string)) => throw null; public override void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer) => throw null; } - public class JsonKeyClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction { - public string JsonKey { get => throw null; } public JsonKeyClaimAction(string claimType, string valueType, string jsonKey) : base(default(string), default(string)) => throw null; public override void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer) => throw null; + public string JsonKey { get => throw null; } } - public class JsonSubKeyClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.JsonKeyClaimAction { public JsonSubKeyClaimAction(string claimType, string valueType, string jsonKey, string subKey) : base(default(string), default(string), default(string)) => throw null; public override void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer) => throw null; public string SubKey { get => throw null; } } - public class MapAllClaimsAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction { public MapAllClaimsAction() : base(default(string), default(string)) => throw null; public override void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer) => throw null; } - } } } @@ -183,20 +165,18 @@ namespace Extensions { namespace DependencyInjection { - public static class OAuthExtensions + public static partial class OAuthExtensions { public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, System.Action configureOptions) => throw null; - public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, System.Action configureOptions) where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() => throw null; - public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, System.Action configureOptions) where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, System.Action configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, System.Action configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler => throw null; } - - public class OAuthPostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() + public class OAuthPostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler { public OAuthPostConfigureOptions(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtection) => throw null; public void PostConfigure(string name, TOptions options) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.cs index 33cdb01eee117..bbf23c0bc85aa 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authentication.cs @@ -1,138 +1,177 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authentication, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Authentication { - public class AccessDeniedContext : Microsoft.AspNetCore.Authentication.HandleRequestContext - { - public AccessDeniedContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions)) => throw null; - public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } - public string ReturnUrl { get => throw null; set => throw null; } - public string ReturnUrlParameter { get => throw null; set => throw null; } - } - public class AuthenticationBuilder { - public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddPolicyScheme(string authenticationScheme, string displayName, System.Action configureOptions) => throw null; - public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme(string authenticationScheme, string displayName, System.Action configureOptions) where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() => throw null; - public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme(string authenticationScheme, System.Action configureOptions) where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() => throw null; - public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme(string authenticationScheme, string displayName, System.Action configureOptions) where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() => throw null; public AuthenticationBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme(string authenticationScheme, string displayName, System.Action configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme(string authenticationScheme, System.Action configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddRemoteScheme(string authenticationScheme, string displayName, System.Action configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() where THandler : Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddPolicyScheme(string authenticationScheme, string displayName, System.Action configureOptions) => throw null; public virtual Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } } - - public static class AuthenticationConfigurationProviderExtensions + public static partial class AuthenticationConfigurationProviderExtensions { public static Microsoft.Extensions.Configuration.IConfiguration GetSchemeConfiguration(this Microsoft.AspNetCore.Authentication.IAuthenticationConfigurationProvider provider, string authenticationScheme) => throw null; } - public abstract class AuthenticationHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() { - public System.Threading.Tasks.Task AuthenticateAsync() => throw null; protected AuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) => throw null; - protected string BuildRedirectUri(string targetPath) => throw null; - public System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected virtual string ClaimsIssuer { get => throw null; } - protected Microsoft.AspNetCore.Authentication.ISystemClock Clock { get => throw null; } - protected Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } + public System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context) => throw null; + protected virtual System.Threading.Tasks.Task InitializeEventsAsync() => throw null; protected virtual System.Threading.Tasks.Task CreateEventsAsync() => throw null; - protected string CurrentUri { get => throw null; } - protected virtual object Events { get => throw null; set => throw null; } - public System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected abstract System.Threading.Tasks.Task HandleAuthenticateAsync(); + protected virtual System.Threading.Tasks.Task InitializeHandlerAsync() => throw null; + protected string BuildRedirectUri(string targetPath) => throw null; + protected virtual string ResolveTarget(string scheme) => throw null; + public System.Threading.Tasks.Task AuthenticateAsync() => throw null; protected System.Threading.Tasks.Task HandleAuthenticateOnceAsync() => throw null; protected System.Threading.Tasks.Task HandleAuthenticateOnceSafeAsync() => throw null; - protected virtual System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected abstract System.Threading.Tasks.Task HandleAuthenticateAsync(); protected virtual System.Threading.Tasks.Task HandleForbiddenAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context) => throw null; - protected virtual System.Threading.Tasks.Task InitializeEventsAsync() => throw null; - protected virtual System.Threading.Tasks.Task InitializeHandlerAsync() => throw null; - protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } + protected virtual System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public Microsoft.AspNetCore.Authentication.AuthenticationScheme Scheme { get => throw null; } public TOptions Options { get => throw null; } - protected Microsoft.Extensions.Options.IOptionsMonitor OptionsMonitor { get => throw null; } - protected Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; } - protected Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; } + protected Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } protected Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - protected virtual string ResolveTarget(string scheme) => throw null; protected Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationScheme Scheme { get => throw null; } + protected Microsoft.AspNetCore.Http.PathString OriginalPath { get => throw null; } + protected Microsoft.AspNetCore.Http.PathString OriginalPathBase { get => throw null; } + protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } protected System.Text.Encodings.Web.UrlEncoder UrlEncoder { get => throw null; } + protected Microsoft.AspNetCore.Authentication.ISystemClock Clock { get => throw null; } + protected Microsoft.Extensions.Options.IOptionsMonitor OptionsMonitor { get => throw null; } + protected virtual object Events { get => throw null; set { } } + protected virtual string ClaimsIssuer { get => throw null; } + protected string CurrentUri { get => throw null; } } - public class AuthenticationMiddleware { public AuthenticationMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; - public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider Schemes { get => throw null; set { } } } - public class AuthenticationSchemeOptions { - public AuthenticationSchemeOptions() => throw null; - public string ClaimsIssuer { get => throw null; set => throw null; } - public object Events { get => throw null; set => throw null; } - public System.Type EventsType { get => throw null; set => throw null; } - public string ForwardAuthenticate { get => throw null; set => throw null; } - public string ForwardChallenge { get => throw null; set => throw null; } - public string ForwardDefault { get => throw null; set => throw null; } - public System.Func ForwardDefaultSelector { get => throw null; set => throw null; } - public string ForwardForbid { get => throw null; set => throw null; } - public string ForwardSignIn { get => throw null; set => throw null; } - public string ForwardSignOut { get => throw null; set => throw null; } public virtual void Validate() => throw null; public virtual void Validate(string scheme) => throw null; + public AuthenticationSchemeOptions() => throw null; + public string ClaimsIssuer { get => throw null; set { } } + public object Events { get => throw null; set { } } + public System.Type EventsType { get => throw null; set { } } + public string ForwardDefault { get => throw null; set { } } + public string ForwardAuthenticate { get => throw null; set { } } + public string ForwardChallenge { get => throw null; set { } } + public string ForwardForbid { get => throw null; set { } } + public string ForwardSignIn { get => throw null; set { } } + public string ForwardSignOut { get => throw null; set { } } + public System.Func ForwardDefaultSelector { get => throw null; set { } } } - - public static class Base64UrlTextEncoder + public class AccessDeniedContext : Microsoft.AspNetCore.Authentication.HandleRequestContext { - public static System.Byte[] Decode(string text) => throw null; - public static string Encode(System.Byte[] data) => throw null; + public AccessDeniedContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions)) => throw null; + public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + public string ReturnUrl { get => throw null; set { } } + public string ReturnUrlParameter { get => throw null; set { } } } - public abstract class BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions { protected BaseContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options) => throw null; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationScheme Scheme { get => throw null; } public TOptions Options { get => throw null; } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationScheme Scheme { get => throw null; } } - public class HandleRequestContext : Microsoft.AspNetCore.Authentication.BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions { protected HandleRequestContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; public void HandleResponse() => throw null; - public Microsoft.AspNetCore.Authentication.HandleRequestResult Result { get => throw null; set => throw null; } public void SkipHandler() => throw null; + public Microsoft.AspNetCore.Authentication.HandleRequestResult Result { get => throw null; set { } } + } + public abstract class PrincipalContext : Microsoft.AspNetCore.Authentication.PropertiesContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions + { + protected PrincipalContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public virtual System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set { } } + } + public abstract class PropertiesContext : Microsoft.AspNetCore.Authentication.BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions + { + protected PropertiesContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + } + public class RedirectContext : Microsoft.AspNetCore.Authentication.PropertiesContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions + { + public RedirectContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string redirectUri) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public string RedirectUri { get => throw null; set { } } + } + public abstract class RemoteAuthenticationContext : Microsoft.AspNetCore.Authentication.HandleRequestContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions + { + protected RemoteAuthenticationContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; + public void Success() => throw null; + public void Fail(System.Exception failure) => throw null; + public void Fail(string failureMessage) => throw null; + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + } + public class RemoteAuthenticationEvents + { + public virtual System.Threading.Tasks.Task AccessDenied(Microsoft.AspNetCore.Authentication.AccessDeniedContext context) => throw null; + public virtual System.Threading.Tasks.Task RemoteFailure(Microsoft.AspNetCore.Authentication.RemoteFailureContext context) => throw null; + public virtual System.Threading.Tasks.Task TicketReceived(Microsoft.AspNetCore.Authentication.TicketReceivedContext context) => throw null; + public RemoteAuthenticationEvents() => throw null; + public System.Func OnAccessDenied { get => throw null; set { } } + public System.Func OnRemoteFailure { get => throw null; set { } } + public System.Func OnTicketReceived { get => throw null; set { } } + } + public class RemoteFailureContext : Microsoft.AspNetCore.Authentication.HandleRequestContext + { + public RemoteFailureContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options, System.Exception failure) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions)) => throw null; + public System.Exception Failure { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + } + public abstract class ResultContext : Microsoft.AspNetCore.Authentication.BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions + { + protected ResultContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; + public void Success() => throw null; + public void NoResult() => throw null; + public void Fail(System.Exception failure) => throw null; + public void Fail(string failureMessage) => throw null; + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticateResult Result { get => throw null; } + } + public class TicketReceivedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext + { + public TicketReceivedContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public string ReturnUri { get => throw null; set { } } } - public class HandleRequestResult : Microsoft.AspNetCore.Authentication.AuthenticateResult { + public static Microsoft.AspNetCore.Authentication.HandleRequestResult Success(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail(System.Exception failure) => throw null; public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail(System.Exception failure, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail(string failureMessage) => throw null; public static Microsoft.AspNetCore.Authentication.HandleRequestResult Fail(string failureMessage, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public static Microsoft.AspNetCore.Authentication.HandleRequestResult Handle() => throw null; + public static Microsoft.AspNetCore.Authentication.HandleRequestResult SkipHandler() => throw null; + public static Microsoft.AspNetCore.Authentication.HandleRequestResult NoResult() => throw null; public HandleRequestResult() => throw null; public bool Handled { get => throw null; } - public static Microsoft.AspNetCore.Authentication.HandleRequestResult NoResult() => throw null; - public static Microsoft.AspNetCore.Authentication.HandleRequestResult SkipHandler() => throw null; public bool Skipped { get => throw null; } - public static Microsoft.AspNetCore.Authentication.HandleRequestResult Success(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; } - public interface IDataSerializer { - TModel Deserialize(System.Byte[] data); - System.Byte[] Serialize(TModel model); + byte[] Serialize(TModel model); + TModel Deserialize(byte[] data); } - public interface ISecureDataFormat { string Protect(TData data); @@ -140,222 +179,145 @@ public interface ISecureDataFormat TData Unprotect(string protectedText); TData Unprotect(string protectedText, string purpose); } - public interface ISystemClock { System.DateTimeOffset UtcNow { get; } } - - public static class JsonDocumentAuthExtensions + public static partial class JsonDocumentAuthExtensions { public static string GetString(this System.Text.Json.JsonElement element, string key) => throw null; } - public class PolicySchemeHandler : Microsoft.AspNetCore.Authentication.SignInAuthenticationHandler { - protected override System.Threading.Tasks.Task HandleAuthenticateAsync() => throw null; + public PolicySchemeHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; protected override System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; protected override System.Threading.Tasks.Task HandleForbiddenAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; protected override System.Threading.Tasks.Task HandleSignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; protected override System.Threading.Tasks.Task HandleSignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public PolicySchemeHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; + protected override System.Threading.Tasks.Task HandleAuthenticateAsync() => throw null; } - public class PolicySchemeOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions { public PolicySchemeOptions() => throw null; } - - public abstract class PrincipalContext : Microsoft.AspNetCore.Authentication.PropertiesContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions - { - public virtual System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } - protected PrincipalContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; - } - - public abstract class PropertiesContext : Microsoft.AspNetCore.Authentication.BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions - { - public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } - protected PropertiesContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; - } - public class PropertiesDataFormat : Microsoft.AspNetCore.Authentication.SecureDataFormat { public PropertiesDataFormat(Microsoft.AspNetCore.DataProtection.IDataProtector protector) : base(default(Microsoft.AspNetCore.Authentication.IDataSerializer), default(Microsoft.AspNetCore.DataProtection.IDataProtector)) => throw null; } - public class PropertiesSerializer : Microsoft.AspNetCore.Authentication.IDataSerializer { - public static Microsoft.AspNetCore.Authentication.PropertiesSerializer Default { get => throw null; } - public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Deserialize(System.Byte[] data) => throw null; - public PropertiesSerializer() => throw null; - public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Read(System.IO.BinaryReader reader) => throw null; - public virtual System.Byte[] Serialize(Microsoft.AspNetCore.Authentication.AuthenticationProperties model) => throw null; + public virtual byte[] Serialize(Microsoft.AspNetCore.Authentication.AuthenticationProperties model) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Deserialize(byte[] data) => throw null; public virtual void Write(System.IO.BinaryWriter writer, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Read(System.IO.BinaryReader reader) => throw null; + public PropertiesSerializer() => throw null; + public static Microsoft.AspNetCore.Authentication.PropertiesSerializer Default { get => throw null; } } - - public class RedirectContext : Microsoft.AspNetCore.Authentication.PropertiesContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions - { - public RedirectContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string redirectUri) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; - public string RedirectUri { get => throw null; set => throw null; } - } - - public abstract class RemoteAuthenticationContext : Microsoft.AspNetCore.Authentication.HandleRequestContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions - { - public void Fail(System.Exception failure) => throw null; - public void Fail(string failureMessage) => throw null; - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } - protected RemoteAuthenticationContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; - public void Success() => throw null; - } - - public class RemoteAuthenticationEvents - { - public virtual System.Threading.Tasks.Task AccessDenied(Microsoft.AspNetCore.Authentication.AccessDeniedContext context) => throw null; - public System.Func OnAccessDenied { get => throw null; set => throw null; } - public System.Func OnRemoteFailure { get => throw null; set => throw null; } - public System.Func OnTicketReceived { get => throw null; set => throw null; } - public RemoteAuthenticationEvents() => throw null; - public virtual System.Threading.Tasks.Task RemoteFailure(Microsoft.AspNetCore.Authentication.RemoteFailureContext context) => throw null; - public virtual System.Threading.Tasks.Task TicketReceived(Microsoft.AspNetCore.Authentication.TicketReceivedContext context) => throw null; - } - - public abstract class RemoteAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() + public abstract class RemoteAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationRequestHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions, new() { + protected RemoteAuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; protected override System.Threading.Tasks.Task CreateEventsAsync() => throw null; - protected Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents Events { get => throw null; set => throw null; } - protected virtual void GenerateCorrelationId(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected virtual System.Threading.Tasks.Task HandleAccessDeniedErrorAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual System.Threading.Tasks.Task ShouldHandleRequestAsync() => throw null; + public virtual System.Threading.Tasks.Task HandleRequestAsync() => throw null; + protected abstract System.Threading.Tasks.Task HandleRemoteAuthenticateAsync(); protected override System.Threading.Tasks.Task HandleAuthenticateAsync() => throw null; protected override System.Threading.Tasks.Task HandleForbiddenAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - protected abstract System.Threading.Tasks.Task HandleRemoteAuthenticateAsync(); - public virtual System.Threading.Tasks.Task HandleRequestAsync() => throw null; - protected RemoteAuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; - public virtual System.Threading.Tasks.Task ShouldHandleRequestAsync() => throw null; - protected string SignInScheme { get => throw null; } + protected virtual void GenerateCorrelationId(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; protected virtual bool ValidateCorrelationId(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected virtual System.Threading.Tasks.Task HandleAccessDeniedErrorAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected string SignInScheme { get => throw null; } + protected Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents Events { get => throw null; set { } } } - public class RemoteAuthenticationOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions { - public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set => throw null; } - public System.Net.Http.HttpClient Backchannel { get => throw null; set => throw null; } - public System.Net.Http.HttpMessageHandler BackchannelHttpHandler { get => throw null; set => throw null; } - public System.TimeSpan BackchannelTimeout { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString CallbackPath { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.CookieBuilder CorrelationCookie { get => throw null; set => throw null; } - public Microsoft.AspNetCore.DataProtection.IDataProtectionProvider DataProtectionProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents Events { get => throw null; set => throw null; } public RemoteAuthenticationOptions() => throw null; - public System.TimeSpan RemoteAuthenticationTimeout { get => throw null; set => throw null; } - public string ReturnUrlParameter { get => throw null; set => throw null; } - public bool SaveTokens { get => throw null; set => throw null; } - public string SignInScheme { get => throw null; set => throw null; } - public override void Validate() => throw null; public override void Validate(string scheme) => throw null; + public override void Validate() => throw null; + public System.TimeSpan BackchannelTimeout { get => throw null; set { } } + public System.Net.Http.HttpMessageHandler BackchannelHttpHandler { get => throw null; set { } } + public System.Net.Http.HttpClient Backchannel { get => throw null; set { } } + public Microsoft.AspNetCore.DataProtection.IDataProtectionProvider DataProtectionProvider { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString CallbackPath { get => throw null; set { } } + public Microsoft.AspNetCore.Http.PathString AccessDeniedPath { get => throw null; set { } } + public string ReturnUrlParameter { get => throw null; set { } } + public string SignInScheme { get => throw null; set { } } + public System.TimeSpan RemoteAuthenticationTimeout { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents Events { get => throw null; set { } } + public bool SaveTokens { get => throw null; set { } } + public Microsoft.AspNetCore.Http.CookieBuilder CorrelationCookie { get => throw null; set { } } } - - public class RemoteFailureContext : Microsoft.AspNetCore.Authentication.HandleRequestContext - { - public System.Exception Failure { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } - public RemoteFailureContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options, System.Exception failure) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions)) => throw null; - } - public class RequestPathBaseCookieBuilder : Microsoft.AspNetCore.Http.CookieBuilder { - protected virtual string AdditionalPath { get => throw null; } public override Microsoft.AspNetCore.Http.CookieOptions Build(Microsoft.AspNetCore.Http.HttpContext context, System.DateTimeOffset expiresFrom) => throw null; public RequestPathBaseCookieBuilder() => throw null; + protected virtual string AdditionalPath { get => throw null; } } - - public abstract class ResultContext : Microsoft.AspNetCore.Authentication.BaseContext where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions - { - public void Fail(System.Exception failure) => throw null; - public void Fail(string failureMessage) => throw null; - public void NoResult() => throw null; - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticateResult Result { get => throw null; } - protected ResultContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, TOptions options) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(TOptions)) => throw null; - public void Success() => throw null; - } - public class SecureDataFormat : Microsoft.AspNetCore.Authentication.ISecureDataFormat { + public SecureDataFormat(Microsoft.AspNetCore.Authentication.IDataSerializer serializer, Microsoft.AspNetCore.DataProtection.IDataProtector protector) => throw null; public string Protect(TData data) => throw null; public string Protect(TData data, string purpose) => throw null; - public SecureDataFormat(Microsoft.AspNetCore.Authentication.IDataSerializer serializer, Microsoft.AspNetCore.DataProtection.IDataProtector protector) => throw null; public TData Unprotect(string protectedText) => throw null; public TData Unprotect(string protectedText, string purpose) => throw null; } - - public abstract class SignInAuthenticationHandler : Microsoft.AspNetCore.Authentication.SignOutAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignInHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() + public abstract class SignInAuthenticationHandler : Microsoft.AspNetCore.Authentication.SignOutAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignInHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() { - protected abstract System.Threading.Tasks.Task HandleSignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); - public virtual System.Threading.Tasks.Task SignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public SignInAuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; + public virtual System.Threading.Tasks.Task SignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected abstract System.Threading.Tasks.Task HandleSignInAsync(System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); } - - public abstract class SignOutAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() + public abstract class SignOutAuthenticationHandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler, Microsoft.AspNetCore.Authentication.IAuthenticationSignOutHandler, Microsoft.AspNetCore.Authentication.IAuthenticationHandler where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() { - protected abstract System.Threading.Tasks.Task HandleSignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); - public virtual System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public SignOutAuthenticationHandler(Microsoft.Extensions.Options.IOptionsMonitor options, Microsoft.Extensions.Logging.ILoggerFactory logger, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.AspNetCore.Authentication.ISystemClock clock) : base(default(Microsoft.Extensions.Options.IOptionsMonitor), default(Microsoft.Extensions.Logging.ILoggerFactory), default(System.Text.Encodings.Web.UrlEncoder), default(Microsoft.AspNetCore.Authentication.ISystemClock)) => throw null; + public virtual System.Threading.Tasks.Task SignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + protected abstract System.Threading.Tasks.Task HandleSignOutAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties); } - public class SystemClock : Microsoft.AspNetCore.Authentication.ISystemClock { public SystemClock() => throw null; public System.DateTimeOffset UtcNow { get => throw null; } } - - public class TicketDataFormat : Microsoft.AspNetCore.Authentication.SecureDataFormat + public static class Base64UrlTextEncoder { - public TicketDataFormat(Microsoft.AspNetCore.DataProtection.IDataProtector protector) : base(default(Microsoft.AspNetCore.Authentication.IDataSerializer), default(Microsoft.AspNetCore.DataProtection.IDataProtector)) => throw null; + public static string Encode(byte[] data) => throw null; + public static byte[] Decode(string text) => throw null; } - - public class TicketReceivedContext : Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext + public class TicketDataFormat : Microsoft.AspNetCore.Authentication.SecureDataFormat { - public string ReturnUri { get => throw null; set => throw null; } - public TicketReceivedContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions options, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) : base(default(Microsoft.AspNetCore.Http.HttpContext), default(Microsoft.AspNetCore.Authentication.AuthenticationScheme), default(Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions), default(Microsoft.AspNetCore.Authentication.AuthenticationProperties)) => throw null; + public TicketDataFormat(Microsoft.AspNetCore.DataProtection.IDataProtector protector) : base(default(Microsoft.AspNetCore.Authentication.IDataSerializer), default(Microsoft.AspNetCore.DataProtection.IDataProtector)) => throw null; } - public class TicketSerializer : Microsoft.AspNetCore.Authentication.IDataSerializer { - public static Microsoft.AspNetCore.Authentication.TicketSerializer Default { get => throw null; } - public virtual Microsoft.AspNetCore.Authentication.AuthenticationTicket Deserialize(System.Byte[] data) => throw null; + public virtual byte[] Serialize(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationTicket Deserialize(byte[] data) => throw null; + public virtual void Write(System.IO.BinaryWriter writer, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; + protected virtual void WriteIdentity(System.IO.BinaryWriter writer, System.Security.Claims.ClaimsIdentity identity) => throw null; + protected virtual void WriteClaim(System.IO.BinaryWriter writer, System.Security.Claims.Claim claim) => throw null; public virtual Microsoft.AspNetCore.Authentication.AuthenticationTicket Read(System.IO.BinaryReader reader) => throw null; - protected virtual System.Security.Claims.Claim ReadClaim(System.IO.BinaryReader reader, System.Security.Claims.ClaimsIdentity identity) => throw null; protected virtual System.Security.Claims.ClaimsIdentity ReadIdentity(System.IO.BinaryReader reader) => throw null; - public virtual System.Byte[] Serialize(Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; + protected virtual System.Security.Claims.Claim ReadClaim(System.IO.BinaryReader reader, System.Security.Claims.ClaimsIdentity identity) => throw null; public TicketSerializer() => throw null; - public virtual void Write(System.IO.BinaryWriter writer, Microsoft.AspNetCore.Authentication.AuthenticationTicket ticket) => throw null; - protected virtual void WriteClaim(System.IO.BinaryWriter writer, System.Security.Claims.Claim claim) => throw null; - protected virtual void WriteIdentity(System.IO.BinaryWriter writer, System.Security.Claims.ClaimsIdentity identity) => throw null; + public static Microsoft.AspNetCore.Authentication.TicketSerializer Default { get => throw null; } } - } namespace Builder { - public static class AuthAppBuilderExtensions + public static partial class AuthAppBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAuthentication(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class AuthenticationServiceCollectionExtensions + public static partial class AuthenticationServiceCollectionExtensions { public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string defaultScheme) => throw null; + public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddAuthentication(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.Policy.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.Policy.cs index b222c2499b9a3..d26d9b159dfc7 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.Policy.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.Policy.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authorization.Policy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -13,78 +12,69 @@ public class AuthorizationMiddleware public AuthorizationMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.IServiceProvider services) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public interface IAuthorizationMiddlewareResultHandler { System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult authorizeResult); } - namespace Policy { public class AuthorizationMiddlewareResultHandler : Microsoft.AspNetCore.Authorization.IAuthorizationMiddlewareResultHandler { - public AuthorizationMiddlewareResultHandler() => throw null; public System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult authorizeResult) => throw null; + public AuthorizationMiddlewareResultHandler() => throw null; } - public interface IPolicyEvaluator { System.Threading.Tasks.Task AuthenticateAsync(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Http.HttpContext context); System.Threading.Tasks.Task AuthorizeAsync(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authentication.AuthenticateResult authenticationResult, Microsoft.AspNetCore.Http.HttpContext context, object resource); } - public class PolicyAuthorizationResult { - public Microsoft.AspNetCore.Authorization.AuthorizationFailure AuthorizationFailure { get => throw null; } public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Challenge() => throw null; - public bool Challenged { get => throw null; } public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Forbid() => throw null; public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Forbid(Microsoft.AspNetCore.Authorization.AuthorizationFailure authorizationFailure) => throw null; + public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Success() => throw null; + public bool Challenged { get => throw null; } public bool Forbidden { get => throw null; } public bool Succeeded { get => throw null; } - public static Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult Success() => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationFailure AuthorizationFailure { get => throw null; } } - public class PolicyEvaluator : Microsoft.AspNetCore.Authorization.Policy.IPolicyEvaluator { + public PolicyEvaluator(Microsoft.AspNetCore.Authorization.IAuthorizationService authorization) => throw null; public virtual System.Threading.Tasks.Task AuthenticateAsync(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Http.HttpContext context) => throw null; public virtual System.Threading.Tasks.Task AuthorizeAsync(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authentication.AuthenticateResult authenticationResult, Microsoft.AspNetCore.Http.HttpContext context, object resource) => throw null; - public PolicyEvaluator(Microsoft.AspNetCore.Authorization.IAuthorizationService authorization) => throw null; } - } } namespace Builder { - public static class AuthorizationAppBuilderExtensions + public static partial class AuthorizationAppBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAuthorization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static class AuthorizationEndpointConventionBuilderExtensions + public static partial class AuthorizationEndpointConventionBuilderExtensions { - public static TBuilder AllowAnonymous(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder RequireAuthorization(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder RequireAuthorization(this TBuilder builder, System.Action configurePolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder RequireAuthorization(this TBuilder builder, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder RequireAuthorization(this TBuilder builder, params Microsoft.AspNetCore.Authorization.IAuthorizeData[] authorizeData) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder RequireAuthorization(this TBuilder builder, params string[] policyNames) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder RequireAuthorization(this TBuilder builder, params Microsoft.AspNetCore.Authorization.IAuthorizeData[] authorizeData) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder RequireAuthorization(this TBuilder builder, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder RequireAuthorization(this TBuilder builder, System.Action configurePolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder AllowAnonymous(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class PolicyServiceCollectionExtensions + public static partial class PolicyServiceCollectionExtensions { - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; public static Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddAuthorizationBuilder(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorizationPolicyEvaluator(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.cs index 283e5ba164f71..f0fdfcd6bbdf6 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Authorization.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Authorization, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,266 +10,234 @@ public class AllowAnonymousAttribute : System.Attribute, Microsoft.AspNetCore.Au { public AllowAnonymousAttribute() => throw null; } - public class AuthorizationBuilder { - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddDefaultPolicy(string name, System.Action configurePolicy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddDefaultPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy(string name, System.Action configurePolicy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddPolicy(string name, System.Action configurePolicy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public AuthorizationBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public virtual Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder SetInvokeHandlersAfterFailure(bool invoke) => throw null; public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder SetDefaultPolicy(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder SetFallbackPolicy(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder SetInvokeHandlersAfterFailure(bool invoke) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddPolicy(string name, System.Action configurePolicy) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddDefaultPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddDefaultPolicy(string name, System.Action configurePolicy) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; + public virtual Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddFallbackPolicy(string name, System.Action configurePolicy) => throw null; + public virtual Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } } - public class AuthorizationFailure { public static Microsoft.AspNetCore.Authorization.AuthorizationFailure ExplicitFail() => throw null; - public bool FailCalled { get => throw null; } public static Microsoft.AspNetCore.Authorization.AuthorizationFailure Failed(System.Collections.Generic.IEnumerable reasons) => throw null; public static Microsoft.AspNetCore.Authorization.AuthorizationFailure Failed(System.Collections.Generic.IEnumerable failed) => throw null; + public bool FailCalled { get => throw null; } public System.Collections.Generic.IEnumerable FailedRequirements { get => throw null; } public System.Collections.Generic.IEnumerable FailureReasons { get => throw null; } } - public class AuthorizationFailureReason { public AuthorizationFailureReason(Microsoft.AspNetCore.Authorization.IAuthorizationHandler handler, string message) => throw null; - public Microsoft.AspNetCore.Authorization.IAuthorizationHandler Handler { get => throw null; } public string Message { get => throw null; } + public Microsoft.AspNetCore.Authorization.IAuthorizationHandler Handler { get => throw null; } } - - public abstract class AuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement + public abstract class AuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - protected AuthorizationHandler() => throw null; public virtual System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; - protected abstract System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement, TResource resource); + protected abstract System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement); + protected AuthorizationHandler() => throw null; } - - public abstract class AuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement + public abstract class AuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - protected AuthorizationHandler() => throw null; public virtual System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; - protected abstract System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement); + protected abstract System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement, TResource resource); + protected AuthorizationHandler() => throw null; } - public class AuthorizationHandlerContext { public AuthorizationHandlerContext(System.Collections.Generic.IEnumerable requirements, System.Security.Claims.ClaimsPrincipal user, object resource) => throw null; public virtual void Fail() => throw null; public virtual void Fail(Microsoft.AspNetCore.Authorization.AuthorizationFailureReason reason) => throw null; + public virtual void Succeed(Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement) => throw null; + public virtual System.Collections.Generic.IEnumerable Requirements { get => throw null; } + public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } + public virtual object Resource { get => throw null; } + public virtual System.Collections.Generic.IEnumerable PendingRequirements { get => throw null; } public virtual System.Collections.Generic.IEnumerable FailureReasons { get => throw null; } public virtual bool HasFailed { get => throw null; } public virtual bool HasSucceeded { get => throw null; } - public virtual System.Collections.Generic.IEnumerable PendingRequirements { get => throw null; } - public virtual System.Collections.Generic.IEnumerable Requirements { get => throw null; } - public virtual object Resource { get => throw null; } - public virtual void Succeed(Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement) => throw null; - public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } } - public class AuthorizationOptions { - public void AddPolicy(string name, System.Action configurePolicy) => throw null; public void AddPolicy(string name, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public AuthorizationOptions() => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicy DefaultPolicy { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authorization.AuthorizationPolicy FallbackPolicy { get => throw null; set => throw null; } + public void AddPolicy(string name, System.Action configurePolicy) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicy GetPolicy(string name) => throw null; - public bool InvokeHandlersAfterFailure { get => throw null; set => throw null; } + public AuthorizationOptions() => throw null; + public bool InvokeHandlersAfterFailure { get => throw null; set { } } + public Microsoft.AspNetCore.Authorization.AuthorizationPolicy DefaultPolicy { get => throw null; set { } } + public Microsoft.AspNetCore.Authorization.AuthorizationPolicy FallbackPolicy { get => throw null; set { } } } - public class AuthorizationPolicy { - public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; } public AuthorizationPolicy(System.Collections.Generic.IEnumerable requirements, System.Collections.Generic.IEnumerable authenticationSchemes) => throw null; - public static Microsoft.AspNetCore.Authorization.AuthorizationPolicy Combine(System.Collections.Generic.IEnumerable policies) => throw null; public static Microsoft.AspNetCore.Authorization.AuthorizationPolicy Combine(params Microsoft.AspNetCore.Authorization.AuthorizationPolicy[] policies) => throw null; + public static Microsoft.AspNetCore.Authorization.AuthorizationPolicy Combine(System.Collections.Generic.IEnumerable policies) => throw null; public static System.Threading.Tasks.Task CombineAsync(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable authorizeData) => throw null; public static System.Threading.Tasks.Task CombineAsync(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable authorizeData, System.Collections.Generic.IEnumerable policies) => throw null; public System.Collections.Generic.IReadOnlyList Requirements { get => throw null; } + public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; } } - public class AuthorizationPolicyBuilder { + public AuthorizationPolicyBuilder(params string[] authenticationSchemes) => throw null; + public AuthorizationPolicyBuilder(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder AddAuthenticationSchemes(params string[] schemes) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder AddRequirements(params Microsoft.AspNetCore.Authorization.IAuthorizationRequirement[] requirements) => throw null; - public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set => throw null; } - public AuthorizationPolicyBuilder(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public AuthorizationPolicyBuilder(params string[] authenticationSchemes) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicy Build() => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder Combine(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion(System.Func> handler) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion(System.Func handler) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAuthenticatedUser() => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim(string claimType) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim(string claimType, System.Collections.Generic.IEnumerable allowedValues) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim(string claimType, params string[] allowedValues) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireRole(System.Collections.Generic.IEnumerable roles) => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim(string claimType, System.Collections.Generic.IEnumerable allowedValues) => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireClaim(string claimType) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireRole(params string[] roles) => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireRole(System.Collections.Generic.IEnumerable roles) => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireUserName(string userName) => throw null; - public System.Collections.Generic.IList Requirements { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAuthenticatedUser() => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion(System.Func handler) => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder RequireAssertion(System.Func> handler) => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationPolicy Build() => throw null; + public System.Collections.Generic.IList Requirements { get => throw null; set { } } + public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set { } } } - public class AuthorizationResult { - public static Microsoft.AspNetCore.Authorization.AuthorizationResult Failed() => throw null; + public static Microsoft.AspNetCore.Authorization.AuthorizationResult Success() => throw null; public static Microsoft.AspNetCore.Authorization.AuthorizationResult Failed(Microsoft.AspNetCore.Authorization.AuthorizationFailure failure) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationFailure Failure { get => throw null; } + public static Microsoft.AspNetCore.Authorization.AuthorizationResult Failed() => throw null; public bool Succeeded { get => throw null; } - public static Microsoft.AspNetCore.Authorization.AuthorizationResult Success() => throw null; + public Microsoft.AspNetCore.Authorization.AuthorizationFailure Failure { get => throw null; } } - - public static class AuthorizationServiceExtensions + public static partial class AuthorizationServiceExtensions { - public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; - public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement requirement) => throw null; + public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, object resource, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; + public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public static System.Threading.Tasks.Task AuthorizeAsync(this Microsoft.AspNetCore.Authorization.IAuthorizationService service, System.Security.Claims.ClaimsPrincipal user, string policyName) => throw null; } - public class AuthorizeAttribute : System.Attribute, Microsoft.AspNetCore.Authorization.IAuthorizeData { - public string AuthenticationSchemes { get => throw null; set => throw null; } public AuthorizeAttribute() => throw null; public AuthorizeAttribute(string policy) => throw null; - public string Policy { get => throw null; set => throw null; } - public string Roles { get => throw null; set => throw null; } + public string Policy { get => throw null; set { } } + public string Roles { get => throw null; set { } } + public string AuthenticationSchemes { get => throw null; set { } } } - public class DefaultAuthorizationEvaluator : Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator { - public DefaultAuthorizationEvaluator() => throw null; public Microsoft.AspNetCore.Authorization.AuthorizationResult Evaluate(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; + public DefaultAuthorizationEvaluator() => throw null; } - public class DefaultAuthorizationHandlerContextFactory : Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory { public virtual Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext CreateContext(System.Collections.Generic.IEnumerable requirements, System.Security.Claims.ClaimsPrincipal user, object resource) => throw null; public DefaultAuthorizationHandlerContextFactory() => throw null; } - public class DefaultAuthorizationHandlerProvider : Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider { public DefaultAuthorizationHandlerProvider(System.Collections.Generic.IEnumerable handlers) => throw null; public System.Threading.Tasks.Task> GetHandlersAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; } - public class DefaultAuthorizationPolicyProvider : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider { - public virtual bool AllowsCachingPolicies { get => throw null; } public DefaultAuthorizationPolicyProvider(Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task GetDefaultPolicyAsync() => throw null; public System.Threading.Tasks.Task GetFallbackPolicyAsync() => throw null; public virtual System.Threading.Tasks.Task GetPolicyAsync(string policyName) => throw null; + public virtual bool AllowsCachingPolicies { get => throw null; } } - public class DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationService { + public DefaultAuthorizationService(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider handlers, Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory contextFactory, Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator evaluator, Microsoft.Extensions.Options.IOptions options) => throw null; public virtual System.Threading.Tasks.Task AuthorizeAsync(System.Security.Claims.ClaimsPrincipal user, object resource, System.Collections.Generic.IEnumerable requirements) => throw null; public virtual System.Threading.Tasks.Task AuthorizeAsync(System.Security.Claims.ClaimsPrincipal user, object resource, string policyName) => throw null; - public DefaultAuthorizationService(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider handlers, Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory contextFactory, Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator evaluator, Microsoft.Extensions.Options.IOptions options) => throw null; } - public interface IAuthorizationEvaluator { Microsoft.AspNetCore.Authorization.AuthorizationResult Evaluate(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context); } - public interface IAuthorizationHandler { System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context); } - public interface IAuthorizationHandlerContextFactory { Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext CreateContext(System.Collections.Generic.IEnumerable requirements, System.Security.Claims.ClaimsPrincipal user, object resource); } - public interface IAuthorizationHandlerProvider { System.Threading.Tasks.Task> GetHandlersAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context); } - public interface IAuthorizationPolicyProvider { - bool AllowsCachingPolicies { get => throw null; } + System.Threading.Tasks.Task GetPolicyAsync(string policyName); System.Threading.Tasks.Task GetDefaultPolicyAsync(); System.Threading.Tasks.Task GetFallbackPolicyAsync(); - System.Threading.Tasks.Task GetPolicyAsync(string policyName); + virtual bool AllowsCachingPolicies { get => throw null; } } - public interface IAuthorizationRequirement { } - public interface IAuthorizationService { System.Threading.Tasks.Task AuthorizeAsync(System.Security.Claims.ClaimsPrincipal user, object resource, System.Collections.Generic.IEnumerable requirements); System.Threading.Tasks.Task AuthorizeAsync(System.Security.Claims.ClaimsPrincipal user, object resource, string policyName); } - namespace Infrastructure { public class AssertionRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - public AssertionRequirement(System.Func> handler) => throw null; public AssertionRequirement(System.Func handler) => throw null; + public AssertionRequirement(System.Func> handler) => throw null; public System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; - public System.Func> Handler { get => throw null; } public override string ToString() => throw null; + public System.Func> Handler { get => throw null; } } - public class ClaimsAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - public System.Collections.Generic.IEnumerable AllowedValues { get => throw null; } - public string ClaimType { get => throw null; } public ClaimsAuthorizationRequirement(string claimType, System.Collections.Generic.IEnumerable allowedValues) => throw null; protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.ClaimsAuthorizationRequirement requirement) => throw null; public override string ToString() => throw null; + public string ClaimType { get => throw null; } + public System.Collections.Generic.IEnumerable AllowedValues { get => throw null; } } - public class DenyAnonymousAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - public DenyAnonymousAuthorizationRequirement() => throw null; protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.DenyAnonymousAuthorizationRequirement requirement) => throw null; public override string ToString() => throw null; + public DenyAnonymousAuthorizationRequirement() => throw null; } - public class NameAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.NameAuthorizationRequirement requirement) => throw null; public NameAuthorizationRequirement(string requiredName) => throw null; - public string RequiredName { get => throw null; } + protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.NameAuthorizationRequirement requirement) => throw null; public override string ToString() => throw null; + public string RequiredName { get => throw null; } } - public class OperationAuthorizationRequirement : Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - public string Name { get => throw null; set => throw null; } - public OperationAuthorizationRequirement() => throw null; public override string ToString() => throw null; + public OperationAuthorizationRequirement() => throw null; + public string Name { get => throw null; set { } } } - public class PassThroughAuthorizationHandler : Microsoft.AspNetCore.Authorization.IAuthorizationHandler { - public System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; public PassThroughAuthorizationHandler() => throw null; public PassThroughAuthorizationHandler(Microsoft.Extensions.Options.IOptions options) => throw null; + public System.Threading.Tasks.Task HandleAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context) => throw null; } - public class RolesAuthorizationRequirement : Microsoft.AspNetCore.Authorization.AuthorizationHandler, Microsoft.AspNetCore.Authorization.IAuthorizationRequirement { - public System.Collections.Generic.IEnumerable AllowedRoles { get => throw null; } - protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement requirement) => throw null; public RolesAuthorizationRequirement(System.Collections.Generic.IEnumerable allowedRoles) => throw null; + protected override System.Threading.Tasks.Task HandleRequirementAsync(Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.RolesAuthorizationRequirement requirement) => throw null; public override string ToString() => throw null; + public System.Collections.Generic.IEnumerable AllowedRoles { get => throw null; } } - } } } @@ -278,12 +245,11 @@ namespace Extensions { namespace DependencyInjection { - public static class AuthorizationServiceCollectionExtensions + public static partial class AuthorizationServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorizationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorizationCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Authorization.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Authorization.cs index ab4f39e2d8bda..da2bd373bb48e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Authorization.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Authorization.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Components.Authorization, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -14,61 +13,53 @@ public class AuthenticationState public AuthenticationState(System.Security.Claims.ClaimsPrincipal user) => throw null; public System.Security.Claims.ClaimsPrincipal User { get => throw null; } } - - public delegate void AuthenticationStateChangedHandler(System.Threading.Tasks.Task task); - public abstract class AuthenticationStateProvider { - public event Microsoft.AspNetCore.Components.Authorization.AuthenticationStateChangedHandler AuthenticationStateChanged; - protected AuthenticationStateProvider() => throw null; public abstract System.Threading.Tasks.Task GetAuthenticationStateAsync(); protected void NotifyAuthenticationStateChanged(System.Threading.Tasks.Task task) => throw null; + protected AuthenticationStateProvider() => throw null; + public event Microsoft.AspNetCore.Components.Authorization.AuthenticationStateChangedHandler AuthenticationStateChanged { add { } remove { } } } - - public class AuthorizeRouteView : Microsoft.AspNetCore.Components.RouteView + public delegate void AuthenticationStateChangedHandler(System.Threading.Tasks.Task task); + public sealed class AuthorizeRouteView : Microsoft.AspNetCore.Components.RouteView { public AuthorizeRouteView() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment Authorizing { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { get => throw null; set => throw null; } protected override void Render(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public object Resource { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Authorizing { get => throw null; set { } } + public object Resource { get => throw null; set { } } } - public class AuthorizeView : Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore { public AuthorizeView() => throw null; protected override Microsoft.AspNetCore.Authorization.IAuthorizeData[] GetAuthorizeData() => throw null; - public string Policy { get => throw null; set => throw null; } - public string Roles { get => throw null; set => throw null; } + public string Policy { get => throw null; set { } } + public string Roles { get => throw null; set { } } } - public abstract class AuthorizeViewCore : Microsoft.AspNetCore.Components.ComponentBase { - protected AuthorizeViewCore() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment Authorized { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.RenderFragment Authorizing { get => throw null; set => throw null; } protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - protected abstract Microsoft.AspNetCore.Authorization.IAuthorizeData[] GetAuthorizeData(); - public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { get => throw null; set => throw null; } protected override System.Threading.Tasks.Task OnParametersSetAsync() => throw null; - public object Resource { get => throw null; set => throw null; } + protected abstract Microsoft.AspNetCore.Authorization.IAuthorizeData[] GetAuthorizeData(); + protected AuthorizeViewCore() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Authorized { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Authorizing { get => throw null; set { } } + public object Resource { get => throw null; set { } } + } + public interface IHostEnvironmentAuthenticationStateProvider + { + void SetAuthenticationState(System.Threading.Tasks.Task authenticationStateTask); } - public class CascadingAuthenticationState : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) => throw null; - public CascadingAuthenticationState() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - void System.IDisposable.Dispose() => throw null; protected override void OnInitialized() => throw null; + void System.IDisposable.Dispose() => throw null; + public CascadingAuthenticationState() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } } - - public interface IHostEnvironmentAuthenticationStateProvider - { - void SetAuthenticationState(System.Threading.Tasks.Task authenticationStateTask); - } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Forms.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Forms.cs index 41a3ef373fcb7..6fd805348da91 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Forms.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Forms.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Components.Forms, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,94 +10,84 @@ namespace Forms { public class DataAnnotationsValidator : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public DataAnnotationsValidator() => throw null; - void System.IDisposable.Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; protected override void OnInitialized() => throw null; protected override void OnParametersSet() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + void System.IDisposable.Dispose() => throw null; + public DataAnnotationsValidator() => throw null; } - - public class EditContext + public sealed class EditContext { public EditContext(object model) => throw null; public Microsoft.AspNetCore.Components.Forms.FieldIdentifier Field(string fieldName) => throw null; + public void NotifyFieldChanged(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; + public void NotifyValidationStateChanged() => throw null; + public void MarkAsUnmodified(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; + public void MarkAsUnmodified() => throw null; + public bool IsModified() => throw null; public System.Collections.Generic.IEnumerable GetValidationMessages() => throw null; - public System.Collections.Generic.IEnumerable GetValidationMessages(System.Linq.Expressions.Expression> accessor) => throw null; public System.Collections.Generic.IEnumerable GetValidationMessages(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; - public bool IsModified() => throw null; + public System.Collections.Generic.IEnumerable GetValidationMessages(System.Linq.Expressions.Expression> accessor) => throw null; + public bool IsModified(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public bool IsModified(System.Linq.Expressions.Expression> accessor) => throw null; - public bool IsModified(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; - public void MarkAsUnmodified() => throw null; - public void MarkAsUnmodified(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; + public bool Validate() => throw null; public object Model { get => throw null; } - public void NotifyFieldChanged(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; - public void NotifyValidationStateChanged() => throw null; - public event System.EventHandler OnFieldChanged; - public event System.EventHandler OnValidationRequested; - public event System.EventHandler OnValidationStateChanged; public Microsoft.AspNetCore.Components.Forms.EditContextProperties Properties { get => throw null; } - public bool Validate() => throw null; + public event System.EventHandler OnFieldChanged { add { } remove { } } + public event System.EventHandler OnValidationRequested { add { } remove { } } + public event System.EventHandler OnValidationStateChanged { add { } remove { } } } - - public static class EditContextDataAnnotationsExtensions + public static partial class EditContextDataAnnotationsExtensions { public static Microsoft.AspNetCore.Components.Forms.EditContext AddDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext) => throw null; public static System.IDisposable EnableDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext) => throw null; public static System.IDisposable EnableDataAnnotationsValidation(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.IServiceProvider serviceProvider) => throw null; } - - public class EditContextProperties + public sealed class EditContextProperties { - public EditContextProperties() => throw null; - public object this[object key] { get => throw null; set => throw null; } - public bool Remove(object key) => throw null; public bool TryGetValue(object key, out object value) => throw null; + public bool Remove(object key) => throw null; + public EditContextProperties() => throw null; + public object this[object key] { get => throw null; set { } } } - - public class FieldChangedEventArgs : System.EventArgs + public sealed class FieldChangedEventArgs : System.EventArgs { - public FieldChangedEventArgs(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; + public FieldChangedEventArgs(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public Microsoft.AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get => throw null; } } - public struct FieldIdentifier : System.IEquatable { public static Microsoft.AspNetCore.Components.Forms.FieldIdentifier Create(System.Linq.Expressions.Expression> accessor) => throw null; - public bool Equals(Microsoft.AspNetCore.Components.Forms.FieldIdentifier otherIdentifier) => throw null; - public override bool Equals(object obj) => throw null; - // Stub generator skipped constructor public FieldIdentifier(object model, string fieldName) => throw null; - public string FieldName { get => throw null; } public override int GetHashCode() => throw null; + public override bool Equals(object obj) => throw null; + public bool Equals(Microsoft.AspNetCore.Components.Forms.FieldIdentifier otherIdentifier) => throw null; public object Model { get => throw null; } + public string FieldName { get => throw null; } } - - public class ValidationMessageStore + public sealed class ValidationMessageStore { - public void Add(System.Linq.Expressions.Expression> accessor, System.Collections.Generic.IEnumerable messages) => throw null; + public ValidationMessageStore(Microsoft.AspNetCore.Components.Forms.EditContext editContext) => throw null; + public void Add(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, string message) => throw null; public void Add(System.Linq.Expressions.Expression> accessor, string message) => throw null; - public void Add(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Collections.Generic.IEnumerable messages) => throw null; - public void Add(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, string message) => throw null; + public void Add(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier, System.Collections.Generic.IEnumerable messages) => throw null; + public void Add(System.Linq.Expressions.Expression> accessor, System.Collections.Generic.IEnumerable messages) => throw null; public void Clear() => throw null; public void Clear(System.Linq.Expressions.Expression> accessor) => throw null; - public void Clear(Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; - public System.Collections.Generic.IEnumerable this[System.Linq.Expressions.Expression> accessor] { get => throw null; } + public void Clear(in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public System.Collections.Generic.IEnumerable this[Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier] { get => throw null; } - public ValidationMessageStore(Microsoft.AspNetCore.Components.Forms.EditContext editContext) => throw null; + public System.Collections.Generic.IEnumerable this[System.Linq.Expressions.Expression> accessor] { get => throw null; } } - - public class ValidationRequestedEventArgs : System.EventArgs + public sealed class ValidationRequestedEventArgs : System.EventArgs { public static Microsoft.AspNetCore.Components.Forms.ValidationRequestedEventArgs Empty; public ValidationRequestedEventArgs() => throw null; } - - public class ValidationStateChangedEventArgs : System.EventArgs + public sealed class ValidationStateChangedEventArgs : System.EventArgs { public static Microsoft.AspNetCore.Components.Forms.ValidationStateChangedEventArgs Empty; public ValidationStateChangedEventArgs() => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Server.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Server.cs index 7a6d1d8d57751..8f631f94a85c5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Server.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Server.cs @@ -1,112 +1,97 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Components.Server, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public class ComponentEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder, Microsoft.AspNetCore.Builder.IHubEndpointConventionBuilder + public sealed class ComponentEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IHubEndpointConventionBuilder, Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; } - - public static class ComponentEndpointRouteBuilderExtensions + public static partial class ComponentEndpointRouteBuilderExtensions { public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) => throw null; - public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path) => throw null; + public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Builder.ComponentEndpointConventionBuilder MapBlazorHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path, System.Action configureOptions) => throw null; } - } namespace Components { namespace Server { - public class CircuitOptions + public sealed class CircuitOptions { public CircuitOptions() => throw null; - public bool DetailedErrors { get => throw null; set => throw null; } - public int DisconnectedCircuitMaxRetained { get => throw null; set => throw null; } - public System.TimeSpan DisconnectedCircuitRetentionPeriod { get => throw null; set => throw null; } - public System.TimeSpan JSInteropDefaultCallTimeout { get => throw null; set => throw null; } - public int MaxBufferedUnacknowledgedRenderBatches { get => throw null; set => throw null; } + public int DisconnectedCircuitMaxRetained { get => throw null; set { } } + public System.TimeSpan DisconnectedCircuitRetentionPeriod { get => throw null; set { } } + public bool DetailedErrors { get => throw null; set { } } + public System.TimeSpan JSInteropDefaultCallTimeout { get => throw null; set { } } + public int MaxBufferedUnacknowledgedRenderBatches { get => throw null; set { } } public Microsoft.AspNetCore.Components.Server.CircuitRootComponentOptions RootComponents { get => throw null; } } - public class CircuitRootComponentOptions : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration { public CircuitRootComponentOptions() => throw null; public Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore JSComponents { get => throw null; } - public int MaxJSRootComponents { get => throw null; set => throw null; } + public int MaxJSRootComponents { get => throw null; set { } } } - public abstract class RevalidatingServerAuthenticationStateProvider : Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider, System.IDisposable { + public RevalidatingServerAuthenticationStateProvider(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + protected abstract System.Threading.Tasks.Task ValidateAuthenticationStateAsync(Microsoft.AspNetCore.Components.Authorization.AuthenticationState authenticationState, System.Threading.CancellationToken cancellationToken); void System.IDisposable.Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public RevalidatingServerAuthenticationStateProvider(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; protected abstract System.TimeSpan RevalidationInterval { get; } - protected abstract System.Threading.Tasks.Task ValidateAuthenticationStateAsync(Microsoft.AspNetCore.Components.Authorization.AuthenticationState authenticationState, System.Threading.CancellationToken cancellationToken); } - public class ServerAuthenticationStateProvider : Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider, Microsoft.AspNetCore.Components.Authorization.IHostEnvironmentAuthenticationStateProvider { public override System.Threading.Tasks.Task GetAuthenticationStateAsync() => throw null; - public ServerAuthenticationStateProvider() => throw null; public void SetAuthenticationState(System.Threading.Tasks.Task authenticationStateTask) => throw null; + public ServerAuthenticationStateProvider() => throw null; } - namespace Circuits { - public class Circuit + public sealed class Circuit { public string Id { get => throw null; } } - public abstract class CircuitHandler { - protected CircuitHandler() => throw null; - public virtual System.Threading.Tasks.Task OnCircuitClosedAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; public virtual System.Threading.Tasks.Task OnCircuitOpenedAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task OnConnectionDownAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; public virtual System.Threading.Tasks.Task OnConnectionUpAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task OnConnectionDownAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task OnCircuitClosedAsync(Microsoft.AspNetCore.Components.Server.Circuits.Circuit circuit, System.Threading.CancellationToken cancellationToken) => throw null; + protected CircuitHandler() => throw null; public virtual int Order { get => throw null; } } - } namespace ProtectedBrowserStorage { public abstract class ProtectedBrowserStorage { - public System.Threading.Tasks.ValueTask DeleteAsync(string key) => throw null; - public System.Threading.Tasks.ValueTask> GetAsync(string key) => throw null; - public System.Threading.Tasks.ValueTask> GetAsync(string purpose, string key) => throw null; - protected private ProtectedBrowserStorage(string storeName, Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider) => throw null; public System.Threading.Tasks.ValueTask SetAsync(string key, object value) => throw null; public System.Threading.Tasks.ValueTask SetAsync(string purpose, string key, object value) => throw null; + public System.Threading.Tasks.ValueTask> GetAsync(string key) => throw null; + public System.Threading.Tasks.ValueTask> GetAsync(string purpose, string key) => throw null; + public System.Threading.Tasks.ValueTask DeleteAsync(string key) => throw null; } - public struct ProtectedBrowserStorageResult { - // Stub generator skipped constructor public bool Success { get => throw null; } public TValue Value { get => throw null; } } - - public class ProtectedLocalStorage : Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.ProtectedBrowserStorage + public sealed class ProtectedLocalStorage : Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.ProtectedBrowserStorage { - public ProtectedLocalStorage(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider) : base(default(string), default(Microsoft.JSInterop.IJSRuntime), default(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider)) => throw null; + public ProtectedLocalStorage(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider) => throw null; } - - public class ProtectedSessionStorage : Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.ProtectedBrowserStorage + public sealed class ProtectedSessionStorage : Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage.ProtectedBrowserStorage { - public ProtectedSessionStorage(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider) : base(default(string), default(Microsoft.JSInterop.IJSRuntime), default(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider)) => throw null; + public ProtectedSessionStorage(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider) => throw null; } - } } } @@ -115,22 +100,19 @@ namespace Extensions { namespace DependencyInjection { - public static class ComponentServiceCollectionExtensions + public static partial class ComponentServiceCollectionExtensions { - public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddServerSideBlazor(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure = default(System.Action)) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddServerSideBlazor(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - public interface IServerSideBlazorBuilder { Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - - public static class ServerSideBlazorBuilderExtensions + public static partial class ServerSideBlazorBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddCircuitOptions(this Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddHubOptions(this Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder builder, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Web.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Web.cs index 49c2bd9fadd23..580c29a03e219 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Web.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.Web.cs @@ -1,592 +1,520 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Components.Web, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Components { - public class BindInputElementAttribute : System.Attribute + public sealed class BindInputElementAttribute : System.Attribute { public BindInputElementAttribute(string type, string suffix, string valueAttribute, string changeAttribute, bool isInvariantCulture, string format) => throw null; - public string ChangeAttribute { get => throw null; } - public string Format { get => throw null; } - public bool IsInvariantCulture { get => throw null; } - public string Suffix { get => throw null; } public string Type { get => throw null; } + public string Suffix { get => throw null; } public string ValueAttribute { get => throw null; } + public string ChangeAttribute { get => throw null; } + public bool IsInvariantCulture { get => throw null; } + public string Format { get => throw null; } } - - public static class ElementReferenceExtensions + public static partial class ElementReferenceExtensions { public static System.Threading.Tasks.ValueTask FocusAsync(this Microsoft.AspNetCore.Components.ElementReference elementReference) => throw null; public static System.Threading.Tasks.ValueTask FocusAsync(this Microsoft.AspNetCore.Components.ElementReference elementReference, bool preventScroll) => throw null; } - public class WebElementReferenceContext : Microsoft.AspNetCore.Components.ElementReferenceContext { public WebElementReferenceContext(Microsoft.JSInterop.IJSRuntime jsRuntime) => throw null; } - namespace Forms { - public static class BrowserFileExtensions - { - public static System.Threading.Tasks.ValueTask RequestImageFileAsync(this Microsoft.AspNetCore.Components.Forms.IBrowserFile browserFile, string format, int maxWidth, int maxHeight) => throw null; - } - - public static class EditContextFieldClassExtensions + public static partial class EditContextFieldClassExtensions { - public static string FieldCssClass(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public static string FieldCssClass(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.Linq.Expressions.Expression> accessor) => throw null; + public static string FieldCssClass(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public static void SetFieldCssClassProvider(this Microsoft.AspNetCore.Components.Forms.EditContext editContext, Microsoft.AspNetCore.Components.Forms.FieldCssClassProvider fieldCssClassProvider) => throw null; } - public class EditForm : Microsoft.AspNetCore.Components.ComponentBase { - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.Forms.EditContext EditContext { get => throw null; set => throw null; } public EditForm() => throw null; - public object Model { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.EventCallback OnInvalidSubmit { get => throw null; set => throw null; } protected override void OnParametersSet() => throw null; - public Microsoft.AspNetCore.Components.EventCallback OnSubmit { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.EventCallback OnValidSubmit { get => throw null; set => throw null; } + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Forms.EditContext EditContext { get => throw null; set { } } + public object Model { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.EventCallback OnSubmit { get => throw null; set { } } + public Microsoft.AspNetCore.Components.EventCallback OnValidSubmit { get => throw null; set { } } + public Microsoft.AspNetCore.Components.EventCallback OnInvalidSubmit { get => throw null; set { } } } - public class FieldCssClassProvider { + public virtual string GetFieldCssClass(Microsoft.AspNetCore.Components.Forms.EditContext editContext, in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; public FieldCssClassProvider() => throw null; - public virtual string GetFieldCssClass(Microsoft.AspNetCore.Components.Forms.EditContext editContext, Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier) => throw null; } - - public interface IBrowserFile - { - string ContentType { get; } - System.DateTimeOffset LastModified { get; } - string Name { get; } - System.IO.Stream OpenReadStream(System.Int64 maxAllowedSize = default(System.Int64), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Int64 Size { get; } - } - - internal interface IInputFileJsCallbacks - { - } - public abstract class InputBase : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } - protected string CssClass { get => throw null; } - protected TValue CurrentValue { get => throw null; set => throw null; } - protected string CurrentValueAsString { get => throw null; set => throw null; } - public string DisplayName { get => throw null; set => throw null; } - void System.IDisposable.Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - protected Microsoft.AspNetCore.Components.Forms.EditContext EditContext { get => throw null; set => throw null; } - protected internal Microsoft.AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get => throw null; set => throw null; } - protected virtual string FormatValueAsString(TValue value) => throw null; protected InputBase() => throw null; - public override System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + protected virtual string FormatValueAsString(TValue value) => throw null; protected abstract bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage); - public TValue Value { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.EventCallback ValueChanged { get => throw null; set => throw null; } - public System.Linq.Expressions.Expression> ValueExpression { get => throw null; set => throw null; } + public override System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + protected virtual void Dispose(bool disposing) => throw null; + void System.IDisposable.Dispose() => throw null; + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } + public TValue Value { get => throw null; set { } } + public Microsoft.AspNetCore.Components.EventCallback ValueChanged { get => throw null; set { } } + public System.Linq.Expressions.Expression> ValueExpression { get => throw null; set { } } + public string DisplayName { get => throw null; set { } } + protected Microsoft.AspNetCore.Components.Forms.EditContext EditContext { get => throw null; set { } } + protected Microsoft.AspNetCore.Components.Forms.FieldIdentifier FieldIdentifier { get => throw null; set { } } + protected TValue CurrentValue { get => throw null; set { } } + protected string CurrentValueAsString { get => throw null; set { } } + protected string CssClass { get => throw null; } } - public class InputCheckbox : Microsoft.AspNetCore.Components.Forms.InputBase { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } - public InputCheckbox() => throw null; protected override bool TryParseValueFromString(string value, out bool result, out string validationErrorMessage) => throw null; + public InputCheckbox() => throw null; + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - public class InputDate : Microsoft.AspNetCore.Components.Forms.InputBase { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } - protected override string FormatValueAsString(TValue value) => throw null; public InputDate() => throw null; protected override void OnParametersSet() => throw null; - public string ParsingErrorMessage { get => throw null; set => throw null; } + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + protected override string FormatValueAsString(TValue value) => throw null; protected override bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage) => throw null; - public Microsoft.AspNetCore.Components.Forms.InputDateType Type { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Components.Forms.InputDateType Type { get => throw null; set { } } + public string ParsingErrorMessage { get => throw null; set { } } + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - - public enum InputDateType : int + public enum InputDateType { Date = 0, DateTimeLocal = 1, Month = 2, Time = 3, } - public class InputFile : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public System.Collections.Generic.IDictionary AdditionalAttributes { get => throw null; set => throw null; } + protected override void OnInitialized() => throw null; + protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; void System.IDisposable.Dispose() => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } public InputFile() => throw null; - protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; - public Microsoft.AspNetCore.Components.EventCallback OnChange { get => throw null; set => throw null; } - protected override void OnInitialized() => throw null; + public Microsoft.AspNetCore.Components.EventCallback OnChange { get => throw null; set { } } + public System.Collections.Generic.IDictionary AdditionalAttributes { get => throw null; set { } } + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - - public class InputFileChangeEventArgs : System.EventArgs + public static partial class BrowserFileExtensions + { + public static System.Threading.Tasks.ValueTask RequestImageFileAsync(this Microsoft.AspNetCore.Components.Forms.IBrowserFile browserFile, string format, int maxWidth, int maxHeight) => throw null; + } + public interface IBrowserFile + { + System.IO.Stream OpenReadStream(long maxAllowedSize, System.Threading.CancellationToken cancellationToken); + string Name { get; } + System.DateTimeOffset LastModified { get; } + long Size { get; } + string ContentType { get; } + } + public sealed class InputFileChangeEventArgs : System.EventArgs { - public Microsoft.AspNetCore.Components.Forms.IBrowserFile File { get => throw null; } - public int FileCount { get => throw null; } - public System.Collections.Generic.IReadOnlyList GetMultipleFiles(int maximumFileCount = default(int)) => throw null; public InputFileChangeEventArgs(System.Collections.Generic.IReadOnlyList files) => throw null; + public System.Collections.Generic.IReadOnlyList GetMultipleFiles(int maximumFileCount) => throw null; + public int FileCount { get => throw null; } + public Microsoft.AspNetCore.Components.Forms.IBrowserFile File { get => throw null; } + } + public class RemoteBrowserFileStreamOptions + { + public RemoteBrowserFileStreamOptions() => throw null; + public int MaxSegmentSize { get => throw null; set { } } + public int MaxBufferSize { get => throw null; set { } } + public System.TimeSpan SegmentFetchTimeout { get => throw null; set { } } } - public class InputNumber : Microsoft.AspNetCore.Components.Forms.InputBase { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } + protected override bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage) => throw null; protected override string FormatValueAsString(TValue value) => throw null; public InputNumber() => throw null; - public string ParsingErrorMessage { get => throw null; set => throw null; } - protected override bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage) => throw null; + public string ParsingErrorMessage { get => throw null; set { } } + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - public class InputRadio : Microsoft.AspNetCore.Components.ComponentBase { - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } + protected override void OnParametersSet() => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } public InputRadio() => throw null; - public string Name { get => throw null; set => throw null; } - protected override void OnParametersSet() => throw null; - public TValue Value { get => throw null; set => throw null; } + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } + public TValue Value { get => throw null; set { } } + public string Name { get => throw null; set { } } + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - public class InputRadioGroup : Microsoft.AspNetCore.Components.Forms.InputBase { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public InputRadioGroup() => throw null; - public string Name { get => throw null; set => throw null; } protected override void OnParametersSet() => throw null; + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; protected override bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage) => throw null; + public InputRadioGroup() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public string Name { get => throw null; set { } } } - public class InputSelect : Microsoft.AspNetCore.Components.Forms.InputBase { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } - protected override string FormatValueAsString(TValue value) => throw null; public InputSelect() => throw null; + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; protected override bool TryParseValueFromString(string value, out TValue result, out string validationErrorMessage) => throw null; + protected override string FormatValueAsString(TValue value) => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - public class InputText : Microsoft.AspNetCore.Components.Forms.InputBase { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } - public InputText() => throw null; protected override bool TryParseValueFromString(string value, out string result, out string validationErrorMessage) => throw null; + public InputText() => throw null; + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - public class InputTextArea : Microsoft.AspNetCore.Components.Forms.InputBase { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set => throw null; } - public InputTextArea() => throw null; protected override bool TryParseValueFromString(string value, out string result, out string validationErrorMessage) => throw null; + public InputTextArea() => throw null; + public Microsoft.AspNetCore.Components.ElementReference? Element { get => throw null; set { } } } - - public class RemoteBrowserFileStreamOptions - { - public int MaxBufferSize { get => throw null; set => throw null; } - public int MaxSegmentSize { get => throw null; set => throw null; } - public RemoteBrowserFileStreamOptions() => throw null; - public System.TimeSpan SegmentFetchTimeout { get => throw null; set => throw null; } - } - public class ValidationMessage : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } + public ValidationMessage() => throw null; + protected override void OnParametersSet() => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - void System.IDisposable.Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public System.Linq.Expressions.Expression> For { get => throw null; set => throw null; } - protected override void OnParametersSet() => throw null; - public ValidationMessage() => throw null; + void System.IDisposable.Dispose() => throw null; + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } + public System.Linq.Expressions.Expression> For { get => throw null; set { } } } - public class ValidationSummary : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } + public ValidationSummary() => throw null; + protected override void OnParametersSet() => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - void System.IDisposable.Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public object Model { get => throw null; set => throw null; } - protected override void OnParametersSet() => throw null; - public ValidationSummary() => throw null; + void System.IDisposable.Dispose() => throw null; + public object Model { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } } - } namespace RenderTree { - public class WebEventDescriptor + public sealed class WebEventDescriptor { - public Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo EventFieldInfo { get => throw null; set => throw null; } - public System.UInt64 EventHandlerId { get => throw null; set => throw null; } - public string EventName { get => throw null; set => throw null; } public WebEventDescriptor() => throw null; + public ulong EventHandlerId { get => throw null; set { } } + public string EventName { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo EventFieldInfo { get => throw null; set { } } } - public abstract class WebRenderer : Microsoft.AspNetCore.Components.RenderTree.Renderer { - protected internal int AddRootComponent(System.Type componentType, string domElementSelector) => throw null; + public WebRenderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Json.JsonSerializerOptions jsonOptions, Microsoft.AspNetCore.Components.Web.Infrastructure.JSComponentInterop jsComponentInterop) : base(default(System.IServiceProvider), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; + protected int AddRootComponent(System.Type componentType, string domElementSelector) => throw null; protected abstract void AttachRootComponentToBrowser(int componentId, string domElementSelector); protected override void Dispose(bool disposing) => throw null; - protected int RendererId { get => throw null; set => throw null; } - public WebRenderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Json.JsonSerializerOptions jsonOptions, Microsoft.AspNetCore.Components.Web.Infrastructure.JSComponentInterop jsComponentInterop) : base(default(System.IServiceProvider), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; + protected int RendererId { get => throw null; set { } } } - } namespace Routing { public class FocusOnNavigate : Microsoft.AspNetCore.Components.ComponentBase { - public FocusOnNavigate() => throw null; - protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; protected override void OnParametersSet() => throw null; - public Microsoft.AspNetCore.Components.RouteData RouteData { get => throw null; set => throw null; } - public string Selector { get => throw null; set => throw null; } + protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; + public FocusOnNavigate() => throw null; + public Microsoft.AspNetCore.Components.RouteData RouteData { get => throw null; set { } } + public string Selector { get => throw null; set { } } + } + public sealed class NavigationLock : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IAsyncDisposable + { + void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; + System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IComponent.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() => throw null; + System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync() => throw null; + public NavigationLock() => throw null; + public Microsoft.AspNetCore.Components.EventCallback OnBeforeInternalNavigation { get => throw null; set { } } + public bool ConfirmExternalNavigation { get => throw null; set { } } } - public class NavLink : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { - public string ActiveClass { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set => throw null; } - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - protected string CssClass { get => throw null; set => throw null; } - public void Dispose() => throw null; - public Microsoft.AspNetCore.Components.Routing.NavLinkMatch Match { get => throw null; set => throw null; } - public NavLink() => throw null; protected override void OnInitialized() => throw null; protected override void OnParametersSet() => throw null; + public void Dispose() => throw null; + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public NavLink() => throw null; + public string ActiveClass { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyDictionary AdditionalAttributes { get => throw null; set { } } + protected string CssClass { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Routing.NavLinkMatch Match { get => throw null; set { } } } - - public enum NavLinkMatch : int + public enum NavLinkMatch { - All = 1, Prefix = 0, + All = 1, } - - public class NavigationLock : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IAsyncDisposable - { - void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; - public bool ConfirmExternalNavigation { get => throw null; set => throw null; } - System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync() => throw null; - public NavigationLock() => throw null; - System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() => throw null; - public Microsoft.AspNetCore.Components.EventCallback OnBeforeInternalNavigation { get => throw null; set => throw null; } - System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IComponent.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; - } - } namespace Web { + public sealed class HeadContent : Microsoft.AspNetCore.Components.ComponentBase + { + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public HeadContent() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + } + public sealed class HeadOutlet : Microsoft.AspNetCore.Components.ComponentBase + { + protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public HeadOutlet() => throw null; + } + public sealed class PageTitle : Microsoft.AspNetCore.Components.ComponentBase + { + protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public PageTitle() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + } + public interface IJSComponentConfiguration + { + Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore JSComponents { get; } + } + public static partial class JSComponentConfigurationExtensions + { + public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; + public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier, string javaScriptInitializer) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; + public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, System.Type componentType, string identifier) => throw null; + public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, System.Type componentType, string identifier, string javaScriptInitializer) => throw null; + } + public sealed class JSComponentConfigurationStore + { + public JSComponentConfigurationStore() => throw null; + } public static class BindAttributes { } - public class ClipboardEventArgs : System.EventArgs { public ClipboardEventArgs() => throw null; - public string Type { get => throw null; set => throw null; } + public string Type { get => throw null; set { } } } - public class DataTransfer { public DataTransfer() => throw null; - public string DropEffect { get => throw null; set => throw null; } - public string EffectAllowed { get => throw null; set => throw null; } - public string[] Files { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.Web.DataTransferItem[] Items { get => throw null; set => throw null; } - public string[] Types { get => throw null; set => throw null; } + public string DropEffect { get => throw null; set { } } + public string EffectAllowed { get => throw null; set { } } + public string[] Files { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Web.DataTransferItem[] Items { get => throw null; set { } } + public string[] Types { get => throw null; set { } } } - public class DataTransferItem { public DataTransferItem() => throw null; - public string Kind { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public string Kind { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public class DragEventArgs : Microsoft.AspNetCore.Components.Web.MouseEventArgs { - public Microsoft.AspNetCore.Components.Web.DataTransfer DataTransfer { get => throw null; set => throw null; } public DragEventArgs() => throw null; + public Microsoft.AspNetCore.Components.Web.DataTransfer DataTransfer { get => throw null; set { } } } - public class ErrorBoundary : Microsoft.AspNetCore.Components.ErrorBoundaryBase { + protected override System.Threading.Tasks.Task OnErrorAsync(System.Exception exception) => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; public ErrorBoundary() => throw null; - protected override System.Threading.Tasks.Task OnErrorAsync(System.Exception exception) => throw null; } - public class ErrorEventArgs : System.EventArgs { - public int Colno { get => throw null; set => throw null; } public ErrorEventArgs() => throw null; - public string Filename { get => throw null; set => throw null; } - public int Lineno { get => throw null; set => throw null; } - public string Message { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public string Message { get => throw null; set { } } + public string Filename { get => throw null; set { } } + public int Lineno { get => throw null; set { } } + public int Colno { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public static class EventHandlers { } - public class FocusEventArgs : System.EventArgs { public FocusEventArgs() => throw null; - public string Type { get => throw null; set => throw null; } - } - - public class HeadContent : Microsoft.AspNetCore.Components.ComponentBase - { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public HeadContent() => throw null; - } - - public class HeadOutlet : Microsoft.AspNetCore.Components.ComponentBase - { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public HeadOutlet() => throw null; - protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; + public string Type { get => throw null; set { } } } - public interface IErrorBoundaryLogger { System.Threading.Tasks.ValueTask LogErrorAsync(System.Exception exception); } - - public interface IJSComponentConfiguration - { - Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore JSComponents { get; } - } - - public static class JSComponentConfigurationExtensions - { - public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, System.Type componentType, string identifier) => throw null; - public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, System.Type componentType, string identifier, string javaScriptInitializer) => throw null; - public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; - public static void RegisterForJavaScript(this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier, string javaScriptInitializer) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; - } - - public class JSComponentConfigurationStore - { - public JSComponentConfigurationStore() => throw null; - } - public class KeyboardEventArgs : System.EventArgs { - public bool AltKey { get => throw null; set => throw null; } - public string Code { get => throw null; set => throw null; } - public bool CtrlKey { get => throw null; set => throw null; } - public string Key { get => throw null; set => throw null; } public KeyboardEventArgs() => throw null; - public float Location { get => throw null; set => throw null; } - public bool MetaKey { get => throw null; set => throw null; } - public bool Repeat { get => throw null; set => throw null; } - public bool ShiftKey { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public string Key { get => throw null; set { } } + public string Code { get => throw null; set { } } + public float Location { get => throw null; set { } } + public bool Repeat { get => throw null; set { } } + public bool CtrlKey { get => throw null; set { } } + public bool ShiftKey { get => throw null; set { } } + public bool AltKey { get => throw null; set { } } + public bool MetaKey { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public class MouseEventArgs : System.EventArgs { - public bool AltKey { get => throw null; set => throw null; } - public System.Int64 Button { get => throw null; set => throw null; } - public System.Int64 Buttons { get => throw null; set => throw null; } - public double ClientX { get => throw null; set => throw null; } - public double ClientY { get => throw null; set => throw null; } - public bool CtrlKey { get => throw null; set => throw null; } - public System.Int64 Detail { get => throw null; set => throw null; } - public bool MetaKey { get => throw null; set => throw null; } public MouseEventArgs() => throw null; - public double MovementX { get => throw null; set => throw null; } - public double MovementY { get => throw null; set => throw null; } - public double OffsetX { get => throw null; set => throw null; } - public double OffsetY { get => throw null; set => throw null; } - public double PageX { get => throw null; set => throw null; } - public double PageY { get => throw null; set => throw null; } - public double ScreenX { get => throw null; set => throw null; } - public double ScreenY { get => throw null; set => throw null; } - public bool ShiftKey { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } - } - - public class PageTitle : Microsoft.AspNetCore.Components.ComponentBase - { - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public PageTitle() => throw null; + public long Detail { get => throw null; set { } } + public double ScreenX { get => throw null; set { } } + public double ScreenY { get => throw null; set { } } + public double ClientX { get => throw null; set { } } + public double ClientY { get => throw null; set { } } + public double OffsetX { get => throw null; set { } } + public double OffsetY { get => throw null; set { } } + public double PageX { get => throw null; set { } } + public double PageY { get => throw null; set { } } + public double MovementX { get => throw null; set { } } + public double MovementY { get => throw null; set { } } + public long Button { get => throw null; set { } } + public long Buttons { get => throw null; set { } } + public bool CtrlKey { get => throw null; set { } } + public bool ShiftKey { get => throw null; set { } } + public bool AltKey { get => throw null; set { } } + public bool MetaKey { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public class PointerEventArgs : Microsoft.AspNetCore.Components.Web.MouseEventArgs { - public float Height { get => throw null; set => throw null; } - public bool IsPrimary { get => throw null; set => throw null; } public PointerEventArgs() => throw null; - public System.Int64 PointerId { get => throw null; set => throw null; } - public string PointerType { get => throw null; set => throw null; } - public float Pressure { get => throw null; set => throw null; } - public float TiltX { get => throw null; set => throw null; } - public float TiltY { get => throw null; set => throw null; } - public float Width { get => throw null; set => throw null; } - } - + public long PointerId { get => throw null; set { } } + public float Width { get => throw null; set { } } + public float Height { get => throw null; set { } } + public float Pressure { get => throw null; set { } } + public float TiltX { get => throw null; set { } } + public float TiltY { get => throw null; set { } } + public string PointerType { get => throw null; set { } } + public bool IsPrimary { get => throw null; set { } } + } public class ProgressEventArgs : System.EventArgs { - public bool LengthComputable { get => throw null; set => throw null; } - public System.Int64 Loaded { get => throw null; set => throw null; } public ProgressEventArgs() => throw null; - public System.Int64 Total { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public bool LengthComputable { get => throw null; set { } } + public long Loaded { get => throw null; set { } } + public long Total { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public class TouchEventArgs : System.EventArgs { - public bool AltKey { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.Web.TouchPoint[] ChangedTouches { get => throw null; set => throw null; } - public bool CtrlKey { get => throw null; set => throw null; } - public System.Int64 Detail { get => throw null; set => throw null; } - public bool MetaKey { get => throw null; set => throw null; } - public bool ShiftKey { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.Web.TouchPoint[] TargetTouches { get => throw null; set => throw null; } public TouchEventArgs() => throw null; - public Microsoft.AspNetCore.Components.Web.TouchPoint[] Touches { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public long Detail { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Web.TouchPoint[] Touches { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Web.TouchPoint[] TargetTouches { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Web.TouchPoint[] ChangedTouches { get => throw null; set { } } + public bool CtrlKey { get => throw null; set { } } + public bool ShiftKey { get => throw null; set { } } + public bool AltKey { get => throw null; set { } } + public bool MetaKey { get => throw null; set { } } + public string Type { get => throw null; set { } } } - public class TouchPoint { - public double ClientX { get => throw null; set => throw null; } - public double ClientY { get => throw null; set => throw null; } - public System.Int64 Identifier { get => throw null; set => throw null; } - public double PageX { get => throw null; set => throw null; } - public double PageY { get => throw null; set => throw null; } - public double ScreenX { get => throw null; set => throw null; } - public double ScreenY { get => throw null; set => throw null; } public TouchPoint() => throw null; + public long Identifier { get => throw null; set { } } + public double ScreenX { get => throw null; set { } } + public double ScreenY { get => throw null; set { } } + public double ClientX { get => throw null; set { } } + public double ClientY { get => throw null; set { } } + public double PageX { get => throw null; set { } } + public double PageY { get => throw null; set { } } } - - public static class WebEventCallbackFactoryEventArgsExtensions + public static partial class WebEventCallbackFactoryEventArgsExtensions { public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; } - - public static class WebRenderTreeBuilderExtensions + public static partial class WebRenderTreeBuilderExtensions { public static void AddEventPreventDefaultAttribute(this Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int sequence, string eventName, bool value) => throw null; public static void AddEventStopPropagationAttribute(this Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int sequence, string eventName, bool value) => throw null; } - public class WheelEventArgs : Microsoft.AspNetCore.Components.Web.MouseEventArgs { - public System.Int64 DeltaMode { get => throw null; set => throw null; } - public double DeltaX { get => throw null; set => throw null; } - public double DeltaY { get => throw null; set => throw null; } - public double DeltaZ { get => throw null; set => throw null; } public WheelEventArgs() => throw null; + public double DeltaX { get => throw null; set { } } + public double DeltaY { get => throw null; set { } } + public double DeltaZ { get => throw null; set { } } + public long DeltaMode { get => throw null; set { } } } - namespace Infrastructure { public class JSComponentInterop { - protected internal virtual int AddRootComponent(string identifier, string domElementSelector) => throw null; public JSComponentInterop(Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore configuration) => throw null; - protected internal virtual void RemoveRootComponent(int componentId) => throw null; - protected internal void SetRootComponentParameters(int componentId, int parameterCount, System.Text.Json.JsonElement parametersJson, System.Text.Json.JsonSerializerOptions jsonOptions) => throw null; + protected virtual int AddRootComponent(string identifier, string domElementSelector) => throw null; + protected void SetRootComponentParameters(int componentId, int parameterCount, System.Text.Json.JsonElement parametersJson, System.Text.Json.JsonSerializerOptions jsonOptions) => throw null; + protected virtual void RemoveRootComponent(int componentId) => throw null; } - } namespace Virtualization { - internal interface IVirtualizeJsCallbacks - { - } - public delegate System.Threading.Tasks.ValueTask> ItemsProviderDelegate(Microsoft.AspNetCore.Components.Web.Virtualization.ItemsProviderRequest request); - public struct ItemsProviderRequest { - public System.Threading.CancellationToken CancellationToken { get => throw null; } - public int Count { get => throw null; } - // Stub generator skipped constructor public ItemsProviderRequest(int startIndex, int count, System.Threading.CancellationToken cancellationToken) => throw null; public int StartIndex { get => throw null; } + public int Count { get => throw null; } + public System.Threading.CancellationToken CancellationToken { get => throw null; } } - public struct ItemsProviderResult { - public System.Collections.Generic.IEnumerable Items { get => throw null; } - // Stub generator skipped constructor public ItemsProviderResult(System.Collections.Generic.IEnumerable items, int totalItemCount) => throw null; + public System.Collections.Generic.IEnumerable Items { get => throw null; } public int TotalItemCount { get => throw null; } } - public struct PlaceholderContext { + public PlaceholderContext(int index, float size) => throw null; public int Index { get => throw null; } - // Stub generator skipped constructor - public PlaceholderContext(int index, float size = default(float)) => throw null; public float Size { get => throw null; } } - - public class Virtualize : Microsoft.AspNetCore.Components.ComponentBase, System.IAsyncDisposable + public sealed class Virtualize : Microsoft.AspNetCore.Components.ComponentBase, System.IAsyncDisposable { + public System.Threading.Tasks.Task RefreshDataAsync() => throw null; + protected override void OnParametersSet() => throw null; + protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ItemContent { get => throw null; set => throw null; } - public float ItemSize { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection Items { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.Web.Virtualization.ItemsProviderDelegate ItemsProvider { get => throw null; set => throw null; } - protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; - protected override void OnParametersSet() => throw null; - public int OverscanCount { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.RenderFragment Placeholder { get => throw null; set => throw null; } - public System.Threading.Tasks.Task RefreshDataAsync() => throw null; - public string SpacerElement { get => throw null; set => throw null; } public Virtualize() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment ItemContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Placeholder { get => throw null; set { } } + public float ItemSize { get => throw null; set { } } + public Microsoft.AspNetCore.Components.Web.Virtualization.ItemsProviderDelegate ItemsProvider { get => throw null; set { } } + public System.Collections.Generic.ICollection Items { get => throw null; set { } } + public int OverscanCount { get => throw null; set { } } + public string SpacerElement { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.cs index d9424fa5b1e03..c9fc7bfd02781 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Components.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Components, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,763 +8,669 @@ namespace Components { public static class BindConverter { - public static string FormatValue(System.DateOnly value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateOnly value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateOnly? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateOnly? value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTime value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTime value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTime? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTime? value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTimeOffset value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTimeOffset value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTimeOffset? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.DateTimeOffset? value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.TimeOnly value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.TimeOnly value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.TimeOnly? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.TimeOnly? value, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static bool FormatValue(bool value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static bool? FormatValue(bool? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Decimal value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Decimal? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(double value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(double? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(float value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(float? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(int value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(int? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Int64 value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Int64? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Int16 value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(System.Int16? value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static string FormatValue(string value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static object FormatValue(T value, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static bool TryConvertTo(object obj, System.Globalization.CultureInfo culture, out T value) => throw null; + public static string FormatValue(string value, System.Globalization.CultureInfo culture) => throw null; + public static bool FormatValue(bool value, System.Globalization.CultureInfo culture) => throw null; + public static bool? FormatValue(bool? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(int value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(int? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(long value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(long? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(short value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(short? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(float value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(float? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(double value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(double? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(decimal value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(decimal? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTime value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTime value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTime? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTime? value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTimeOffset value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTimeOffset value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTimeOffset? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateTimeOffset? value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateOnly value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateOnly value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateOnly? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.DateOnly? value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.TimeOnly value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.TimeOnly value, string format, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.TimeOnly? value, System.Globalization.CultureInfo culture) => throw null; + public static string FormatValue(System.TimeOnly? value, string format, System.Globalization.CultureInfo culture) => throw null; + public static object FormatValue(T value, System.Globalization.CultureInfo culture) => throw null; + public static bool TryConvertToString(object obj, System.Globalization.CultureInfo culture, out string value) => throw null; public static bool TryConvertToBool(object obj, System.Globalization.CultureInfo culture, out bool value) => throw null; - public static bool TryConvertToDateOnly(object obj, System.Globalization.CultureInfo culture, out System.DateOnly value) => throw null; - public static bool TryConvertToDateOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.DateOnly value) => throw null; + public static bool TryConvertToNullableBool(object obj, System.Globalization.CultureInfo culture, out bool? value) => throw null; + public static bool TryConvertToInt(object obj, System.Globalization.CultureInfo culture, out int value) => throw null; + public static bool TryConvertToNullableInt(object obj, System.Globalization.CultureInfo culture, out int? value) => throw null; + public static bool TryConvertToLong(object obj, System.Globalization.CultureInfo culture, out long value) => throw null; + public static bool TryConvertToNullableLong(object obj, System.Globalization.CultureInfo culture, out long? value) => throw null; + public static bool TryConvertToShort(object obj, System.Globalization.CultureInfo culture, out short value) => throw null; + public static bool TryConvertToNullableShort(object obj, System.Globalization.CultureInfo culture, out short? value) => throw null; + public static bool TryConvertToFloat(object obj, System.Globalization.CultureInfo culture, out float value) => throw null; + public static bool TryConvertToNullableFloat(object obj, System.Globalization.CultureInfo culture, out float? value) => throw null; + public static bool TryConvertToDouble(object obj, System.Globalization.CultureInfo culture, out double value) => throw null; + public static bool TryConvertToNullableDouble(object obj, System.Globalization.CultureInfo culture, out double? value) => throw null; + public static bool TryConvertToDecimal(object obj, System.Globalization.CultureInfo culture, out decimal value) => throw null; + public static bool TryConvertToNullableDecimal(object obj, System.Globalization.CultureInfo culture, out decimal? value) => throw null; public static bool TryConvertToDateTime(object obj, System.Globalization.CultureInfo culture, out System.DateTime value) => throw null; public static bool TryConvertToDateTime(object obj, System.Globalization.CultureInfo culture, string format, out System.DateTime value) => throw null; - public static bool TryConvertToDateTimeOffset(object obj, System.Globalization.CultureInfo culture, out System.DateTimeOffset value) => throw null; - public static bool TryConvertToDateTimeOffset(object obj, System.Globalization.CultureInfo culture, string format, out System.DateTimeOffset value) => throw null; - public static bool TryConvertToDecimal(object obj, System.Globalization.CultureInfo culture, out System.Decimal value) => throw null; - public static bool TryConvertToDouble(object obj, System.Globalization.CultureInfo culture, out double value) => throw null; - public static bool TryConvertToFloat(object obj, System.Globalization.CultureInfo culture, out float value) => throw null; - public static bool TryConvertToInt(object obj, System.Globalization.CultureInfo culture, out int value) => throw null; - public static bool TryConvertToLong(object obj, System.Globalization.CultureInfo culture, out System.Int64 value) => throw null; - public static bool TryConvertToNullableBool(object obj, System.Globalization.CultureInfo culture, out bool? value) => throw null; - public static bool TryConvertToNullableDateOnly(object obj, System.Globalization.CultureInfo culture, out System.DateOnly? value) => throw null; - public static bool TryConvertToNullableDateOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.DateOnly? value) => throw null; public static bool TryConvertToNullableDateTime(object obj, System.Globalization.CultureInfo culture, out System.DateTime? value) => throw null; public static bool TryConvertToNullableDateTime(object obj, System.Globalization.CultureInfo culture, string format, out System.DateTime? value) => throw null; + public static bool TryConvertToDateTimeOffset(object obj, System.Globalization.CultureInfo culture, out System.DateTimeOffset value) => throw null; + public static bool TryConvertToDateTimeOffset(object obj, System.Globalization.CultureInfo culture, string format, out System.DateTimeOffset value) => throw null; public static bool TryConvertToNullableDateTimeOffset(object obj, System.Globalization.CultureInfo culture, out System.DateTimeOffset? value) => throw null; public static bool TryConvertToNullableDateTimeOffset(object obj, System.Globalization.CultureInfo culture, string format, out System.DateTimeOffset? value) => throw null; - public static bool TryConvertToNullableDecimal(object obj, System.Globalization.CultureInfo culture, out System.Decimal? value) => throw null; - public static bool TryConvertToNullableDouble(object obj, System.Globalization.CultureInfo culture, out double? value) => throw null; - public static bool TryConvertToNullableFloat(object obj, System.Globalization.CultureInfo culture, out float? value) => throw null; - public static bool TryConvertToNullableInt(object obj, System.Globalization.CultureInfo culture, out int? value) => throw null; - public static bool TryConvertToNullableLong(object obj, System.Globalization.CultureInfo culture, out System.Int64? value) => throw null; - public static bool TryConvertToNullableShort(object obj, System.Globalization.CultureInfo culture, out System.Int16? value) => throw null; - public static bool TryConvertToNullableTimeOnly(object obj, System.Globalization.CultureInfo culture, out System.TimeOnly? value) => throw null; - public static bool TryConvertToNullableTimeOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.TimeOnly? value) => throw null; - public static bool TryConvertToShort(object obj, System.Globalization.CultureInfo culture, out System.Int16 value) => throw null; - public static bool TryConvertToString(object obj, System.Globalization.CultureInfo culture, out string value) => throw null; + public static bool TryConvertToDateOnly(object obj, System.Globalization.CultureInfo culture, out System.DateOnly value) => throw null; + public static bool TryConvertToDateOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.DateOnly value) => throw null; + public static bool TryConvertToNullableDateOnly(object obj, System.Globalization.CultureInfo culture, out System.DateOnly? value) => throw null; + public static bool TryConvertToNullableDateOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.DateOnly? value) => throw null; public static bool TryConvertToTimeOnly(object obj, System.Globalization.CultureInfo culture, out System.TimeOnly value) => throw null; public static bool TryConvertToTimeOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.TimeOnly value) => throw null; + public static bool TryConvertToNullableTimeOnly(object obj, System.Globalization.CultureInfo culture, out System.TimeOnly? value) => throw null; + public static bool TryConvertToNullableTimeOnly(object obj, System.Globalization.CultureInfo culture, string format, out System.TimeOnly? value) => throw null; + public static bool TryConvertTo(object obj, System.Globalization.CultureInfo culture, out T value) => throw null; } - - public class BindElementAttribute : System.Attribute + public sealed class BindElementAttribute : System.Attribute { public BindElementAttribute(string element, string suffix, string valueAttribute, string changeAttribute) => throw null; - public string ChangeAttribute { get => throw null; } public string Element { get => throw null; } public string Suffix { get => throw null; } public string ValueAttribute { get => throw null; } + public string ChangeAttribute { get => throw null; } } - - public class CascadingParameterAttribute : System.Attribute + public sealed class CascadingParameterAttribute : System.Attribute { public CascadingParameterAttribute() => throw null; - public string Name { get => throw null; set => throw null; } + public string Name { get => throw null; set { } } } - - public class CascadingTypeParameterAttribute : System.Attribute + public sealed class CascadingTypeParameterAttribute : System.Attribute { public CascadingTypeParameterAttribute(string name) => throw null; public string Name { get => throw null; } } - public class CascadingValue : Microsoft.AspNetCore.Components.IComponent { public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; - public CascadingValue() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public bool IsFixed { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; - public TValue Value { get => throw null; set => throw null; } + public CascadingValue() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public TValue Value { get => throw null; set { } } + public string Name { get => throw null; set { } } + public bool IsFixed { get => throw null; set { } } } - public class ChangeEventArgs : System.EventArgs { public ChangeEventArgs() => throw null; - public object Value { get => throw null; set => throw null; } + public object Value { get => throw null; set { } } } - - public abstract class ComponentBase : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, Microsoft.AspNetCore.Components.IHandleEvent + public abstract class ComponentBase : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender { - void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; - protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; public ComponentBase() => throw null; - System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(Microsoft.AspNetCore.Components.EventCallbackWorkItem callback, object arg) => throw null; - protected System.Threading.Tasks.Task InvokeAsync(System.Action workItem) => throw null; - protected System.Threading.Tasks.Task InvokeAsync(System.Func workItem) => throw null; - protected virtual void OnAfterRender(bool firstRender) => throw null; - System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() => throw null; - protected virtual System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; + protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; protected virtual void OnInitialized() => throw null; protected virtual System.Threading.Tasks.Task OnInitializedAsync() => throw null; protected virtual void OnParametersSet() => throw null; protected virtual System.Threading.Tasks.Task OnParametersSetAsync() => throw null; - public virtual System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; - protected virtual bool ShouldRender() => throw null; protected void StateHasChanged() => throw null; + protected virtual bool ShouldRender() => throw null; + protected virtual void OnAfterRender(bool firstRender) => throw null; + protected virtual System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender) => throw null; + protected System.Threading.Tasks.Task InvokeAsync(System.Action workItem) => throw null; + protected System.Threading.Tasks.Task InvokeAsync(System.Func workItem) => throw null; + void Microsoft.AspNetCore.Components.IComponent.Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; + public virtual System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(Microsoft.AspNetCore.Components.EventCallbackWorkItem callback, object arg) => throw null; + System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() => throw null; } - public abstract class Dispatcher { + public static Microsoft.AspNetCore.Components.Dispatcher CreateDefault() => throw null; public void AssertAccess() => throw null; public abstract bool CheckAccess(); - public static Microsoft.AspNetCore.Components.Dispatcher CreateDefault() => throw null; - protected Dispatcher() => throw null; public abstract System.Threading.Tasks.Task InvokeAsync(System.Action workItem); public abstract System.Threading.Tasks.Task InvokeAsync(System.Func workItem); public abstract System.Threading.Tasks.Task InvokeAsync(System.Func workItem); public abstract System.Threading.Tasks.Task InvokeAsync(System.Func> workItem); protected void OnUnhandledException(System.UnhandledExceptionEventArgs e) => throw null; + protected Dispatcher() => throw null; } - public class DynamicComponent : Microsoft.AspNetCore.Components.IComponent { - public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; public DynamicComponent() => throw null; - public object Instance { get => throw null; } - public System.Collections.Generic.IDictionary Parameters { get => throw null; set => throw null; } + public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; - public System.Type Type { get => throw null; set => throw null; } + public System.Type Type { get => throw null; set { } } + public System.Collections.Generic.IDictionary Parameters { get => throw null; set { } } + public object Instance { get => throw null; } } - - public class EditorRequiredAttribute : System.Attribute + public sealed class EditorRequiredAttribute : System.Attribute { public EditorRequiredAttribute() => throw null; } - public struct ElementReference { - public Microsoft.AspNetCore.Components.ElementReferenceContext Context { get => throw null; } - // Stub generator skipped constructor - public ElementReference(string id) => throw null; public ElementReference(string id, Microsoft.AspNetCore.Components.ElementReferenceContext context) => throw null; + public ElementReference(string id) => throw null; public string Id { get => throw null; } + public Microsoft.AspNetCore.Components.ElementReferenceContext Context { get => throw null; } } - public abstract class ElementReferenceContext { protected ElementReferenceContext() => throw null; } - public abstract class ErrorBoundaryBase : Microsoft.AspNetCore.Components.ComponentBase { - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - protected System.Exception CurrentException { get => throw null; } - protected ErrorBoundaryBase() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ErrorContent { get => throw null; set => throw null; } - public int MaximumErrorCount { get => throw null; set => throw null; } - protected abstract System.Threading.Tasks.Task OnErrorAsync(System.Exception exception); public void Recover() => throw null; + protected abstract System.Threading.Tasks.Task OnErrorAsync(System.Exception exception); + protected ErrorBoundaryBase() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment ErrorContent { get => throw null; set { } } + public int MaximumErrorCount { get => throw null; set { } } + protected System.Exception CurrentException { get => throw null; } } - public struct EventCallback { + public static Microsoft.AspNetCore.Components.EventCallbackFactory Factory; public static Microsoft.AspNetCore.Components.EventCallback Empty; - // Stub generator skipped constructor public EventCallback(Microsoft.AspNetCore.Components.IHandleEvent receiver, System.MulticastDelegate @delegate) => throw null; - public static Microsoft.AspNetCore.Components.EventCallbackFactory Factory; - public bool HasDelegate { get => throw null; } - public System.Threading.Tasks.Task InvokeAsync() => throw null; public System.Threading.Tasks.Task InvokeAsync(object arg) => throw null; + public System.Threading.Tasks.Task InvokeAsync() => throw null; + public bool HasDelegate { get => throw null; } } - public struct EventCallback { public static Microsoft.AspNetCore.Components.EventCallback Empty; - // Stub generator skipped constructor public EventCallback(Microsoft.AspNetCore.Components.IHandleEvent receiver, System.MulticastDelegate @delegate) => throw null; - public bool HasDelegate { get => throw null; } - public System.Threading.Tasks.Task InvokeAsync() => throw null; public System.Threading.Tasks.Task InvokeAsync(TValue arg) => throw null; + public System.Threading.Tasks.Task InvokeAsync() => throw null; + public bool HasDelegate { get => throw null; } } - - public class EventCallbackFactory + public sealed class EventCallbackFactory { + public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, Microsoft.AspNetCore.Components.EventCallback callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; - public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, Microsoft.AspNetCore.Components.EventCallback callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Func callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Func callback) => throw null; - public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; - public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, Microsoft.AspNetCore.Components.EventCallback callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, Microsoft.AspNetCore.Components.EventCallback callback) => throw null; - public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Func callback) => throw null; + public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; + public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Action callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Func callback) => throw null; + public Microsoft.AspNetCore.Components.EventCallback Create(object receiver, System.Func callback) => throw null; public Microsoft.AspNetCore.Components.EventCallback CreateInferred(object receiver, System.Action callback, TValue value) => throw null; public Microsoft.AspNetCore.Components.EventCallback CreateInferred(object receiver, System.Func callback, TValue value) => throw null; public EventCallbackFactory() => throw null; } - - public static class EventCallbackFactoryBinderExtensions - { - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, bool existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, bool? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Decimal existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Decimal? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, double existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, double? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, float existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, float? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, int existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, int? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Int64 existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Int64? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Int16 existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.Int16? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, string existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly? existingValue, string format, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, bool existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, bool? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Decimal existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Decimal? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, double existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, double? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, float existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, float? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, int existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, int? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Int64 existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Int64? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Int16 existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.Int16? existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, string existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, T existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, T existingValue, System.Globalization.CultureInfo culture = default(System.Globalization.CultureInfo)) => throw null; - } - - public static class EventCallbackFactoryEventArgsExtensions + public static partial class EventCallbackFactoryBinderExtensions + { + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, string existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, string existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, bool existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, bool existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, bool? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, bool? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, int existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, int existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, int? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, int? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, long existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, long existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, short existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, short existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, long? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, long? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, short? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, short? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, float existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, float existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, float? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, float? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, double existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, double existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, double? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, double? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, decimal existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, decimal existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, decimal? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, decimal? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTime? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTime? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateTimeOffset? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateTimeOffset? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.DateOnly? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.DateOnly? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly? existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, System.TimeOnly? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, System.TimeOnly? existingValue, string format, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action setter, T existingValue, System.Globalization.CultureInfo culture) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateBinder(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func setter, T existingValue, System.Globalization.CultureInfo culture) => throw null; + } + public static partial class EventCallbackFactoryEventArgsExtensions { - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Action callback) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback Create(this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, System.Func callback) => throw null; } - public struct EventCallbackWorkItem { public static Microsoft.AspNetCore.Components.EventCallbackWorkItem Empty; - // Stub generator skipped constructor public EventCallbackWorkItem(System.MulticastDelegate @delegate) => throw null; public System.Threading.Tasks.Task InvokeAsync(object arg) => throw null; } - - public class EventHandlerAttribute : System.Attribute + public sealed class EventHandlerAttribute : System.Attribute { - public string AttributeName { get => throw null; } - public bool EnablePreventDefault { get => throw null; } - public bool EnableStopPropagation { get => throw null; } - public System.Type EventArgsType { get => throw null; } public EventHandlerAttribute(string attributeName, System.Type eventArgsType) => throw null; public EventHandlerAttribute(string attributeName, System.Type eventArgsType, bool enableStopPropagation, bool enablePreventDefault) => throw null; + public string AttributeName { get => throw null; } + public System.Type EventArgsType { get => throw null; } + public bool EnableStopPropagation { get => throw null; } + public bool EnablePreventDefault { get => throw null; } } - - internal interface ICascadingValueComponent - { - } - public interface IComponent { void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle); System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters); } - public interface IComponentActivator { Microsoft.AspNetCore.Components.IComponent CreateInstance(System.Type componentType); } - - internal interface IErrorBoundary - { - } - - internal interface IEventCallback - { - bool HasDelegate { get; } - } - public interface IHandleAfterRender { System.Threading.Tasks.Task OnAfterRenderAsync(); } - public interface IHandleEvent { System.Threading.Tasks.Task HandleEventAsync(Microsoft.AspNetCore.Components.EventCallbackWorkItem item, object arg); } - - public interface IPersistentComponentStateStore + public sealed class InjectAttribute : System.Attribute { - System.Threading.Tasks.Task> GetPersistedStateAsync(); - System.Threading.Tasks.Task PersistStateAsync(System.Collections.Generic.IReadOnlyDictionary state); + public InjectAttribute() => throw null; } - - public class InjectAttribute : System.Attribute + public interface IPersistentComponentStateStore { - public InjectAttribute() => throw null; + System.Threading.Tasks.Task> GetPersistedStateAsync(); + System.Threading.Tasks.Task PersistStateAsync(System.Collections.Generic.IReadOnlyDictionary state); } - - public class LayoutAttribute : System.Attribute + public sealed class LayoutAttribute : System.Attribute { public LayoutAttribute(System.Type layoutType) => throw null; public System.Type LayoutType { get => throw null; } } - public abstract class LayoutComponentBase : Microsoft.AspNetCore.Components.ComponentBase { - public Microsoft.AspNetCore.Components.RenderFragment Body { get => throw null; set => throw null; } - protected LayoutComponentBase() => throw null; public override System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + protected LayoutComponentBase() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment Body { get => throw null; set { } } } - public class LayoutView : Microsoft.AspNetCore.Components.IComponent { public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; - public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set => throw null; } - public System.Type Layout { get => throw null; set => throw null; } - public LayoutView() => throw null; public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + public LayoutView() => throw null; + public Microsoft.AspNetCore.Components.RenderFragment ChildContent { get => throw null; set { } } + public System.Type Layout { get => throw null; set { } } } - - public class LocationChangeException : System.Exception + public sealed class LocationChangeException : System.Exception { public LocationChangeException(string message, System.Exception innerException) => throw null; } - public struct MarkupString { - // Stub generator skipped constructor public MarkupString(string value) => throw null; + public static explicit operator Microsoft.AspNetCore.Components.MarkupString(string value) => throw null; public override string ToString() => throw null; public string Value { get => throw null; } - public static explicit operator Microsoft.AspNetCore.Components.MarkupString(string value) => throw null; } - public class NavigationException : System.Exception { - public string Location { get => throw null; } public NavigationException(string uri) => throw null; + public string Location { get => throw null; } } - public abstract class NavigationManager { - public string BaseUri { get => throw null; set => throw null; } - protected virtual void EnsureInitialized() => throw null; - protected virtual void HandleLocationChangingHandlerException(System.Exception ex, Microsoft.AspNetCore.Components.Routing.LocationChangingContext context) => throw null; - public string HistoryEntryState { get => throw null; set => throw null; } - protected void Initialize(string baseUri, string uri) => throw null; - public event System.EventHandler LocationChanged; - public void NavigateTo(string uri, Microsoft.AspNetCore.Components.NavigationOptions options) => throw null; public void NavigateTo(string uri, bool forceLoad) => throw null; - public void NavigateTo(string uri, bool forceLoad = default(bool), bool replace = default(bool)) => throw null; - protected virtual void NavigateToCore(string uri, Microsoft.AspNetCore.Components.NavigationOptions options) => throw null; + public void NavigateTo(string uri, bool forceLoad, bool replace) => throw null; + public void NavigateTo(string uri, Microsoft.AspNetCore.Components.NavigationOptions options) => throw null; protected virtual void NavigateToCore(string uri, bool forceLoad) => throw null; - protected NavigationManager() => throw null; + protected virtual void NavigateToCore(string uri, Microsoft.AspNetCore.Components.NavigationOptions options) => throw null; + protected void Initialize(string baseUri, string uri) => throw null; + protected virtual void EnsureInitialized() => throw null; + public System.Uri ToAbsoluteUri(string relativeUri) => throw null; + public string ToBaseRelativePath(string uri) => throw null; protected void NotifyLocationChanged(bool isInterceptedLink) => throw null; protected System.Threading.Tasks.ValueTask NotifyLocationChangingAsync(string uri, string state, bool isNavigationIntercepted) => throw null; - public System.IDisposable RegisterLocationChangingHandler(System.Func locationChangingHandler) => throw null; + protected virtual void HandleLocationChangingHandlerException(System.Exception ex, Microsoft.AspNetCore.Components.Routing.LocationChangingContext context) => throw null; protected virtual void SetNavigationLockState(bool value) => throw null; - public System.Uri ToAbsoluteUri(string relativeUri) => throw null; - public string ToBaseRelativePath(string uri) => throw null; - public string Uri { get => throw null; set => throw null; } + public System.IDisposable RegisterLocationChangingHandler(System.Func locationChangingHandler) => throw null; + protected NavigationManager() => throw null; + public string BaseUri { get => throw null; set { } } + public string Uri { get => throw null; set { } } + public string HistoryEntryState { get => throw null; set { } } + public event System.EventHandler LocationChanged { add { } remove { } } } - - public static class NavigationManagerExtensions + public static partial class NavigationManagerExtensions { - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateOnly value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateOnly? value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateTime value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateTime? value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Guid value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Guid? value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateOnly value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.DateOnly? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.TimeOnly value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.TimeOnly? value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, bool? value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Decimal value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Decimal? value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, decimal value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, decimal? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, double value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, double? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, float value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, float? value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Guid value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Guid? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, int value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, int? value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Int64 value) => throw null; - public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, System.Int64? value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, long value) => throw null; + public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, long? value) => throw null; public static string GetUriWithQueryParameter(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string name, string value) => throw null; public static string GetUriWithQueryParameters(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, System.Collections.Generic.IReadOnlyDictionary parameters) => throw null; public static string GetUriWithQueryParameters(this Microsoft.AspNetCore.Components.NavigationManager navigationManager, string uri, System.Collections.Generic.IReadOnlyDictionary parameters) => throw null; } - public struct NavigationOptions { - public bool ForceLoad { get => throw null; set => throw null; } - public string HistoryEntryState { get => throw null; set => throw null; } - // Stub generator skipped constructor - public bool ReplaceHistoryEntry { get => throw null; set => throw null; } + public bool ForceLoad { get => throw null; set { } } + public bool ReplaceHistoryEntry { get => throw null; set { } } + public string HistoryEntryState { get => throw null; set { } } } - public abstract class OwningComponentBase : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable { void System.IDisposable.Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - protected bool IsDisposed { get => throw null; } protected OwningComponentBase() => throw null; + protected bool IsDisposed { get => throw null; } protected System.IServiceProvider ScopedServices { get => throw null; } } - public abstract class OwningComponentBase : Microsoft.AspNetCore.Components.OwningComponentBase, System.IDisposable { protected OwningComponentBase() => throw null; protected TService Service { get => throw null; } } - - public class ParameterAttribute : System.Attribute + public sealed class ParameterAttribute : System.Attribute { - public bool CaptureUnmatchedValues { get => throw null; set => throw null; } public ParameterAttribute() => throw null; + public bool CaptureUnmatchedValues { get => throw null; set { } } } - public struct ParameterValue { - public bool Cascading { get => throw null; } public string Name { get => throw null; } - // Stub generator skipped constructor public object Value { get => throw null; } + public bool Cascading { get => throw null; } } - public struct ParameterView { - public struct Enumerator - { - public Microsoft.AspNetCore.Components.ParameterValue Current { get => throw null; } - // Stub generator skipped constructor - public bool MoveNext() => throw null; - } - - - public static Microsoft.AspNetCore.Components.ParameterView Empty { get => throw null; } - public static Microsoft.AspNetCore.Components.ParameterView FromDictionary(System.Collections.Generic.IDictionary parameters) => throw null; public Microsoft.AspNetCore.Components.ParameterView.Enumerator GetEnumerator() => throw null; + public bool TryGetValue(string parameterName, out TValue result) => throw null; public TValue GetValueOrDefault(string parameterName) => throw null; public TValue GetValueOrDefault(string parameterName, TValue defaultValue) => throw null; - // Stub generator skipped constructor - public void SetParameterProperties(object target) => throw null; public System.Collections.Generic.IReadOnlyDictionary ToDictionary() => throw null; - public bool TryGetValue(string parameterName, out TValue result) => throw null; + public static Microsoft.AspNetCore.Components.ParameterView FromDictionary(System.Collections.Generic.IDictionary parameters) => throw null; + public void SetParameterProperties(object target) => throw null; + public static Microsoft.AspNetCore.Components.ParameterView Empty { get => throw null; } + public struct Enumerator + { + public bool MoveNext() => throw null; + public Microsoft.AspNetCore.Components.ParameterValue Current { get => throw null; } + } } - public class PersistentComponentState { - public void PersistAsJson(string key, TValue instance) => throw null; public Microsoft.AspNetCore.Components.PersistingComponentStateSubscription RegisterOnPersisting(System.Func callback) => throw null; + public void PersistAsJson(string key, TValue instance) => throw null; public bool TryTakeFromJson(string key, out TValue instance) => throw null; } - public struct PersistingComponentStateSubscription : System.IDisposable { public void Dispose() => throw null; - // Stub generator skipped constructor } - public delegate void RenderFragment(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder); - public delegate Microsoft.AspNetCore.Components.RenderFragment RenderFragment(TValue value); - public struct RenderHandle { + public void Render(Microsoft.AspNetCore.Components.RenderFragment renderFragment) => throw null; public Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get => throw null; } public bool IsInitialized { get => throw null; } public bool IsRenderingOnMetadataUpdate { get => throw null; } - public void Render(Microsoft.AspNetCore.Components.RenderFragment renderFragment) => throw null; - // Stub generator skipped constructor } - - public class RouteAttribute : System.Attribute + public sealed class RouteAttribute : System.Attribute { public RouteAttribute(string template) => throw null; public string Template { get => throw null; } } - - public class RouteData - { - public System.Type PageType { get => throw null; } - public RouteData(System.Type pageType, System.Collections.Generic.IReadOnlyDictionary routeValues) => throw null; - public System.Collections.Generic.IReadOnlyDictionary RouteValues { get => throw null; } - } - public class RouteView : Microsoft.AspNetCore.Components.IComponent { - public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; - public System.Type DefaultLayout { get => throw null; set => throw null; } - protected virtual void Render(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; - public Microsoft.AspNetCore.Components.RouteData RouteData { get => throw null; set => throw null; } public RouteView() => throw null; + public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + protected virtual void Render(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) => throw null; + public Microsoft.AspNetCore.Components.RouteData RouteData { get => throw null; set { } } + public System.Type DefaultLayout { get => throw null; set { } } } - - public class SupplyParameterFromQueryAttribute : System.Attribute + public sealed class RouteData + { + public RouteData(System.Type pageType, System.Collections.Generic.IReadOnlyDictionary routeValues) => throw null; + public System.Type PageType { get => throw null; } + public System.Collections.Generic.IReadOnlyDictionary RouteValues { get => throw null; } + } + public sealed class SupplyParameterFromQueryAttribute : System.Attribute { - public string Name { get => throw null; set => throw null; } public SupplyParameterFromQueryAttribute() => throw null; + public string Name { get => throw null; set { } } } - namespace CompilerServices { public static class RuntimeHelpers { - public static System.Func CreateInferredBindSetter(System.Action callback, T value) => throw null; - public static System.Func CreateInferredBindSetter(System.Func callback, T value) => throw null; + public static T TypeCheck(T value) => throw null; public static Microsoft.AspNetCore.Components.EventCallback CreateInferredEventCallback(object receiver, System.Action callback, T value) => throw null; - public static Microsoft.AspNetCore.Components.EventCallback CreateInferredEventCallback(object receiver, Microsoft.AspNetCore.Components.EventCallback callback, T value) => throw null; public static Microsoft.AspNetCore.Components.EventCallback CreateInferredEventCallback(object receiver, System.Func callback, T value) => throw null; + public static Microsoft.AspNetCore.Components.EventCallback CreateInferredEventCallback(object receiver, Microsoft.AspNetCore.Components.EventCallback callback, T value) => throw null; + public static System.Func CreateInferredBindSetter(System.Func callback, T value) => throw null; + public static System.Func CreateInferredBindSetter(System.Action callback, T value) => throw null; + public static void InvokeSynchronousDelegate(System.Action callback) => throw null; public static System.Threading.Tasks.Task InvokeAsynchronousDelegate(System.Action callback) => throw null; public static System.Threading.Tasks.Task InvokeAsynchronousDelegate(System.Func callback) => throw null; - public static void InvokeSynchronousDelegate(System.Action callback) => throw null; - public static T TypeCheck(T value) => throw null; } - } namespace Infrastructure { public class ComponentStatePersistenceManager { public ComponentStatePersistenceManager(Microsoft.Extensions.Logging.ILogger logger) => throw null; - public System.Threading.Tasks.Task PersistStateAsync(Microsoft.AspNetCore.Components.IPersistentComponentStateStore store, Microsoft.AspNetCore.Components.RenderTree.Renderer renderer) => throw null; public System.Threading.Tasks.Task RestoreStateAsync(Microsoft.AspNetCore.Components.IPersistentComponentStateStore store) => throw null; + public System.Threading.Tasks.Task PersistStateAsync(Microsoft.AspNetCore.Components.IPersistentComponentStateStore store, Microsoft.AspNetCore.Components.RenderTree.Renderer renderer) => throw null; public Microsoft.AspNetCore.Components.PersistentComponentState State { get => throw null; } } - } namespace RenderTree { public struct ArrayBuilderSegment : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public T[] Array { get => throw null; } - // Stub generator skipped constructor - public int Count { get => throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public T this[int index] { get => throw null; } + public T[] Array { get => throw null; } public int Offset { get => throw null; } + public int Count { get => throw null; } + public T this[int index] { get => throw null; } } - public struct ArrayRange { public T[] Array; - // Stub generator skipped constructor + public int Count; public ArrayRange(T[] array, int count) => throw null; public Microsoft.AspNetCore.Components.RenderTree.ArrayRange Clone() => throw null; - public int Count; } - public class EventFieldInfo { - public int ComponentId { get => throw null; set => throw null; } public EventFieldInfo() => throw null; - public object FieldValue { get => throw null; set => throw null; } + public int ComponentId { get => throw null; set { } } + public object FieldValue { get => throw null; set { } } } - public struct RenderBatch { - public Microsoft.AspNetCore.Components.RenderTree.ArrayRange DisposedComponentIDs { get => throw null; } - public Microsoft.AspNetCore.Components.RenderTree.ArrayRange DisposedEventHandlerIDs { get => throw null; } - public Microsoft.AspNetCore.Components.RenderTree.ArrayRange ReferenceFrames { get => throw null; } - // Stub generator skipped constructor public Microsoft.AspNetCore.Components.RenderTree.ArrayRange UpdatedComponents { get => throw null; } + public Microsoft.AspNetCore.Components.RenderTree.ArrayRange ReferenceFrames { get => throw null; } + public Microsoft.AspNetCore.Components.RenderTree.ArrayRange DisposedComponentIDs { get => throw null; } + public Microsoft.AspNetCore.Components.RenderTree.ArrayRange DisposedEventHandlerIDs { get => throw null; } + } + public abstract class Renderer : System.IDisposable, System.IAsyncDisposable + { + public Renderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public Renderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Components.IComponentActivator componentActivator) => throw null; + protected Microsoft.AspNetCore.Components.IComponent InstantiateComponent(System.Type componentType) => throw null; + protected int AssignRootComponentId(Microsoft.AspNetCore.Components.IComponent component) => throw null; + protected Microsoft.AspNetCore.Components.RenderTree.ArrayRange GetCurrentRenderTreeFrames(int componentId) => throw null; + protected System.Threading.Tasks.Task RenderRootComponentAsync(int componentId) => throw null; + protected System.Threading.Tasks.Task RenderRootComponentAsync(int componentId, Microsoft.AspNetCore.Components.ParameterView initialParameters) => throw null; + protected void RemoveRootComponent(int componentId) => throw null; + protected abstract void HandleException(System.Exception exception); + protected abstract System.Threading.Tasks.Task UpdateDisplayAsync(in Microsoft.AspNetCore.Components.RenderTree.RenderBatch renderBatch); + public virtual System.Threading.Tasks.Task DispatchEventAsync(ulong eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo fieldInfo, System.EventArgs eventArgs) => throw null; + public System.Type GetEventArgsType(ulong eventHandlerId) => throw null; + protected virtual void ProcessPendingRender() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public void Dispose() => throw null; + public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + public abstract Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get; } + protected Microsoft.AspNetCore.Components.ElementReferenceContext ElementReferenceContext { get => throw null; set { } } + public event System.UnhandledExceptionEventHandler UnhandledSynchronizationException { add { } remove { } } } - public struct RenderTreeDiff { public int ComponentId; public Microsoft.AspNetCore.Components.RenderTree.ArrayBuilderSegment Edits; - // Stub generator skipped constructor } - public struct RenderTreeEdit { - public int MoveToSiblingIndex; + public Microsoft.AspNetCore.Components.RenderTree.RenderTreeEditType Type; + public int SiblingIndex; public int ReferenceFrameIndex; + public int MoveToSiblingIndex; public string RemovedAttributeName; - // Stub generator skipped constructor - public int SiblingIndex; - public Microsoft.AspNetCore.Components.RenderTree.RenderTreeEditType Type; } - - public enum RenderTreeEditType : int + public enum RenderTreeEditType { - PermutationListEnd = 10, - PermutationListEntry = 9, PrependFrame = 1, - RemoveAttribute = 4, RemoveFrame = 2, SetAttribute = 3, + RemoveAttribute = 4, + UpdateText = 5, StepIn = 6, StepOut = 7, UpdateMarkup = 8, - UpdateText = 5, + PermutationListEntry = 9, + PermutationListEnd = 10, } - public struct RenderTreeFrame { - public System.UInt64 AttributeEventHandlerId { get => throw null; } - public string AttributeEventUpdatesAttributeName { get => throw null; } + public override string ToString() => throw null; + public int Sequence { get => throw null; } + public Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType FrameType { get => throw null; } + public int ElementSubtreeLength { get => throw null; } + public string ElementName { get => throw null; } + public object ElementKey { get => throw null; } + public string TextContent { get => throw null; } + public ulong AttributeEventHandlerId { get => throw null; } public string AttributeName { get => throw null; } public object AttributeValue { get => throw null; } - public Microsoft.AspNetCore.Components.IComponent Component { get => throw null; } - public int ComponentId { get => throw null; } - public object ComponentKey { get => throw null; } - public System.Action ComponentReferenceCaptureAction { get => throw null; } - public int ComponentReferenceCaptureParentFrameIndex { get => throw null; } + public string AttributeEventUpdatesAttributeName { get => throw null; } public int ComponentSubtreeLength { get => throw null; } + public int ComponentId { get => throw null; } public System.Type ComponentType { get => throw null; } - public object ElementKey { get => throw null; } - public string ElementName { get => throw null; } - public System.Action ElementReferenceCaptureAction { get => throw null; } + public object ComponentKey { get => throw null; } + public Microsoft.AspNetCore.Components.IComponent Component { get => throw null; } + public int RegionSubtreeLength { get => throw null; } public string ElementReferenceCaptureId { get => throw null; } - public int ElementSubtreeLength { get => throw null; } - public Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrameType FrameType { get => throw null; } + public System.Action ElementReferenceCaptureAction { get => throw null; } + public int ComponentReferenceCaptureParentFrameIndex { get => throw null; } + public System.Action ComponentReferenceCaptureAction { get => throw null; } public string MarkupContent { get => throw null; } - public int RegionSubtreeLength { get => throw null; } - // Stub generator skipped constructor - public int Sequence { get => throw null; } - public string TextContent { get => throw null; } - public override string ToString() => throw null; } - public enum RenderTreeFrameType : short { + None = 0, + Element = 1, + Text = 2, Attribute = 3, Component = 4, - ComponentReferenceCapture = 7, - Element = 1, + Region = 5, ElementReferenceCapture = 6, + ComponentReferenceCapture = 7, Markup = 8, - None = 0, - Region = 5, - Text = 2, - } - - public abstract class Renderer : System.IAsyncDisposable, System.IDisposable - { - protected internal int AssignRootComponentId(Microsoft.AspNetCore.Components.IComponent component) => throw null; - public virtual System.Threading.Tasks.Task DispatchEventAsync(System.UInt64 eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo fieldInfo, System.EventArgs eventArgs) => throw null; - public abstract Microsoft.AspNetCore.Components.Dispatcher Dispatcher { get; } - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - protected internal Microsoft.AspNetCore.Components.ElementReferenceContext ElementReferenceContext { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Components.RenderTree.ArrayRange GetCurrentRenderTreeFrames(int componentId) => throw null; - public System.Type GetEventArgsType(System.UInt64 eventHandlerId) => throw null; - protected abstract void HandleException(System.Exception exception); - protected Microsoft.AspNetCore.Components.IComponent InstantiateComponent(System.Type componentType) => throw null; - protected virtual void ProcessPendingRender() => throw null; - protected internal void RemoveRootComponent(int componentId) => throw null; - protected System.Threading.Tasks.Task RenderRootComponentAsync(int componentId) => throw null; - protected internal System.Threading.Tasks.Task RenderRootComponentAsync(int componentId, Microsoft.AspNetCore.Components.ParameterView initialParameters) => throw null; - public Renderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public Renderer(System.IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Components.IComponentActivator componentActivator) => throw null; - public event System.UnhandledExceptionEventHandler UnhandledSynchronizationException; - protected abstract System.Threading.Tasks.Task UpdateDisplayAsync(Microsoft.AspNetCore.Components.RenderTree.RenderBatch renderBatch); } - } namespace Rendering { - public class RenderTreeBuilder : System.IDisposable + public sealed class RenderTreeBuilder : System.IDisposable { - public void AddAttribute(int sequence, Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame frame) => throw null; + public void OpenElement(int sequence, string elementName) => throw null; + public void CloseElement() => throw null; + public void AddMarkupContent(int sequence, string markupContent) => throw null; + public void AddContent(int sequence, string textContent) => throw null; + public void AddContent(int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment) => throw null; + public void AddContent(int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment, TValue value) => throw null; + public void AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent) => throw null; + public void AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString markupContent) => throw null; + public void AddContent(int sequence, object textContent) => throw null; public void AddAttribute(int sequence, string name) => throw null; - public void AddAttribute(int sequence, string name, Microsoft.AspNetCore.Components.EventCallback value) => throw null; - public void AddAttribute(int sequence, string name, System.MulticastDelegate value) => throw null; public void AddAttribute(int sequence, string name, bool value) => throw null; - public void AddAttribute(int sequence, string name, object value) => throw null; public void AddAttribute(int sequence, string name, string value) => throw null; + public void AddAttribute(int sequence, string name, System.MulticastDelegate value) => throw null; + public void AddAttribute(int sequence, string name, Microsoft.AspNetCore.Components.EventCallback value) => throw null; public void AddAttribute(int sequence, string name, Microsoft.AspNetCore.Components.EventCallback value) => throw null; - public void AddComponentReferenceCapture(int sequence, System.Action componentReferenceCaptureAction) => throw null; - public void AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString markupContent) => throw null; - public void AddContent(int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent) => throw null; - public void AddContent(int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment) => throw null; - public void AddContent(int sequence, object textContent) => throw null; - public void AddContent(int sequence, string textContent) => throw null; - public void AddContent(int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment, TValue value) => throw null; - public void AddElementReferenceCapture(int sequence, System.Action elementReferenceCaptureAction) => throw null; - public void AddMarkupContent(int sequence, string markupContent) => throw null; + public void AddAttribute(int sequence, string name, object value) => throw null; + public void AddAttribute(int sequence, Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame frame) => throw null; public void AddMultipleAttributes(int sequence, System.Collections.Generic.IEnumerable> attributes) => throw null; - public void Clear() => throw null; + public void SetUpdatesAttributeName(string updatesAttributeName) => throw null; + public void OpenComponent(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; + public void OpenComponent(int sequence, System.Type componentType) => throw null; + public void SetKey(object value) => throw null; public void CloseComponent() => throw null; - public void CloseElement() => throw null; + public void AddElementReferenceCapture(int sequence, System.Action elementReferenceCaptureAction) => throw null; + public void AddComponentReferenceCapture(int sequence, System.Action componentReferenceCaptureAction) => throw null; + public void OpenRegion(int sequence) => throw null; public void CloseRegion() => throw null; - public void Dispose() => throw null; + public void Clear() => throw null; public Microsoft.AspNetCore.Components.RenderTree.ArrayRange GetFrames() => throw null; - public void OpenComponent(int sequence, System.Type componentType) => throw null; - public void OpenComponent(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; - public void OpenElement(int sequence, string elementName) => throw null; - public void OpenRegion(int sequence) => throw null; + public void Dispose() => throw null; public RenderTreeBuilder() => throw null; - public void SetKey(object value) => throw null; - public void SetUpdatesAttributeName(string updatesAttributeName) => throw null; } - } namespace Routing { @@ -773,52 +678,46 @@ public interface IHostEnvironmentNavigationManager { void Initialize(string baseUri, string uri); } - public interface INavigationInterception { System.Threading.Tasks.Task EnableNavigationInterceptionAsync(); } - public class LocationChangedEventArgs : System.EventArgs { - public string HistoryEntryState { get => throw null; set => throw null; } - public bool IsNavigationIntercepted { get => throw null; } - public string Location { get => throw null; } public LocationChangedEventArgs(string location, bool isNavigationIntercepted) => throw null; + public string Location { get => throw null; } + public bool IsNavigationIntercepted { get => throw null; } + public string HistoryEntryState { get => throw null; } } - - public class LocationChangingContext + public sealed class LocationChangingContext { - public System.Threading.CancellationToken CancellationToken { get => throw null; set => throw null; } - public string HistoryEntryState { get => throw null; set => throw null; } - public bool IsNavigationIntercepted { get => throw null; set => throw null; } - public LocationChangingContext() => throw null; public void PreventNavigation() => throw null; - public string TargetLocation { get => throw null; set => throw null; } + public LocationChangingContext() => throw null; + public string TargetLocation { get => throw null; set { } } + public string HistoryEntryState { get => throw null; set { } } + public bool IsNavigationIntercepted { get => throw null; set { } } + public System.Threading.CancellationToken CancellationToken { get => throw null; set { } } } - - public class NavigationContext + public sealed class NavigationContext { - public System.Threading.CancellationToken CancellationToken { get => throw null; } public string Path { get => throw null; } + public System.Threading.CancellationToken CancellationToken { get => throw null; } } - public class Router : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable { - public System.Collections.Generic.IEnumerable AdditionalAssemblies { get => throw null; set => throw null; } - public System.Reflection.Assembly AppAssembly { get => throw null; set => throw null; } public void Attach(Microsoft.AspNetCore.Components.RenderHandle renderHandle) => throw null; + public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; public void Dispose() => throw null; - public Microsoft.AspNetCore.Components.RenderFragment Found { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.RenderFragment Navigating { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Components.RenderFragment NotFound { get => throw null; set => throw null; } System.Threading.Tasks.Task Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() => throw null; - public Microsoft.AspNetCore.Components.EventCallback OnNavigateAsync { get => throw null; set => throw null; } - public bool PreferExactMatches { get => throw null; set => throw null; } public Router() => throw null; - public System.Threading.Tasks.Task SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView parameters) => throw null; + public System.Reflection.Assembly AppAssembly { get => throw null; set { } } + public System.Collections.Generic.IEnumerable AdditionalAssemblies { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment NotFound { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Found { get => throw null; set { } } + public Microsoft.AspNetCore.Components.RenderFragment Navigating { get => throw null; set { } } + public Microsoft.AspNetCore.Components.EventCallback OnNavigateAsync { get => throw null; set { } } + public bool PreferExactMatches { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Connections.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Connections.Abstractions.cs index 341849206700c..aa759e56af89b 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Connections.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Connections.Abstractions.cs @@ -1,340 +1,291 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Connections.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Connections { - public class AddressInUseException : System.InvalidOperationException - { - public AddressInUseException(string message) => throw null; - public AddressInUseException(string message, System.Exception inner) => throw null; - } - public abstract class BaseConnectionContext : System.IAsyncDisposable { public abstract void Abort(); public abstract void Abort(Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason); + public virtual System.Threading.Tasks.ValueTask DisposeAsync() => throw null; protected BaseConnectionContext() => throw null; - public virtual System.Threading.CancellationToken ConnectionClosed { get => throw null; set => throw null; } public abstract string ConnectionId { get; set; } - public virtual System.Threading.Tasks.ValueTask DisposeAsync() => throw null; public abstract Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } public abstract System.Collections.Generic.IDictionary Items { get; set; } - public virtual System.Net.EndPoint LocalEndPoint { get => throw null; set => throw null; } - public virtual System.Net.EndPoint RemoteEndPoint { get => throw null; set => throw null; } - } - - public class ConnectionAbortedException : System.OperationCanceledException - { - public ConnectionAbortedException() => throw null; - public ConnectionAbortedException(string message) => throw null; - public ConnectionAbortedException(string message, System.Exception inner) => throw null; + public virtual System.Threading.CancellationToken ConnectionClosed { get => throw null; set { } } + public virtual System.Net.EndPoint LocalEndPoint { get => throw null; set { } } + public virtual System.Net.EndPoint RemoteEndPoint { get => throw null; set { } } } - public class ConnectionBuilder : Microsoft.AspNetCore.Connections.IConnectionBuilder { - public System.IServiceProvider ApplicationServices { get => throw null; } - public Microsoft.AspNetCore.Connections.ConnectionDelegate Build() => throw null; public ConnectionBuilder(System.IServiceProvider applicationServices) => throw null; public Microsoft.AspNetCore.Connections.IConnectionBuilder Use(System.Func middleware) => throw null; + public Microsoft.AspNetCore.Connections.ConnectionDelegate Build() => throw null; + public System.IServiceProvider ApplicationServices { get => throw null; } } - - public static class ConnectionBuilderExtensions + public static partial class ConnectionBuilderExtensions { - public static Microsoft.AspNetCore.Connections.IConnectionBuilder Run(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder, System.Func middleware) => throw null; - public static Microsoft.AspNetCore.Connections.IConnectionBuilder Use(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder, System.Func, System.Threading.Tasks.Task> middleware) => throw null; public static Microsoft.AspNetCore.Connections.IConnectionBuilder UseConnectionHandler(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler => throw null; + public static Microsoft.AspNetCore.Connections.IConnectionBuilder Use(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder, System.Func, System.Threading.Tasks.Task> middleware) => throw null; + public static Microsoft.AspNetCore.Connections.IConnectionBuilder Run(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder, System.Func middleware) => throw null; } - public abstract class ConnectionContext : Microsoft.AspNetCore.Connections.BaseConnectionContext, System.IAsyncDisposable { - public override void Abort() => throw null; public override void Abort(Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason) => throw null; + public override void Abort() => throw null; protected ConnectionContext() => throw null; public abstract System.IO.Pipelines.IDuplexPipe Transport { get; set; } } - public delegate System.Threading.Tasks.Task ConnectionDelegate(Microsoft.AspNetCore.Connections.ConnectionContext connection); - public abstract class ConnectionHandler { - protected ConnectionHandler() => throw null; public abstract System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.Connections.ConnectionContext connection); + protected ConnectionHandler() => throw null; } - - public class ConnectionItems : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public class ConnectionItems : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) => throw null; - void System.Collections.Generic.IDictionary.Add(object key, object value) => throw null; - void System.Collections.Generic.ICollection>.Clear() => throw null; public ConnectionItems() => throw null; public ConnectionItems(System.Collections.Generic.IDictionary items) => throw null; - bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) => throw null; + void System.Collections.Generic.IDictionary.Add(object key, object value) => throw null; bool System.Collections.Generic.IDictionary.ContainsKey(object key) => throw null; + bool System.Collections.Generic.IDictionary.Remove(object key) => throw null; + bool System.Collections.Generic.IDictionary.TryGetValue(object key, out object value) => throw null; + void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) => throw null; + void System.Collections.Generic.ICollection>.Clear() => throw null; + bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) => throw null; void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - int System.Collections.Generic.ICollection>.Count { get => throw null; } + bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) => throw null; System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } - object System.Collections.Generic.IDictionary.this[object key] { get => throw null; set => throw null; } public System.Collections.Generic.IDictionary Items { get => throw null; } + object System.Collections.Generic.IDictionary.this[object key] { get => throw null; set { } } System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Keys { get => throw null; } - bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) => throw null; - bool System.Collections.Generic.IDictionary.Remove(object key) => throw null; - bool System.Collections.Generic.IDictionary.TryGetValue(object key, out object value) => throw null; System.Collections.Generic.ICollection System.Collections.Generic.IDictionary.Values { get => throw null; } + int System.Collections.Generic.ICollection>.Count { get => throw null; } + bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } } - - public class ConnectionResetException : System.IO.IOException - { - public ConnectionResetException(string message) => throw null; - public ConnectionResetException(string message, System.Exception inner) => throw null; - } - - public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionEndPointFeature, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature + public class DefaultConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext, Microsoft.AspNetCore.Connections.Features.IConnectionIdFeature, Microsoft.AspNetCore.Connections.Features.IConnectionItemsFeature, Microsoft.AspNetCore.Connections.Features.IConnectionTransportFeature, Microsoft.AspNetCore.Connections.Features.IConnectionUserFeature, Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeFeature, Microsoft.AspNetCore.Connections.Features.IConnectionEndPointFeature { - public override void Abort(Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason) => throw null; - public System.IO.Pipelines.IDuplexPipe Application { get => throw null; set => throw null; } - public override System.Threading.CancellationToken ConnectionClosed { get => throw null; set => throw null; } - public override string ConnectionId { get => throw null; set => throw null; } public DefaultConnectionContext() => throw null; public DefaultConnectionContext(string id) => throw null; public DefaultConnectionContext(string id, System.IO.Pipelines.IDuplexPipe transport, System.IO.Pipelines.IDuplexPipe application) => throw null; + public override void Abort(Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason) => throw null; public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + public override string ConnectionId { get => throw null; set { } } public override Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } - public override System.Collections.Generic.IDictionary Items { get => throw null; set => throw null; } - public override System.Net.EndPoint LocalEndPoint { get => throw null; set => throw null; } - public override System.Net.EndPoint RemoteEndPoint { get => throw null; set => throw null; } - public override System.IO.Pipelines.IDuplexPipe Transport { get => throw null; set => throw null; } - public System.Security.Claims.ClaimsPrincipal User { get => throw null; set => throw null; } + public System.Security.Claims.ClaimsPrincipal User { get => throw null; set { } } + public override System.Collections.Generic.IDictionary Items { get => throw null; set { } } + public System.IO.Pipelines.IDuplexPipe Application { get => throw null; set { } } + public override System.IO.Pipelines.IDuplexPipe Transport { get => throw null; set { } } + public override System.Threading.CancellationToken ConnectionClosed { get => throw null; set { } } + public override System.Net.EndPoint LocalEndPoint { get => throw null; set { } } + public override System.Net.EndPoint RemoteEndPoint { get => throw null; set { } } + } + public class AddressInUseException : System.InvalidOperationException + { + public AddressInUseException(string message) => throw null; + public AddressInUseException(string message, System.Exception inner) => throw null; + } + public class ConnectionAbortedException : System.OperationCanceledException + { + public ConnectionAbortedException() => throw null; + public ConnectionAbortedException(string message) => throw null; + public ConnectionAbortedException(string message, System.Exception inner) => throw null; + } + public class ConnectionResetException : System.IO.IOException + { + public ConnectionResetException(string message) => throw null; + public ConnectionResetException(string message, System.Exception inner) => throw null; } - public class FileHandleEndPoint : System.Net.EndPoint { - public System.UInt64 FileHandle { get => throw null; } - public FileHandleEndPoint(System.UInt64 fileHandle, Microsoft.AspNetCore.Connections.FileHandleType fileHandleType) => throw null; + public FileHandleEndPoint(ulong fileHandle, Microsoft.AspNetCore.Connections.FileHandleType fileHandleType) => throw null; + public ulong FileHandle { get => throw null; } public Microsoft.AspNetCore.Connections.FileHandleType FileHandleType { get => throw null; } } - - public enum FileHandleType : int + public enum FileHandleType { Auto = 0, - Pipe = 2, Tcp = 1, + Pipe = 2, } - public interface IConnectionBuilder { - System.IServiceProvider ApplicationServices { get; } - Microsoft.AspNetCore.Connections.ConnectionDelegate Build(); Microsoft.AspNetCore.Connections.IConnectionBuilder Use(System.Func middleware); + Microsoft.AspNetCore.Connections.ConnectionDelegate Build(); + System.IServiceProvider ApplicationServices { get; } } - public interface IConnectionFactory { - System.Threading.Tasks.ValueTask ConnectAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask ConnectAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken); } - public interface IConnectionListener : System.IAsyncDisposable { - System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.ValueTask UnbindAsync(System.Threading.CancellationToken cancellationToken); System.Net.EndPoint EndPoint { get; } - System.Threading.Tasks.ValueTask UnbindAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - public interface IConnectionListenerFactory { - System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken); + } + public interface IMultiplexedConnectionListener : System.IAsyncDisposable + { + System.Threading.Tasks.ValueTask UnbindAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.ValueTask AcceptAsync(Microsoft.AspNetCore.Http.Features.IFeatureCollection features, System.Threading.CancellationToken cancellationToken); + System.Net.EndPoint EndPoint { get; } } - public interface IMultiplexedConnectionBuilder { - System.IServiceProvider ApplicationServices { get; } - Microsoft.AspNetCore.Connections.MultiplexedConnectionDelegate Build(); Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder Use(System.Func middleware); + Microsoft.AspNetCore.Connections.MultiplexedConnectionDelegate Build(); + System.IServiceProvider ApplicationServices { get; } } - public interface IMultiplexedConnectionFactory { - System.Threading.Tasks.ValueTask ConnectAsync(System.Net.EndPoint endpoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection features = default(Microsoft.AspNetCore.Http.Features.IFeatureCollection), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - } - - public interface IMultiplexedConnectionListener : System.IAsyncDisposable - { - System.Threading.Tasks.ValueTask AcceptAsync(Microsoft.AspNetCore.Http.Features.IFeatureCollection features = default(Microsoft.AspNetCore.Http.Features.IFeatureCollection), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Net.EndPoint EndPoint { get; } - System.Threading.Tasks.ValueTask UnbindAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask ConnectAsync(System.Net.EndPoint endpoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection features, System.Threading.CancellationToken cancellationToken); } - public interface IMultiplexedConnectionListenerFactory { - System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection features = default(Microsoft.AspNetCore.Http.Features.IFeatureCollection), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, Microsoft.AspNetCore.Http.Features.IFeatureCollection features, System.Threading.CancellationToken cancellationToken); } - public class MultiplexedConnectionBuilder : Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder { - public System.IServiceProvider ApplicationServices { get => throw null; } - public Microsoft.AspNetCore.Connections.MultiplexedConnectionDelegate Build() => throw null; public MultiplexedConnectionBuilder(System.IServiceProvider applicationServices) => throw null; public Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder Use(System.Func middleware) => throw null; + public Microsoft.AspNetCore.Connections.MultiplexedConnectionDelegate Build() => throw null; + public System.IServiceProvider ApplicationServices { get => throw null; } } - public abstract class MultiplexedConnectionContext : Microsoft.AspNetCore.Connections.BaseConnectionContext, System.IAsyncDisposable { - public abstract System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.ValueTask ConnectAsync(Microsoft.AspNetCore.Http.Features.IFeatureCollection features = default(Microsoft.AspNetCore.Http.Features.IFeatureCollection), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public abstract System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.ValueTask ConnectAsync(Microsoft.AspNetCore.Http.Features.IFeatureCollection features, System.Threading.CancellationToken cancellationToken); protected MultiplexedConnectionContext() => throw null; } - public delegate System.Threading.Tasks.Task MultiplexedConnectionDelegate(Microsoft.AspNetCore.Connections.MultiplexedConnectionContext connection); - public class TlsConnectionCallbackContext { - public System.Net.Security.SslClientHelloInfo ClientHelloInfo { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Connections.BaseConnectionContext Connection { get => throw null; set => throw null; } - public object State { get => throw null; set => throw null; } public TlsConnectionCallbackContext() => throw null; + public System.Net.Security.SslClientHelloInfo ClientHelloInfo { get => throw null; set { } } + public object State { get => throw null; set { } } + public Microsoft.AspNetCore.Connections.BaseConnectionContext Connection { get => throw null; set { } } } - public class TlsConnectionCallbackOptions { - public System.Collections.Generic.List ApplicationProtocols { get => throw null; set => throw null; } - public System.Func> OnConnection { get => throw null; set => throw null; } - public object OnConnectionState { get => throw null; set => throw null; } public TlsConnectionCallbackOptions() => throw null; + public System.Func> OnConnection { get => throw null; set { } } + public object OnConnectionState { get => throw null; set { } } + public System.Collections.Generic.List ApplicationProtocols { get => throw null; set { } } } - [System.Flags] - public enum TransferFormat : int + public enum TransferFormat { Binary = 1, Text = 2, } - public class UriEndPoint : System.Net.EndPoint { + public UriEndPoint(System.Uri uri) => throw null; public override string ToString() => throw null; public System.Uri Uri { get => throw null; } - public UriEndPoint(System.Uri uri) => throw null; } - namespace Features { public interface IConnectionCompleteFeature { void OnCompleted(System.Func callback, object state); } - public interface IConnectionEndPointFeature { System.Net.EndPoint LocalEndPoint { get; set; } System.Net.EndPoint RemoteEndPoint { get; set; } } - public interface IConnectionHeartbeatFeature { void OnHeartbeat(System.Action action, object state); } - public interface IConnectionIdFeature { string ConnectionId { get; set; } } - public interface IConnectionInherentKeepAliveFeature { bool HasInherentKeepAlive { get; } } - public interface IConnectionItemsFeature { System.Collections.Generic.IDictionary Items { get; set; } } - public interface IConnectionLifetimeFeature { void Abort(); System.Threading.CancellationToken ConnectionClosed { get; set; } } - public interface IConnectionLifetimeNotificationFeature { - System.Threading.CancellationToken ConnectionClosedRequested { get; set; } void RequestClose(); + System.Threading.CancellationToken ConnectionClosedRequested { get; set; } } - public interface IConnectionSocketFeature { System.Net.Sockets.Socket Socket { get; } } - public interface IConnectionTransportFeature { System.IO.Pipelines.IDuplexPipe Transport { get; set; } } - public interface IConnectionUserFeature { System.Security.Claims.ClaimsPrincipal User { get; set; } } - public interface IMemoryPoolFeature { - System.Buffers.MemoryPool MemoryPool { get; } + System.Buffers.MemoryPool MemoryPool { get; } } - public interface IPersistentStateFeature { System.Collections.Generic.IDictionary State { get; } } - public interface IProtocolErrorCodeFeature { - System.Int64 Error { get; set; } + long Error { get; set; } } - public interface IStreamAbortFeature { - void AbortRead(System.Int64 errorCode, Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason); - void AbortWrite(System.Int64 errorCode, Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason); + void AbortRead(long errorCode, Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason); + void AbortWrite(long errorCode, Microsoft.AspNetCore.Connections.ConnectionAbortedException abortReason); } - public interface IStreamClosedFeature { void OnClosed(System.Action callback, object state); } - public interface IStreamDirectionFeature { bool CanRead { get; } bool CanWrite { get; } } - public interface IStreamIdFeature { - System.Int64 StreamId { get; } + long StreamId { get; } } - public interface ITlsHandshakeFeature { + System.Security.Authentication.SslProtocols Protocol { get; } System.Security.Authentication.CipherAlgorithmType CipherAlgorithm { get; } int CipherStrength { get; } System.Security.Authentication.HashAlgorithmType HashAlgorithm { get; } int HashStrength { get; } System.Security.Authentication.ExchangeAlgorithmType KeyExchangeAlgorithm { get; } int KeyExchangeStrength { get; } - System.Security.Authentication.SslProtocols Protocol { get; } } - public interface ITransferFormatFeature { - Microsoft.AspNetCore.Connections.TransferFormat ActiveFormat { get; set; } Microsoft.AspNetCore.Connections.TransferFormat SupportedFormats { get; } + Microsoft.AspNetCore.Connections.TransferFormat ActiveFormat { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.CookiePolicy.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.CookiePolicy.cs index 79c0c7f33e903..1b24b31bf8a4c 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.CookiePolicy.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.CookiePolicy.cs @@ -1,31 +1,28 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.CookiePolicy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class CookiePolicyAppBuilderExtensions + public static partial class CookiePolicyAppBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookiePolicy(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookiePolicy(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.CookiePolicyOptions options) => throw null; } - public class CookiePolicyOptions { - public System.Func CheckConsentNeeded { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.CookieBuilder ConsentCookie { get => throw null; set => throw null; } - public string ConsentCookieValue { get => throw null; set => throw null; } public CookiePolicyOptions() => throw null; - public Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy HttpOnly { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.SameSiteMode MinimumSameSitePolicy { get => throw null; set => throw null; } - public System.Action OnAppendCookie { get => throw null; set => throw null; } - public System.Action OnDeleteCookie { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.CookieSecurePolicy Secure { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.SameSiteMode MinimumSameSitePolicy { get => throw null; set { } } + public Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy HttpOnly { get => throw null; set { } } + public Microsoft.AspNetCore.Http.CookieSecurePolicy Secure { get => throw null; set { } } + public Microsoft.AspNetCore.Http.CookieBuilder ConsentCookie { get => throw null; set { } } + public string ConsentCookieValue { get => throw null; set { } } + public System.Func CheckConsentNeeded { get => throw null; set { } } + public System.Action OnAppendCookie { get => throw null; set { } } + public System.Action OnDeleteCookie { get => throw null; set { } } } - } namespace CookiePolicy { @@ -33,51 +30,46 @@ public class AppendCookieContext { public AppendCookieContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.CookieOptions options, string name, string value) => throw null; public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } - public string CookieName { get => throw null; set => throw null; } public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; } - public string CookieValue { get => throw null; set => throw null; } - public bool HasConsent { get => throw null; } + public string CookieName { get => throw null; set { } } + public string CookieValue { get => throw null; set { } } public bool IsConsentNeeded { get => throw null; } - public bool IssueCookie { get => throw null; set => throw null; } + public bool HasConsent { get => throw null; } + public bool IssueCookie { get => throw null; set { } } } - public class CookiePolicyMiddleware { - public CookiePolicyMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; public CookiePolicyMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; + public CookiePolicyMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; - public Microsoft.AspNetCore.Builder.CookiePolicyOptions Options { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Builder.CookiePolicyOptions Options { get => throw null; set { } } } - public class DeleteCookieContext { + public DeleteCookieContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.CookieOptions options, string name) => throw null; public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } - public string CookieName { get => throw null; set => throw null; } public Microsoft.AspNetCore.Http.CookieOptions CookieOptions { get => throw null; } - public DeleteCookieContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.CookieOptions options, string name) => throw null; - public bool HasConsent { get => throw null; } + public string CookieName { get => throw null; set { } } public bool IsConsentNeeded { get => throw null; } - public bool IssueCookie { get => throw null; set => throw null; } + public bool HasConsent { get => throw null; } + public bool IssueCookie { get => throw null; set { } } } - - public enum HttpOnlyPolicy : int + public enum HttpOnlyPolicy { - Always = 1, None = 0, + Always = 1, } - } } namespace Extensions { namespace DependencyInjection { - public static class CookiePolicyServiceCollectionExtensions + public static partial class CookiePolicyServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCookiePolicy(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCookiePolicy(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TService : class => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cors.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cors.cs index ff5767e49b8bd..1f73ec403b5c5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cors.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cors.cs @@ -1,173 +1,154 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Cors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class CorsEndpointConventionBuilderExtensions + public static partial class CorsEndpointConventionBuilderExtensions { - public static TBuilder RequireCors(this TBuilder builder, System.Action configurePolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder RequireCors(this TBuilder builder, string policyName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder RequireCors(this TBuilder builder, System.Action configurePolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - - public static class CorsMiddlewareExtensions + public static partial class CorsMiddlewareExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCors(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCors(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configurePolicy) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCors(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string policyName) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCors(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configurePolicy) => throw null; } - } namespace Cors { - public class CorsPolicyMetadata : Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyMetadata + public class CorsPolicyMetadata : Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyMetadata, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { public CorsPolicyMetadata(Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy Policy { get => throw null; } } - - public class DisableCorsAttribute : System.Attribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.IDisableCorsAttribute + public class DisableCorsAttribute : System.Attribute, Microsoft.AspNetCore.Cors.Infrastructure.IDisableCorsAttribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { public DisableCorsAttribute() => throw null; } - - public class EnableCorsAttribute : System.Attribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.IEnableCorsAttribute + public class EnableCorsAttribute : System.Attribute, Microsoft.AspNetCore.Cors.Infrastructure.IEnableCorsAttribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { public EnableCorsAttribute() => throw null; public EnableCorsAttribute(string policyName) => throw null; - public string PolicyName { get => throw null; set => throw null; } + public string PolicyName { get => throw null; set { } } } - namespace Infrastructure { public static class CorsConstants { - public static string AccessControlAllowCredentials; - public static string AccessControlAllowHeaders; - public static string AccessControlAllowMethods; + public static string PreflightHttpMethod; + public static string Origin; + public static string AnyOrigin; + public static string AccessControlRequestMethod; + public static string AccessControlRequestHeaders; public static string AccessControlAllowOrigin; + public static string AccessControlAllowHeaders; public static string AccessControlExposeHeaders; + public static string AccessControlAllowMethods; + public static string AccessControlAllowCredentials; public static string AccessControlMaxAge; - public static string AccessControlRequestHeaders; - public static string AccessControlRequestMethod; - public static string AnyOrigin; - public static string Origin; - public static string PreflightHttpMethod; } - public class CorsMiddleware { - public CorsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public CorsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public CorsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, string policyName) => throw null; + public CorsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider corsPolicyProvider) => throw null; } - public class CorsOptions { - public void AddDefaultPolicy(System.Action configurePolicy) => throw null; public void AddDefaultPolicy(Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; - public void AddPolicy(string name, System.Action configurePolicy) => throw null; + public void AddDefaultPolicy(System.Action configurePolicy) => throw null; public void AddPolicy(string name, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; - public CorsOptions() => throw null; - public string DefaultPolicyName { get => throw null; set => throw null; } + public void AddPolicy(string name, System.Action configurePolicy) => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy GetPolicy(string name) => throw null; + public CorsOptions() => throw null; + public string DefaultPolicyName { get => throw null; set { } } } - public class CorsPolicy { + public CorsPolicy() => throw null; + public override string ToString() => throw null; public bool AllowAnyHeader { get => throw null; } public bool AllowAnyMethod { get => throw null; } public bool AllowAnyOrigin { get => throw null; } - public CorsPolicy() => throw null; + public System.Func IsOriginAllowed { get => throw null; set { } } public System.Collections.Generic.IList ExposedHeaders { get => throw null; } public System.Collections.Generic.IList Headers { get => throw null; } - public System.Func IsOriginAllowed { get => throw null; set => throw null; } public System.Collections.Generic.IList Methods { get => throw null; } public System.Collections.Generic.IList Origins { get => throw null; } - public System.TimeSpan? PreflightMaxAge { get => throw null; set => throw null; } - public bool SupportsCredentials { get => throw null; set => throw null; } - public override string ToString() => throw null; + public System.TimeSpan? PreflightMaxAge { get => throw null; set { } } + public bool SupportsCredentials { get => throw null; set { } } } - public class CorsPolicyBuilder { - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyHeader() => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyMethod() => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyOrigin() => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowCredentials() => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy Build() => throw null; - public CorsPolicyBuilder(Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; public CorsPolicyBuilder(params string[] origins) => throw null; + public CorsPolicyBuilder(Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithOrigins(params string[] origins) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithHeaders(params string[] headers) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithExposedHeaders(params string[] exposedHeaders) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithMethods(params string[] methods) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowCredentials() => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder DisallowCredentials() => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyOrigin() => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyMethod() => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder AllowAnyHeader() => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetPreflightMaxAge(System.TimeSpan preflightMaxAge) => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetIsOriginAllowed(System.Func isOriginAllowed) => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetIsOriginAllowedToAllowWildcardSubdomains() => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder SetPreflightMaxAge(System.TimeSpan preflightMaxAge) => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithExposedHeaders(params string[] exposedHeaders) => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithHeaders(params string[] headers) => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithMethods(params string[] methods) => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithOrigins(params string[] origins) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy Build() => throw null; } - public class CorsResult { - public System.Collections.Generic.IList AllowedExposedHeaders { get => throw null; } - public System.Collections.Generic.IList AllowedHeaders { get => throw null; } - public System.Collections.Generic.IList AllowedMethods { get => throw null; } - public string AllowedOrigin { get => throw null; set => throw null; } - public CorsResult() => throw null; - public bool IsOriginAllowed { get => throw null; set => throw null; } - public bool IsPreflightRequest { get => throw null; set => throw null; } - public System.TimeSpan? PreflightMaxAge { get => throw null; set => throw null; } - public bool SupportsCredentials { get => throw null; set => throw null; } public override string ToString() => throw null; - public bool VaryByOrigin { get => throw null; set => throw null; } + public CorsResult() => throw null; + public bool IsPreflightRequest { get => throw null; set { } } + public string AllowedOrigin { get => throw null; set { } } + public bool IsOriginAllowed { get => throw null; set { } } + public bool SupportsCredentials { get => throw null; set { } } + public System.Collections.Generic.IList AllowedMethods { get => throw null; } + public System.Collections.Generic.IList AllowedHeaders { get => throw null; } + public System.Collections.Generic.IList AllowedExposedHeaders { get => throw null; } + public bool VaryByOrigin { get => throw null; set { } } + public System.TimeSpan? PreflightMaxAge { get => throw null; set { } } } - public class CorsService : Microsoft.AspNetCore.Cors.Infrastructure.ICorsService { - public virtual void ApplyResult(Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result, Microsoft.AspNetCore.Http.HttpResponse response) => throw null; public CorsService(Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public Microsoft.AspNetCore.Cors.Infrastructure.CorsResult EvaluatePolicy(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; public Microsoft.AspNetCore.Cors.Infrastructure.CorsResult EvaluatePolicy(Microsoft.AspNetCore.Http.HttpContext context, string policyName) => throw null; - public virtual void EvaluatePreflightRequest(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result) => throw null; + public Microsoft.AspNetCore.Cors.Infrastructure.CorsResult EvaluatePolicy(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy) => throw null; public virtual void EvaluateRequest(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result) => throw null; + public virtual void EvaluatePreflightRequest(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result) => throw null; + public virtual void ApplyResult(Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result, Microsoft.AspNetCore.Http.HttpResponse response) => throw null; } - public class DefaultCorsPolicyProvider : Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider { public DefaultCorsPolicyProvider(Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task GetPolicyAsync(Microsoft.AspNetCore.Http.HttpContext context, string policyName) => throw null; } - public interface ICorsPolicyMetadata : Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy Policy { get; } } - public interface ICorsPolicyProvider { System.Threading.Tasks.Task GetPolicyAsync(Microsoft.AspNetCore.Http.HttpContext context, string policyName); } - public interface ICorsService { - void ApplyResult(Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result, Microsoft.AspNetCore.Http.HttpResponse response); Microsoft.AspNetCore.Cors.Infrastructure.CorsResult EvaluatePolicy(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy); + void ApplyResult(Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result, Microsoft.AspNetCore.Http.HttpResponse response); } - public interface IDisableCorsAttribute : Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { } - public interface IEnableCorsAttribute : Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata { string PolicyName { get; set; } } - } } } @@ -175,12 +156,11 @@ namespace Extensions { namespace DependencyInjection { - public static class CorsServiceCollectionExtensions + public static partial class CorsServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCors(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCors(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.Internal.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.Internal.cs new file mode 100644 index 0000000000000..90ae7542fd6b9 --- /dev/null +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.Internal.cs @@ -0,0 +1,2 @@ +// This file contains auto-generated code. +// Generated from `Microsoft.AspNetCore.Cryptography.Internal, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.KeyDerivation.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.KeyDerivation.cs index ec08c36004953..94af8fe1d90a6 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.KeyDerivation.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Cryptography.KeyDerivation.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Cryptography.KeyDerivation, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,16 +10,14 @@ namespace KeyDerivation { public static class KeyDerivation { - public static System.Byte[] Pbkdf2(string password, System.Byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) => throw null; + public static byte[] Pbkdf2(string password, byte[] salt, Microsoft.AspNetCore.Cryptography.KeyDerivation.KeyDerivationPrf prf, int iterationCount, int numBytesRequested) => throw null; } - - public enum KeyDerivationPrf : int + public enum KeyDerivationPrf { HMACSHA1 = 0, HMACSHA256 = 1, HMACSHA512 = 2, } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Abstractions.cs index 4b0d1c2e0aad0..d4c54f046a4ae 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Abstractions.cs @@ -1,13 +1,12 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.DataProtection.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace DataProtection { - public static class DataProtectionCommonExtensions + public static partial class DataProtectionCommonExtensions { public static Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector(this Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, System.Collections.Generic.IEnumerable purposes) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector(this Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, string purpose, params string[] subPurposes) => throw null; @@ -17,25 +16,21 @@ public static class DataProtectionCommonExtensions public static string Protect(this Microsoft.AspNetCore.DataProtection.IDataProtector protector, string plaintext) => throw null; public static string Unprotect(this Microsoft.AspNetCore.DataProtection.IDataProtector protector, string protectedData) => throw null; } - public interface IDataProtectionProvider { Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector(string purpose); } - public interface IDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider { - System.Byte[] Protect(System.Byte[] plaintext); - System.Byte[] Unprotect(System.Byte[] protectedData); + byte[] Protect(byte[] plaintext); + byte[] Unprotect(byte[] protectedData); } - namespace Infrastructure { public interface IApplicationDiscriminator { string Discriminator { get; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Extensions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Extensions.cs index 8af2af938a4ac..e7eec5b5d83c5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Extensions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.Extensions.cs @@ -1,38 +1,34 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.DataProtection.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace DataProtection { - public static class DataProtectionAdvancedExtensions + public static partial class DataProtectionAdvancedExtensions { - public static System.Byte[] Protect(this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, System.Byte[] plaintext, System.TimeSpan lifetime) => throw null; + public static byte[] Protect(this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, byte[] plaintext, System.TimeSpan lifetime) => throw null; public static string Protect(this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, string plaintext, System.DateTimeOffset expiration) => throw null; public static string Protect(this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, string plaintext, System.TimeSpan lifetime) => throw null; public static Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector ToTimeLimitedDataProtector(this Microsoft.AspNetCore.DataProtection.IDataProtector protector) => throw null; public static string Unprotect(this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, string protectedData, out System.DateTimeOffset expiration) => throw null; } - public static class DataProtectionProvider { + public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(string applicationName) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory, System.Action setupAction) => throw null; - public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory, System.Action setupAction, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; - public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; - public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(string applicationName) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(string applicationName, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; + public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; + public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create(System.IO.DirectoryInfo keyDirectory, System.Action setupAction, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; } - - public interface ITimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider, Microsoft.AspNetCore.DataProtection.IDataProtector + public interface ITimeLimitedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider { Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector CreateProtector(string purpose); - System.Byte[] Protect(System.Byte[] plaintext, System.DateTimeOffset expiration); - System.Byte[] Unprotect(System.Byte[] protectedData, out System.DateTimeOffset expiration); + byte[] Protect(byte[] plaintext, System.DateTimeOffset expiration); + byte[] Unprotect(byte[] protectedData, out System.DateTimeOffset expiration); } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.cs index 7f59a4788709a..73ab590450d1f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.DataProtection.cs @@ -1,256 +1,218 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.DataProtection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace DataProtection { - public static class DataProtectionBuilderExtensions + public static partial class DataProtectionBuilderExtensions { - public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.Func factory) => throw null; + public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder SetApplicationName(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string applicationName) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink sink) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) where TImplementation : class, Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyEscrowSink => throw null; + public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyEscrowSink(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.Func factory) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddKeyManagementOptions(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.Action setupAction) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder DisableAutomaticKeyGeneration(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToFileSystem(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.IO.DirectoryInfo directory) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRegistry(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Win32.RegistryKey registryKey) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithCertificate(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithCertificate(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string thumbprint) => throw null; + public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UnprotectKeysWithAnyCertificate(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, params System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapi(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapi(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, bool protectToLocalMachine) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapiNG(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithDpapiNG(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags) => throw null; - public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder SetApplicationName(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string applicationName) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder SetDefaultKeyLifetime(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.TimeSpan lifetime) => throw null; - public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UnprotectKeysWithAnyCertificate(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, params System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCryptographicAlgorithms(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorConfiguration configuration) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration configuration) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration configuration) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration configuration) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseEphemeralDataProtectionProvider(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) => throw null; } - public class DataProtectionOptions { - public string ApplicationDiscriminator { get => throw null; set => throw null; } public DataProtectionOptions() => throw null; + public string ApplicationDiscriminator { get => throw null; set { } } } - - public static class DataProtectionUtilityExtensions + public static partial class DataProtectionUtilityExtensions { public static string GetApplicationUniqueIdentifier(this System.IServiceProvider services) => throw null; } - - public class EphemeralDataProtectionProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider + public sealed class EphemeralDataProtectionProvider : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider { - public Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector(string purpose) => throw null; public EphemeralDataProtectionProvider() => throw null; public EphemeralDataProtectionProvider(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector(string purpose) => throw null; } - public interface IDataProtectionBuilder { Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - - public interface IPersistedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider, Microsoft.AspNetCore.DataProtection.IDataProtector + public interface IPersistedDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider { - System.Byte[] DangerousUnprotect(System.Byte[] protectedData, bool ignoreRevocationErrors, out bool requiresMigration, out bool wasRevoked); + byte[] DangerousUnprotect(byte[] protectedData, bool ignoreRevocationErrors, out bool requiresMigration, out bool wasRevoked); } - public interface ISecret : System.IDisposable { + void WriteSecretIntoBuffer(System.ArraySegment buffer); int Length { get; } - void WriteSecretIntoBuffer(System.ArraySegment buffer); } - - public class Secret : Microsoft.AspNetCore.DataProtection.ISecret, System.IDisposable + public sealed class Secret : System.IDisposable, Microsoft.AspNetCore.DataProtection.ISecret { + public Secret(System.ArraySegment value) => throw null; + public Secret(byte[] value) => throw null; + public unsafe Secret(byte* secret, int secretLength) => throw null; + public Secret(Microsoft.AspNetCore.DataProtection.ISecret secret) => throw null; public void Dispose() => throw null; - public int Length { get => throw null; } public static Microsoft.AspNetCore.DataProtection.Secret Random(int numBytes) => throw null; - public Secret(System.ArraySegment value) => throw null; - public Secret(System.Byte[] value) => throw null; - public Secret(Microsoft.AspNetCore.DataProtection.ISecret secret) => throw null; - unsafe public Secret(System.Byte* secret, int secretLength) => throw null; - public void WriteSecretIntoBuffer(System.ArraySegment buffer) => throw null; - unsafe public void WriteSecretIntoBuffer(System.Byte* buffer, int bufferLength) => throw null; + public void WriteSecretIntoBuffer(System.ArraySegment buffer) => throw null; + public unsafe void WriteSecretIntoBuffer(byte* buffer, int bufferLength) => throw null; + public int Length { get => throw null; } } - namespace AuthenticatedEncryption { - public class AuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory + public sealed class AuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory { public AuthenticatedEncryptorFactory(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key) => throw null; } - - public class CngCbcAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory + public sealed class CngCbcAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory { public CngCbcAuthenticatedEncryptorFactory(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key) => throw null; } - - public class CngGcmAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory + public sealed class CngGcmAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory { public CngGcmAuthenticatedEncryptorFactory(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key) => throw null; } - - public enum EncryptionAlgorithm : int + public enum EncryptionAlgorithm { AES_128_CBC = 0, - AES_128_GCM = 3, AES_192_CBC = 1, - AES_192_GCM = 4, AES_256_CBC = 2, + AES_128_GCM = 3, + AES_192_GCM = 4, AES_256_GCM = 5, } - public interface IAuthenticatedEncryptor { - System.Byte[] Decrypt(System.ArraySegment ciphertext, System.ArraySegment additionalAuthenticatedData); - System.Byte[] Encrypt(System.ArraySegment plaintext, System.ArraySegment additionalAuthenticatedData); + byte[] Decrypt(System.ArraySegment ciphertext, System.ArraySegment additionalAuthenticatedData); + byte[] Encrypt(System.ArraySegment plaintext, System.ArraySegment additionalAuthenticatedData); } - public interface IAuthenticatedEncryptorFactory { Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key); } - - public class ManagedAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory + public sealed class ManagedAuthenticatedEncryptorFactory : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptorFactory { - public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key) => throw null; public ManagedAuthenticatedEncryptorFactory(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance(Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key) => throw null; } - - public enum ValidationAlgorithm : int + public enum ValidationAlgorithm { HMACSHA256 = 0, HMACSHA512 = 1, } - namespace ConfigurationModel { public abstract class AlgorithmConfiguration { - protected AlgorithmConfiguration() => throw null; public abstract Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor CreateNewDescriptor(); + protected AlgorithmConfiguration() => throw null; } - - public class AuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration + public sealed class AuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration { - public AuthenticatedEncryptorConfiguration() => throw null; public override Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor CreateNewDescriptor() => throw null; - public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.EncryptionAlgorithm EncryptionAlgorithm { get => throw null; set => throw null; } - public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm ValidationAlgorithm { get => throw null; set => throw null; } + public AuthenticatedEncryptorConfiguration() => throw null; + public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.EncryptionAlgorithm EncryptionAlgorithm { get => throw null; set { } } + public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm ValidationAlgorithm { get => throw null; set { } } } - - public class AuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor + public sealed class AuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor { public AuthenticatedEncryptorDescriptor(Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorConfiguration configuration, Microsoft.AspNetCore.DataProtection.ISecret masterKey) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml() => throw null; } - - public class AuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer + public sealed class AuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer { - public AuthenticatedEncryptorDescriptorDeserializer() => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor ImportFromXml(System.Xml.Linq.XElement element) => throw null; + public AuthenticatedEncryptorDescriptorDeserializer() => throw null; } - - public class CngCbcAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration + public sealed class CngCbcAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration { - public CngCbcAuthenticatedEncryptorConfiguration() => throw null; public override Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor CreateNewDescriptor() => throw null; - public string EncryptionAlgorithm { get => throw null; set => throw null; } - public int EncryptionAlgorithmKeySize { get => throw null; set => throw null; } - public string EncryptionAlgorithmProvider { get => throw null; set => throw null; } - public string HashAlgorithm { get => throw null; set => throw null; } - public string HashAlgorithmProvider { get => throw null; set => throw null; } + public CngCbcAuthenticatedEncryptorConfiguration() => throw null; + public string EncryptionAlgorithm { get => throw null; set { } } + public string EncryptionAlgorithmProvider { get => throw null; set { } } + public int EncryptionAlgorithmKeySize { get => throw null; set { } } + public string HashAlgorithm { get => throw null; set { } } + public string HashAlgorithmProvider { get => throw null; set { } } } - - public class CngCbcAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor + public sealed class CngCbcAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor { public CngCbcAuthenticatedEncryptorDescriptor(Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration configuration, Microsoft.AspNetCore.DataProtection.ISecret masterKey) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml() => throw null; } - - public class CngCbcAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer + public sealed class CngCbcAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer { - public CngCbcAuthenticatedEncryptorDescriptorDeserializer() => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor ImportFromXml(System.Xml.Linq.XElement element) => throw null; + public CngCbcAuthenticatedEncryptorDescriptorDeserializer() => throw null; } - - public class CngGcmAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration + public sealed class CngGcmAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration { - public CngGcmAuthenticatedEncryptorConfiguration() => throw null; public override Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor CreateNewDescriptor() => throw null; - public string EncryptionAlgorithm { get => throw null; set => throw null; } - public int EncryptionAlgorithmKeySize { get => throw null; set => throw null; } - public string EncryptionAlgorithmProvider { get => throw null; set => throw null; } + public CngGcmAuthenticatedEncryptorConfiguration() => throw null; + public string EncryptionAlgorithm { get => throw null; set { } } + public string EncryptionAlgorithmProvider { get => throw null; set { } } + public int EncryptionAlgorithmKeySize { get => throw null; set { } } } - - public class CngGcmAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor + public sealed class CngGcmAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor { public CngGcmAuthenticatedEncryptorDescriptor(Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration configuration, Microsoft.AspNetCore.DataProtection.ISecret masterKey) => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml() => throw null; } - - public class CngGcmAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer + public sealed class CngGcmAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer { - public CngGcmAuthenticatedEncryptorDescriptorDeserializer() => throw null; public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor ImportFromXml(System.Xml.Linq.XElement element) => throw null; + public CngGcmAuthenticatedEncryptorDescriptorDeserializer() => throw null; } - public interface IAuthenticatedEncryptorDescriptor { Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml(); } - public interface IAuthenticatedEncryptorDescriptorDeserializer { Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor ImportFromXml(System.Xml.Linq.XElement element); } - - internal interface IInternalAlgorithmConfiguration - { - } - - public class ManagedAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration + public sealed class ManagedAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration { public override Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor CreateNewDescriptor() => throw null; - public int EncryptionAlgorithmKeySize { get => throw null; set => throw null; } - public System.Type EncryptionAlgorithmType { get => throw null; set => throw null; } public ManagedAuthenticatedEncryptorConfiguration() => throw null; - public System.Type ValidationAlgorithmType { get => throw null; set => throw null; } + public System.Type EncryptionAlgorithmType { get => throw null; set { } } + public int EncryptionAlgorithmKeySize { get => throw null; set { } } + public System.Type ValidationAlgorithmType { get => throw null; set { } } } - - public class ManagedAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor + public sealed class ManagedAuthenticatedEncryptorDescriptor : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor { - public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml() => throw null; public ManagedAuthenticatedEncryptorDescriptor(Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration configuration, Microsoft.AspNetCore.DataProtection.ISecret masterKey) => throw null; + public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml() => throw null; } - - public class ManagedAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer + public sealed class ManagedAuthenticatedEncryptorDescriptorDeserializer : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptorDeserializer { public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor ImportFromXml(System.Xml.Linq.XElement element) => throw null; public ManagedAuthenticatedEncryptorDescriptorDeserializer() => throw null; } - - public static class XmlExtensions + public static partial class XmlExtensions { public static void MarkAsRequiresEncryption(this System.Xml.Linq.XElement element) => throw null; } - - public class XmlSerializedDescriptorInfo + public sealed class XmlSerializedDescriptorInfo { + public XmlSerializedDescriptorInfo(System.Xml.Linq.XElement serializedDescriptorElement, System.Type deserializerType) => throw null; public System.Type DeserializerType { get => throw null; } public System.Xml.Linq.XElement SerializedDescriptorElement { get => throw null; } - public XmlSerializedDescriptorInfo(System.Xml.Linq.XElement serializedDescriptorElement, System.Type deserializerType) => throw null; } - } } namespace Internal @@ -259,232 +221,193 @@ public interface IActivator { object CreateInstance(System.Type expectedBaseType, string implementationTypeName); } - } namespace KeyManagement { public interface IKey { - System.DateTimeOffset ActivationDate { get; } Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptor(); + System.DateTimeOffset ActivationDate { get; } System.DateTimeOffset CreationDate { get; } - Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor Descriptor { get; } System.DateTimeOffset ExpirationDate { get; } bool IsRevoked { get; } System.Guid KeyId { get; } + Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor Descriptor { get; } } - public interface IKeyEscrowSink { void Store(System.Guid keyId, System.Xml.Linq.XElement element); } - public interface IKeyManager { Microsoft.AspNetCore.DataProtection.KeyManagement.IKey CreateNewKey(System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate); System.Collections.Generic.IReadOnlyCollection GetAllKeys(); System.Threading.CancellationToken GetCacheExpirationToken(); - void RevokeAllKeys(System.DateTimeOffset revocationDate, string reason = default(string)); - void RevokeKey(System.Guid keyId, string reason = default(string)); + void RevokeKey(System.Guid keyId, string reason); + void RevokeAllKeys(System.DateTimeOffset revocationDate, string reason); } - public class KeyManagementOptions { - public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration AuthenticatedEncryptorConfiguration { get => throw null; set => throw null; } - public System.Collections.Generic.IList AuthenticatedEncryptorFactories { get => throw null; } - public bool AutoGenerateKeys { get => throw null; set => throw null; } - public System.Collections.Generic.IList KeyEscrowSinks { get => throw null; } public KeyManagementOptions() => throw null; - public System.TimeSpan NewKeyLifetime { get => throw null; set => throw null; } - public Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor XmlEncryptor { get => throw null; set => throw null; } - public Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository XmlRepository { get => throw null; set => throw null; } + public bool AutoGenerateKeys { get => throw null; set { } } + public System.TimeSpan NewKeyLifetime { get => throw null; set { } } + public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration AuthenticatedEncryptorConfiguration { get => throw null; set { } } + public System.Collections.Generic.IList KeyEscrowSinks { get => throw null; } + public Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository XmlRepository { get => throw null; set { } } + public Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor XmlEncryptor { get => throw null; set { } } + public System.Collections.Generic.IList AuthenticatedEncryptorFactories { get => throw null; } } - - public class XmlKeyManager : Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyManager, Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager + public sealed class XmlKeyManager : Microsoft.AspNetCore.DataProtection.KeyManagement.IKeyManager, Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager { + public XmlKeyManager(Microsoft.Extensions.Options.IOptions keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator) => throw null; + public XmlKeyManager(Microsoft.Extensions.Options.IOptions keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.KeyManagement.IKey CreateNewKey(System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate) => throw null; - Microsoft.AspNetCore.DataProtection.KeyManagement.IKey Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.CreateNewKey(System.Guid keyId, System.DateTimeOffset creationDate, System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate) => throw null; - Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(System.Xml.Linq.XElement keyElement) => throw null; public System.Collections.Generic.IReadOnlyCollection GetAllKeys() => throw null; public System.Threading.CancellationToken GetCacheExpirationToken() => throw null; - public void RevokeAllKeys(System.DateTimeOffset revocationDate, string reason = default(string)) => throw null; - public void RevokeKey(System.Guid keyId, string reason = default(string)) => throw null; + public void RevokeAllKeys(System.DateTimeOffset revocationDate, string reason) => throw null; + public void RevokeKey(System.Guid keyId, string reason) => throw null; + Microsoft.AspNetCore.DataProtection.KeyManagement.IKey Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.CreateNewKey(System.Guid keyId, System.DateTimeOffset creationDate, System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate) => throw null; + Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.DeserializeDescriptorFromKeyElement(System.Xml.Linq.XElement keyElement) => throw null; void Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IInternalXmlKeyManager.RevokeSingleKey(System.Guid keyId, System.DateTimeOffset revocationDate, string reason) => throw null; - public XmlKeyManager(Microsoft.Extensions.Options.IOptions keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator) => throw null; - public XmlKeyManager(Microsoft.Extensions.Options.IOptions keyManagementOptions, Microsoft.AspNetCore.DataProtection.Internal.IActivator activator, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; } - namespace Internal { - public class CacheableKeyRing + public sealed class CacheableKeyRing { } - public struct DefaultKeyResolution { public Microsoft.AspNetCore.DataProtection.KeyManagement.IKey DefaultKey; - // Stub generator skipped constructor public Microsoft.AspNetCore.DataProtection.KeyManagement.IKey FallbackKey; public bool ShouldGenerateNewKey; } - public interface ICacheableKeyRingProvider { Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.CacheableKeyRing GetCacheableKeyRing(System.DateTimeOffset now); } - public interface IDefaultKeyResolver { Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.DefaultKeyResolution ResolveDefaultKeyPolicy(System.DateTimeOffset now, System.Collections.Generic.IEnumerable allKeys); } - public interface IInternalXmlKeyManager { Microsoft.AspNetCore.DataProtection.KeyManagement.IKey CreateNewKey(System.Guid keyId, System.DateTimeOffset creationDate, System.DateTimeOffset activationDate, System.DateTimeOffset expirationDate); Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.IAuthenticatedEncryptorDescriptor DeserializeDescriptorFromKeyElement(System.Xml.Linq.XElement keyElement); void RevokeSingleKey(System.Guid keyId, System.DateTimeOffset revocationDate, string reason); } - public interface IKeyRing { + Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor GetAuthenticatedEncryptorByKeyId(System.Guid keyId, out bool isRevoked); Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor DefaultAuthenticatedEncryptor { get; } System.Guid DefaultKeyId { get; } - Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor GetAuthenticatedEncryptorByKeyId(System.Guid keyId, out bool isRevoked); } - public interface IKeyRingProvider { Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.IKeyRing GetCurrentKeyRing(); } - } } namespace Repositories { public class FileSystemXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository { - public static System.IO.DirectoryInfo DefaultKeyStorageDirectory { get => throw null; } - public System.IO.DirectoryInfo Directory { get => throw null; } public FileSystemXmlRepository(System.IO.DirectoryInfo directory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public virtual System.Collections.Generic.IReadOnlyCollection GetAllElements() => throw null; public virtual void StoreElement(System.Xml.Linq.XElement element, string friendlyName) => throw null; + public static System.IO.DirectoryInfo DefaultKeyStorageDirectory { get => throw null; } + public System.IO.DirectoryInfo Directory { get => throw null; } } - public interface IXmlRepository { System.Collections.Generic.IReadOnlyCollection GetAllElements(); void StoreElement(System.Xml.Linq.XElement element, string friendlyName); } - public class RegistryXmlRepository : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository { - public static Microsoft.Win32.RegistryKey DefaultRegistryKey { get => throw null; } - public virtual System.Collections.Generic.IReadOnlyCollection GetAllElements() => throw null; - public Microsoft.Win32.RegistryKey RegistryKey { get => throw null; } public RegistryXmlRepository(Microsoft.Win32.RegistryKey registryKey, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public virtual System.Collections.Generic.IReadOnlyCollection GetAllElements() => throw null; public virtual void StoreElement(System.Xml.Linq.XElement element, string friendlyName) => throw null; + public static Microsoft.Win32.RegistryKey DefaultRegistryKey { get => throw null; } + public Microsoft.Win32.RegistryKey RegistryKey { get => throw null; } } - } namespace XmlEncryption { public class CertificateResolver : Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolver { - public CertificateResolver() => throw null; public virtual System.Security.Cryptography.X509Certificates.X509Certificate2 ResolveCertificate(string thumbprint) => throw null; + public CertificateResolver() => throw null; } - - public class CertificateXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor + public sealed class CertificateXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor { - public CertificateXmlEncryptor(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public CertificateXmlEncryptor(string thumbprint, Microsoft.AspNetCore.DataProtection.XmlEncryption.ICertificateResolver certificateResolver, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public CertificateXmlEncryptor(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement) => throw null; } - [System.Flags] - public enum DpapiNGProtectionDescriptorFlags : int + public enum DpapiNGProtectionDescriptorFlags { - MachineKey = 32, - NamedDescriptor = 1, None = 0, + NamedDescriptor = 1, + MachineKey = 32, } - - public class DpapiNGXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor + public sealed class DpapiNGXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor { - public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; public DpapiNGXmlDecryptor() => throw null; public DpapiNGXmlDecryptor(System.IServiceProvider services) => throw null; + public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; } - - public class DpapiNGXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor + public sealed class DpapiNGXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor { public DpapiNGXmlEncryptor(string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement) => throw null; } - - public class DpapiXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor + public sealed class DpapiXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor { - public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; public DpapiXmlDecryptor() => throw null; public DpapiXmlDecryptor(System.IServiceProvider services) => throw null; + public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; } - - public class DpapiXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor + public sealed class DpapiXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor { public DpapiXmlEncryptor(bool protectToLocalMachine, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement) => throw null; } - - public class EncryptedXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor + public sealed class EncryptedXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor { - public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; public EncryptedXmlDecryptor() => throw null; public EncryptedXmlDecryptor(System.IServiceProvider services) => throw null; + public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; } - - public class EncryptedXmlInfo + public sealed class EncryptedXmlInfo { + public EncryptedXmlInfo(System.Xml.Linq.XElement encryptedElement, System.Type decryptorType) => throw null; public System.Type DecryptorType { get => throw null; } public System.Xml.Linq.XElement EncryptedElement { get => throw null; } - public EncryptedXmlInfo(System.Xml.Linq.XElement encryptedElement, System.Type decryptorType) => throw null; } - public interface ICertificateResolver { System.Security.Cryptography.X509Certificates.X509Certificate2 ResolveCertificate(string thumbprint); } - - internal interface IInternalCertificateXmlEncryptor - { - } - - internal interface IInternalEncryptedXmlDecryptor - { - } - public interface IXmlDecryptor { System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement); } - public interface IXmlEncryptor { Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement); } - - public class NullXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor + public sealed class NullXmlDecryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor { public System.Xml.Linq.XElement Decrypt(System.Xml.Linq.XElement encryptedElement) => throw null; public NullXmlDecryptor() => throw null; } - - public class NullXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor + public sealed class NullXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor { - public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement) => throw null; public NullXmlEncryptor() => throw null; public NullXmlEncryptor(System.IServiceProvider services) => throw null; + public Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo Encrypt(System.Xml.Linq.XElement plaintextElement) => throw null; } - } } } @@ -492,12 +415,11 @@ namespace Extensions { namespace DependencyInjection { - public static class DataProtectionServiceCollectionExtensions + public static partial class DataProtectionServiceCollectionExtensions { public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.Abstractions.cs index a9a42cc87acf0..2e9f7525272e5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Diagnostics.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,69 +10,60 @@ public class CompilationFailure { public CompilationFailure(string sourceFilePath, string sourceFileContent, string compiledContent, System.Collections.Generic.IEnumerable messages) => throw null; public CompilationFailure(string sourceFilePath, string sourceFileContent, string compiledContent, System.Collections.Generic.IEnumerable messages, string failureSummary) => throw null; + public string SourceFilePath { get => throw null; } + public string SourceFileContent { get => throw null; } public string CompiledContent { get => throw null; } - public string FailureSummary { get => throw null; } public System.Collections.Generic.IEnumerable Messages { get => throw null; } - public string SourceFileContent { get => throw null; } - public string SourceFilePath { get => throw null; } + public string FailureSummary { get => throw null; } } - public class DiagnosticMessage { public DiagnosticMessage(string message, string formattedMessage, string filePath, int startLine, int startColumn, int endLine, int endColumn) => throw null; - public int EndColumn { get => throw null; } - public int EndLine { get => throw null; } - public string FormattedMessage { get => throw null; } - public string Message { get => throw null; } public string SourceFilePath { get => throw null; } - public int StartColumn { get => throw null; } + public string Message { get => throw null; } public int StartLine { get => throw null; } + public int StartColumn { get => throw null; } + public int EndLine { get => throw null; } + public int EndColumn { get => throw null; } + public string FormattedMessage { get => throw null; } } - public class ErrorContext { public ErrorContext(Microsoft.AspNetCore.Http.HttpContext httpContext, System.Exception exception) => throw null; - public System.Exception Exception { get => throw null; } public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public System.Exception Exception { get => throw null; } } - public interface ICompilationException { System.Collections.Generic.IEnumerable CompilationFailures { get; } } - public interface IDeveloperPageExceptionFilter { System.Threading.Tasks.Task HandleExceptionAsync(Microsoft.AspNetCore.Diagnostics.ErrorContext errorContext, System.Func next); } - public interface IExceptionHandlerFeature { - Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; } System.Exception Error { get; } - string Path { get => throw null; } - Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } + virtual string Path { get => throw null; } + virtual Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; } + virtual Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } } - public interface IExceptionHandlerPathFeature : Microsoft.AspNetCore.Diagnostics.IExceptionHandlerFeature { - string Path { get => throw null; } + virtual string Path { get => throw null; } } - public interface IStatusCodePagesFeature { bool Enabled { get; set; } } - public interface IStatusCodeReExecuteFeature { - Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; } - string OriginalPath { get; set; } string OriginalPathBase { get; set; } + string OriginalPath { get; set; } string OriginalQueryString { get; set; } - Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } + virtual Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; } + virtual Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.HealthChecks.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.HealthChecks.cs index 72e2ff634ce4f..05b07d18d2b1e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.HealthChecks.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.HealthChecks.cs @@ -1,28 +1,25 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Diagnostics.HealthChecks, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class HealthCheckApplicationBuilderExtensions + public static partial class HealthCheckApplicationBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, int port) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, int port, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, string port) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, int port, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHealthChecks(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path, string port, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options) => throw null; } - - public static class HealthCheckEndpointRouteBuilderExtensions + public static partial class HealthCheckEndpointRouteBuilderExtensions { public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapHealthChecks(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapHealthChecks(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Diagnostics.HealthChecks.HealthCheckOptions options) => throw null; } - } namespace Diagnostics { @@ -33,16 +30,14 @@ public class HealthCheckMiddleware public HealthCheckMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions healthCheckOptions, Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckService healthCheckService) => throw null; public System.Threading.Tasks.Task InvokeAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - public class HealthCheckOptions { - public bool AllowCachingResponses { get => throw null; set => throw null; } public HealthCheckOptions() => throw null; - public System.Func Predicate { get => throw null; set => throw null; } - public System.Func ResponseWriter { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary ResultStatusCodes { get => throw null; set => throw null; } + public System.Func Predicate { get => throw null; set { } } + public System.Collections.Generic.IDictionary ResultStatusCodes { get => throw null; set { } } + public System.Func ResponseWriter { get => throw null; set { } } + public bool AllowCachingResponses { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.cs index 25407c6d53076..bbb769d2f3600 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Diagnostics.cs @@ -1,72 +1,63 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Diagnostics, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class DeveloperExceptionPageExtensions + public static partial class DeveloperExceptionPageExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDeveloperExceptionPage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDeveloperExceptionPage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions options) => throw null; } - public class DeveloperExceptionPageOptions { public DeveloperExceptionPageOptions() => throw null; - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public int SourceCodeLineCount { get => throw null; set => throw null; } + public int SourceCodeLineCount { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } } - - public static class ExceptionHandlerExtensions + public static partial class ExceptionHandlerExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseExceptionHandler(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseExceptionHandler(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string errorHandlingPath) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseExceptionHandler(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configure) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseExceptionHandler(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.ExceptionHandlerOptions options) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseExceptionHandler(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string errorHandlingPath) => throw null; } - public class ExceptionHandlerOptions { - public bool AllowStatusCode404Response { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.RequestDelegate ExceptionHandler { get => throw null; set => throw null; } public ExceptionHandlerOptions() => throw null; - public Microsoft.AspNetCore.Http.PathString ExceptionHandlingPath { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.PathString ExceptionHandlingPath { get => throw null; set { } } + public Microsoft.AspNetCore.Http.RequestDelegate ExceptionHandler { get => throw null; set { } } + public bool AllowStatusCode404Response { get => throw null; set { } } } - - public static class StatusCodePagesExtensions + public static partial class StatusCodePagesExtensions { + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.StatusCodePagesOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configuration) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Func handler) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.StatusCodePagesOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string contentType, string bodyFormat) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string queryFormat = default(string)) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithRedirects(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string locationFormat) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePages(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configuration) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string queryFormat) => throw null; } - public class StatusCodePagesOptions { - public System.Func HandleAsync { get => throw null; set => throw null; } public StatusCodePagesOptions() => throw null; + public System.Func HandleAsync { get => throw null; set { } } } - - public static class WelcomePageExtensions + public static partial class WelcomePageExtensions { - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.WelcomePageOptions options) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString path) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string path) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWelcomePage(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - public class WelcomePageOptions { - public Microsoft.AspNetCore.Http.PathString Path { get => throw null; set => throw null; } public WelcomePageOptions() => throw null; + public Microsoft.AspNetCore.Http.PathString Path { get => throw null; set { } } } - } namespace Diagnostics { @@ -75,70 +66,61 @@ public class DeveloperExceptionPageMiddleware public DeveloperExceptionPageMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, System.Diagnostics.DiagnosticSource diagnosticSource, System.Collections.Generic.IEnumerable filters) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - - public class ExceptionHandlerFeature : Microsoft.AspNetCore.Diagnostics.IExceptionHandlerFeature, Microsoft.AspNetCore.Diagnostics.IExceptionHandlerPathFeature + public class ExceptionHandlerFeature : Microsoft.AspNetCore.Diagnostics.IExceptionHandlerPathFeature, Microsoft.AspNetCore.Diagnostics.IExceptionHandlerFeature { - public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set => throw null; } - public System.Exception Error { get => throw null; set => throw null; } public ExceptionHandlerFeature() => throw null; - public string Path { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } + public System.Exception Error { get => throw null; set { } } + public string Path { get => throw null; set { } } + public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class ExceptionHandlerMiddleware { public ExceptionHandlerMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class StatusCodeContext { + public StatusCodeContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Builder.StatusCodePagesOptions options, Microsoft.AspNetCore.Http.RequestDelegate next) => throw null; public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } - public Microsoft.AspNetCore.Http.RequestDelegate Next { get => throw null; } public Microsoft.AspNetCore.Builder.StatusCodePagesOptions Options { get => throw null; } - public StatusCodeContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Builder.StatusCodePagesOptions options, Microsoft.AspNetCore.Http.RequestDelegate next) => throw null; + public Microsoft.AspNetCore.Http.RequestDelegate Next { get => throw null; } } - public class StatusCodePagesFeature : Microsoft.AspNetCore.Diagnostics.IStatusCodePagesFeature { - public bool Enabled { get => throw null; set => throw null; } public StatusCodePagesFeature() => throw null; + public bool Enabled { get => throw null; set { } } } - public class StatusCodePagesMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public StatusCodePagesMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class StatusCodeReExecuteFeature : Microsoft.AspNetCore.Diagnostics.IStatusCodeReExecuteFeature { - public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set => throw null; } - public string OriginalPath { get => throw null; set => throw null; } - public string OriginalPathBase { get => throw null; set => throw null; } - public string OriginalQueryString { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } public StatusCodeReExecuteFeature() => throw null; + public string OriginalPath { get => throw null; set { } } + public string OriginalPathBase { get => throw null; set { } } + public string OriginalQueryString { get => throw null; set { } } + public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class WelcomePageMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public WelcomePageMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class ExceptionHandlerServiceCollectionExtensions + public static partial class ExceptionHandlerServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionHandler(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionHandler(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TService : class => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HostFiltering.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HostFiltering.cs index 88f68a9785744..af53b9d20a780 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HostFiltering.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HostFiltering.cs @@ -1,22 +1,19 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.HostFiltering, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class HostFilteringBuilderExtensions + public static partial class HostFilteringBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHostFiltering(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static class HostFilteringServicesExtensions + public static partial class HostFilteringServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHostFiltering(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } namespace HostFiltering { @@ -25,15 +22,13 @@ public class HostFilteringMiddleware public HostFilteringMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Options.IOptionsMonitor optionsMonitor) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class HostFilteringOptions { - public bool AllowEmptyHosts { get => throw null; set => throw null; } - public System.Collections.Generic.IList AllowedHosts { get => throw null; set => throw null; } public HostFilteringOptions() => throw null; - public bool IncludeFailureMessage { get => throw null; set => throw null; } + public System.Collections.Generic.IList AllowedHosts { get => throw null; set { } } + public bool AllowEmptyHosts { get => throw null; set { } } + public bool IncludeFailureMessage { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Abstractions.cs index 104755283a91a..8702f880cd06b 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Hosting.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,93 +9,81 @@ namespace Hosting public static class EnvironmentName { public static string Development; - public static string Production; public static string Staging; + public static string Production; } - - public static class HostingAbstractionsWebHostBuilderExtensions + public static partial class HostingAbstractionsWebHostBuilderExtensions { + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseConfiguration(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CaptureStartupErrors(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool captureStartupErrors) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string startupAssemblyName) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseServer(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.AspNetCore.Hosting.Server.IServer server) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseEnvironment(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string environment) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseContentRoot(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string contentRoot) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseWebRoot(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string webRoot) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseUrls(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder PreferHostingUrls(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool preferHostingUrls) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHost Start(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder SuppressStatusMessages(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, bool suppressStatusMessages) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseConfiguration(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseContentRoot(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string contentRoot) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseEnvironment(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string environment) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseServer(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.AspNetCore.Hosting.Server.IServer server) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseShutdownTimeout(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.TimeSpan timeout) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string startupAssemblyName) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseUrls(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseWebRoot(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string webRoot) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHost Start(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls) => throw null; } - public static partial class HostingEnvironmentExtensions { public static bool IsDevelopment(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment) => throw null; - public static bool IsEnvironment(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, string environmentName) => throw null; - public static bool IsProduction(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment) => throw null; public static bool IsStaging(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment) => throw null; + public static bool IsProduction(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment) => throw null; + public static bool IsEnvironment(this Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment, string environmentName) => throw null; } - - public class HostingStartupAttribute : System.Attribute + public sealed class HostingStartupAttribute : System.Attribute { public HostingStartupAttribute(System.Type hostingStartupType) => throw null; public System.Type HostingStartupType { get => throw null; } } - public interface IApplicationLifetime { + void StopApplication(); System.Threading.CancellationToken ApplicationStarted { get; } - System.Threading.CancellationToken ApplicationStopped { get; } System.Threading.CancellationToken ApplicationStopping { get; } - void StopApplication(); + System.Threading.CancellationToken ApplicationStopped { get; } } - public interface IHostingEnvironment { - string ApplicationName { get; set; } - Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider { get; set; } - string ContentRootPath { get; set; } string EnvironmentName { get; set; } - Microsoft.Extensions.FileProviders.IFileProvider WebRootFileProvider { get; set; } + string ApplicationName { get; set; } string WebRootPath { get; set; } + Microsoft.Extensions.FileProviders.IFileProvider WebRootFileProvider { get; set; } + string ContentRootPath { get; set; } + Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider { get; set; } } - public interface IHostingStartup { void Configure(Microsoft.AspNetCore.Hosting.IWebHostBuilder builder); } - public interface IStartup { - void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app); System.IServiceProvider ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection services); + void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app); } - public interface IStartupConfigureContainerFilter { System.Action ConfigureContainer(System.Action container); } - public interface IStartupConfigureServicesFilter { System.Action ConfigureServices(System.Action next); } - public interface IStartupFilter { System.Action Configure(System.Action next); } - public interface IWebHost : System.IDisposable { + void Start(); + System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); Microsoft.AspNetCore.Http.Features.IFeatureCollection ServerFeatures { get; } System.IServiceProvider Services { get; } - void Start(); - System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - public interface IWebHostBuilder { Microsoft.AspNetCore.Hosting.IWebHost Build(); @@ -106,39 +93,35 @@ public interface IWebHostBuilder string GetSetting(string key); Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSetting(string key, string value); } - public interface IWebHostEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment { - Microsoft.Extensions.FileProviders.IFileProvider WebRootFileProvider { get; set; } string WebRootPath { get; set; } + Microsoft.Extensions.FileProviders.IFileProvider WebRootFileProvider { get; set; } } - public class WebHostBuilderContext { - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; set => throw null; } public WebHostBuilderContext() => throw null; + public Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; set { } } + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set { } } } - public static class WebHostDefaults { public static string ApplicationKey; - public static string CaptureStartupErrorsKey; - public static string ContentRootKey; - public static string DetailedErrorsKey; - public static string EnvironmentKey; + public static string StartupAssemblyKey; public static string HostingStartupAssembliesKey; public static string HostingStartupExcludeAssembliesKey; + public static string DetailedErrorsKey; + public static string EnvironmentKey; + public static string WebRootKey; + public static string CaptureStartupErrorsKey; + public static string ServerUrlsKey; + public static string ContentRootKey; public static string PreferHostingUrlsKey; public static string PreventHostingStartupKey; - public static string ServerUrlsKey; + public static string SuppressStatusMessagesKey; public static string ShutdownTimeoutKey; - public static string StartupAssemblyKey; public static string StaticWebAssetsKey; - public static string SuppressStatusMessagesKey; - public static string WebRootKey; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Server.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Server.Abstractions.cs index 7360c39d57086..5905742d18bc1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Server.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.Server.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Hosting.Server.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,37 +11,32 @@ namespace Server public interface IHttpApplication { TContext CreateContext(Microsoft.AspNetCore.Http.Features.IFeatureCollection contextFeatures); - void DisposeContext(TContext context, System.Exception exception); System.Threading.Tasks.Task ProcessRequestAsync(TContext context); + void DisposeContext(TContext context, System.Exception exception); } - public interface IServer : System.IDisposable { - Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } System.Threading.Tasks.Task StartAsync(Microsoft.AspNetCore.Hosting.Server.IHttpApplication application, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); + Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } } - public interface IServerIntegratedAuth { - string AuthenticationScheme { get; } bool IsEnabled { get; } + string AuthenticationScheme { get; } } - public class ServerIntegratedAuth : Microsoft.AspNetCore.Hosting.Server.IServerIntegratedAuth { - public string AuthenticationScheme { get => throw null; set => throw null; } - public bool IsEnabled { get => throw null; set => throw null; } public ServerIntegratedAuth() => throw null; + public bool IsEnabled { get => throw null; set { } } + public string AuthenticationScheme { get => throw null; set { } } } - namespace Abstractions { public interface IHostContextContainer { TContext HostContext { get; set; } } - } namespace Features { @@ -51,7 +45,6 @@ public interface IServerAddressesFeature System.Collections.Generic.ICollection Addresses { get; } bool PreferHostingUrls { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.cs index 628fe2725a4ea..2ac9ddde347b3 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Hosting.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Hosting, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,65 +8,55 @@ namespace Hosting { public class DelegateStartup : Microsoft.AspNetCore.Hosting.StartupBase { - public override void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public DelegateStartup(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory, System.Action configureApp) : base(default(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory)) => throw null; + public override void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static partial class HostingEnvironmentExtensions - { - } - public abstract class StartupBase : Microsoft.AspNetCore.Hosting.IStartup { public abstract void Configure(Microsoft.AspNetCore.Builder.IApplicationBuilder app); - public virtual void ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; System.IServiceProvider Microsoft.AspNetCore.Hosting.IStartup.ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public virtual void ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public virtual System.IServiceProvider CreateServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; protected StartupBase() => throw null; } - public abstract class StartupBase : Microsoft.AspNetCore.Hosting.StartupBase { - public virtual void ConfigureContainer(TBuilder builder) => throw null; - public override System.IServiceProvider CreateServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public StartupBase(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory) => throw null; + public override System.IServiceProvider CreateServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public virtual void ConfigureContainer(TBuilder builder) => throw null; } - public class WebHostBuilder : Microsoft.AspNetCore.Hosting.IWebHostBuilder { - public Microsoft.AspNetCore.Hosting.IWebHost Build() => throw null; - public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration(System.Action configureDelegate) => throw null; - public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; - public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; + public WebHostBuilder() => throw null; public string GetSetting(string key) => throw null; public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSetting(string key, string value) => throw null; - public WebHostBuilder() => throw null; + public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; + public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; + public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration(System.Action configureDelegate) => throw null; + public Microsoft.AspNetCore.Hosting.IWebHost Build() => throw null; } - - public static class WebHostBuilderExtensions + public static partial class WebHostBuilderExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureApp) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureApp) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Func startupFactory) where TStartup : class => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Type startupType) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) where TStartup : class => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configure) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configure) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureDelegate) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureLogging) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureLogging) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configure) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configure) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Type startupType) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) where TStartup : class => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Func startupFactory) where TStartup : class => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStaticWebAssets(this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder) => throw null; } - - public static class WebHostExtensions + public static partial class WebHostExtensions { - public static void Run(this Microsoft.AspNetCore.Hosting.IWebHost host) => throw null; - public static System.Threading.Tasks.Task RunAsync(this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; public static System.Threading.Tasks.Task StopAsync(this Microsoft.AspNetCore.Hosting.IWebHost host, System.TimeSpan timeout) => throw null; public static void WaitForShutdown(this Microsoft.AspNetCore.Hosting.IWebHost host) => throw null; - public static System.Threading.Tasks.Task WaitForShutdownAsync(this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task WaitForShutdownAsync(this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token) => throw null; + public static void Run(this Microsoft.AspNetCore.Hosting.IWebHost host) => throw null; + public static System.Threading.Tasks.Task RunAsync(this Microsoft.AspNetCore.Hosting.IWebHost host, System.Threading.CancellationToken token) => throw null; } - namespace Builder { public class ApplicationBuilderFactory : Microsoft.AspNetCore.Hosting.Builder.IApplicationBuilderFactory @@ -75,12 +64,10 @@ public class ApplicationBuilderFactory : Microsoft.AspNetCore.Hosting.Builder.IA public ApplicationBuilderFactory(System.IServiceProvider serviceProvider) => throw null; public Microsoft.AspNetCore.Builder.IApplicationBuilder CreateBuilder(Microsoft.AspNetCore.Http.Features.IFeatureCollection serverFeatures) => throw null; } - public interface IApplicationBuilderFactory { Microsoft.AspNetCore.Builder.IApplicationBuilder CreateBuilder(Microsoft.AspNetCore.Http.Features.IFeatureCollection serverFeatures); } - } namespace Infrastructure { @@ -88,7 +75,6 @@ public interface ISupportsConfigureWebHost { Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost(System.Action configure, System.Action configureOptions); } - public interface ISupportsStartup { Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure(System.Action configure); @@ -96,7 +82,6 @@ public interface ISupportsStartup Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(System.Type startupType); Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup(System.Func startupFactory); } - } namespace Server { @@ -104,50 +89,45 @@ namespace Features { public class ServerAddressesFeature : Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature { - public System.Collections.Generic.ICollection Addresses { get => throw null; } - public bool PreferHostingUrls { get => throw null; set => throw null; } public ServerAddressesFeature() => throw null; + public System.Collections.Generic.ICollection Addresses { get => throw null; } + public bool PreferHostingUrls { get => throw null; set { } } } - } } namespace StaticWebAssets { public class StaticWebAssetsLoader { - public StaticWebAssetsLoader() => throw null; public static void UseStaticWebAssets(Microsoft.AspNetCore.Hosting.IWebHostEnvironment environment, Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; + public StaticWebAssetsLoader() => throw null; } - } } namespace Http { public class DefaultHttpContextFactory : Microsoft.AspNetCore.Http.IHttpContextFactory { - public Microsoft.AspNetCore.Http.HttpContext Create(Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection) => throw null; public DefaultHttpContextFactory(System.IServiceProvider serviceProvider) => throw null; + public Microsoft.AspNetCore.Http.HttpContext Create(Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection) => throw null; public void Dispose(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - } } namespace Extensions { namespace Hosting { - public static class GenericHostWebHostBuilderExtensions + public static partial class GenericHostWebHostBuilderExtensions { public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost(this Microsoft.Extensions.Hosting.IHostBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost(this Microsoft.Extensions.Hosting.IHostBuilder builder, System.Action configure, System.Action configureWebHostBuilder) => throw null; } - public class WebHostBuilderOptions { - public bool SuppressEnvironmentConfiguration { get => throw null; set => throw null; } public WebHostBuilderOptions() => throw null; + public bool SuppressEnvironmentConfiguration { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Html.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Html.Abstractions.cs index f645b2a4f44ee..88ed1afe734f7 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Html.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Html.Abstractions.cs @@ -1,76 +1,68 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Html.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Html { - public class HtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContent, Microsoft.AspNetCore.Html.IHtmlContentBuilder, Microsoft.AspNetCore.Html.IHtmlContentContainer + public class HtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContentBuilder, Microsoft.AspNetCore.Html.IHtmlContentContainer, Microsoft.AspNetCore.Html.IHtmlContent { + public HtmlContentBuilder() => throw null; + public HtmlContentBuilder(int capacity) => throw null; + public HtmlContentBuilder(System.Collections.Generic.IList entries) => throw null; public Microsoft.AspNetCore.Html.IHtmlContentBuilder Append(string unencoded) => throw null; public Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent htmlContent) => throw null; public Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtml(string encoded) => throw null; public Microsoft.AspNetCore.Html.IHtmlContentBuilder Clear() => throw null; public void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; - public int Count { get => throw null; } - public HtmlContentBuilder() => throw null; - public HtmlContentBuilder(System.Collections.Generic.IList entries) => throw null; - public HtmlContentBuilder(int capacity) => throw null; public void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public int Count { get => throw null; } } - - public static class HtmlContentBuilderExtensions + public static partial class HtmlContentBuilderExtensions { - public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendFormat(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, System.IFormatProvider formatProvider, string format, params object[] args) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendFormat(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string format, params object[] args) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtmlLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string encoded) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendFormat(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, System.IFormatProvider formatProvider, string format, params object[] args) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string unencoded) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtmlLine(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string encoded) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetContent(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string unencoded) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetHtmlContent(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetHtmlContent(this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string encoded) => throw null; } - public class HtmlFormattableString : Microsoft.AspNetCore.Html.IHtmlContent { - public HtmlFormattableString(System.IFormatProvider formatProvider, string format, params object[] args) => throw null; public HtmlFormattableString(string format, params object[] args) => throw null; + public HtmlFormattableString(System.IFormatProvider formatProvider, string format, params object[] args) => throw null; public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; } - public class HtmlString : Microsoft.AspNetCore.Html.IHtmlContent { + public static Microsoft.AspNetCore.Html.HtmlString NewLine; public static Microsoft.AspNetCore.Html.HtmlString Empty; public HtmlString(string value) => throw null; - public static Microsoft.AspNetCore.Html.HtmlString NewLine; + public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public override string ToString() => throw null; public string Value { get => throw null; } - public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; } - public interface IHtmlContent { void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder); } - - public interface IHtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContent, Microsoft.AspNetCore.Html.IHtmlContentContainer + public interface IHtmlContentBuilder : Microsoft.AspNetCore.Html.IHtmlContentContainer, Microsoft.AspNetCore.Html.IHtmlContent { - Microsoft.AspNetCore.Html.IHtmlContentBuilder Append(string unencoded); Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent content); + Microsoft.AspNetCore.Html.IHtmlContentBuilder Append(string unencoded); Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendHtml(string encoded); Microsoft.AspNetCore.Html.IHtmlContentBuilder Clear(); } - public interface IHtmlContentContainer : Microsoft.AspNetCore.Html.IHtmlContent { void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder builder); void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder builder); } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Abstractions.cs index ecfba7c73fb2e..810c37376b7fb 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,105 +8,90 @@ namespace Builder { public abstract class EndpointBuilder { - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } public abstract Microsoft.AspNetCore.Http.Endpoint Build(); - public string DisplayName { get => throw null; set => throw null; } protected EndpointBuilder() => throw null; public System.Collections.Generic.IList> FilterFactories { get => throw null; } + public Microsoft.AspNetCore.Http.RequestDelegate RequestDelegate { get => throw null; set { } } + public string DisplayName { get => throw null; set { } } public System.Collections.Generic.IList Metadata { get => throw null; } - public Microsoft.AspNetCore.Http.RequestDelegate RequestDelegate { get => throw null; set => throw null; } + public System.IServiceProvider ApplicationServices { get => throw null; set { } } } - - public interface IApplicationBuilder - { - System.IServiceProvider ApplicationServices { get; set; } - Microsoft.AspNetCore.Http.RequestDelegate Build(); - Microsoft.AspNetCore.Builder.IApplicationBuilder New(); - System.Collections.Generic.IDictionary Properties { get; } - Microsoft.AspNetCore.Http.Features.IFeatureCollection ServerFeatures { get; } - Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware); - } - public interface IEndpointConventionBuilder { void Add(System.Action convention); - void Finally(System.Action finallyConvention) => throw null; + virtual void Finally(System.Action finallyConvention) => throw null; } - - public static class MapExtensions + public static partial class MapExtensions { + public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathMatch, System.Action configuration) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathMatch, System.Action configuration) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathMatch, bool preserveMatchedPathSegment, System.Action configuration) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathMatch, System.Action configuration) => throw null; } - - public static class MapWhenExtensions + public static partial class MapWhenExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder MapWhen(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Func predicate, System.Action configuration) => throw null; } - - public static class RunExtensions + public static partial class RunExtensions { public static void Run(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; } - - public static class UseExtensions + public static partial class UseExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder Use(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Func, System.Threading.Tasks.Task> middleware) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder Use(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Func middleware) => throw null; } - - public static class UseMiddlewareExtensions + public static partial class UseMiddlewareExtensions { - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Type middleware, params object[] args) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, params object[] args) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMiddleware(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Type middleware, params object[] args) => throw null; } - - public static class UsePathBaseExtensions + public static partial class UsePathBaseExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UsePathBase(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathBase) => throw null; } - - public static class UseWhenExtensions + public static partial class UseWhenExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWhen(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Func predicate, System.Action configuration) => throw null; } - + public interface IApplicationBuilder + { + Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware); + Microsoft.AspNetCore.Builder.IApplicationBuilder New(); + Microsoft.AspNetCore.Http.RequestDelegate Build(); + System.IServiceProvider ApplicationServices { get; set; } + Microsoft.AspNetCore.Http.Features.IFeatureCollection ServerFeatures { get; } + System.Collections.Generic.IDictionary Properties { get; } + } namespace Extensions { public class MapMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public MapMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Builder.Extensions.MapOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class MapOptions { - public Microsoft.AspNetCore.Http.RequestDelegate Branch { get => throw null; set => throw null; } public MapOptions() => throw null; - public Microsoft.AspNetCore.Http.PathString PathMatch { get => throw null; set => throw null; } - public bool PreserveMatchedPathSegment { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.PathString PathMatch { get => throw null; set { } } + public Microsoft.AspNetCore.Http.RequestDelegate Branch { get => throw null; set { } } + public bool PreserveMatchedPathSegment { get => throw null; set { } } } - public class MapWhenMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public MapWhenMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Builder.Extensions.MapWhenOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class MapWhenOptions { - public Microsoft.AspNetCore.Http.RequestDelegate Branch { get => throw null; set => throw null; } public MapWhenOptions() => throw null; - public System.Func Predicate { get => throw null; set => throw null; } + public System.Func Predicate { get => throw null; set { } } + public Microsoft.AspNetCore.Http.RequestDelegate Branch { get => throw null; set { } } } - public class UsePathBaseMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public UsePathBaseMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.PathString pathBase) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - } } namespace Cors @@ -117,199 +101,164 @@ namespace Infrastructure public interface ICorsMetadata { } - } } namespace Http { - public class AsParametersAttribute : System.Attribute + public sealed class AsParametersAttribute : System.Attribute { public AsParametersAttribute() => throw null; } - public class BadHttpRequestException : System.IO.IOException { - public BadHttpRequestException(string message) => throw null; - public BadHttpRequestException(string message, System.Exception innerException) => throw null; public BadHttpRequestException(string message, int statusCode) => throw null; + public BadHttpRequestException(string message) => throw null; public BadHttpRequestException(string message, int statusCode, System.Exception innerException) => throw null; + public BadHttpRequestException(string message, System.Exception innerException) => throw null; public int StatusCode { get => throw null; } } - public abstract class ConnectionInfo { - public abstract System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get; set; } + public abstract System.Threading.Tasks.Task GetClientCertificateAsync(System.Threading.CancellationToken cancellationToken); + public virtual void RequestClose() => throw null; protected ConnectionInfo() => throw null; - public abstract System.Threading.Tasks.Task GetClientCertificateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); public abstract string Id { get; set; } - public abstract System.Net.IPAddress LocalIpAddress { get; set; } - public abstract int LocalPort { get; set; } public abstract System.Net.IPAddress RemoteIpAddress { get; set; } public abstract int RemotePort { get; set; } - public virtual void RequestClose() => throw null; + public abstract System.Net.IPAddress LocalIpAddress { get; set; } + public abstract int LocalPort { get; set; } + public abstract System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get; set; } } - public class CookieBuilder { public Microsoft.AspNetCore.Http.CookieOptions Build(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public virtual Microsoft.AspNetCore.Http.CookieOptions Build(Microsoft.AspNetCore.Http.HttpContext context, System.DateTimeOffset expiresFrom) => throw null; public CookieBuilder() => throw null; - public virtual string Domain { get => throw null; set => throw null; } - public virtual System.TimeSpan? Expiration { get => throw null; set => throw null; } + public virtual string Name { get => throw null; set { } } + public virtual string Path { get => throw null; set { } } + public virtual string Domain { get => throw null; set { } } + public virtual bool HttpOnly { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Http.SameSiteMode SameSite { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Http.CookieSecurePolicy SecurePolicy { get => throw null; set { } } + public virtual System.TimeSpan? Expiration { get => throw null; set { } } + public virtual System.TimeSpan? MaxAge { get => throw null; set { } } + public virtual bool IsEssential { get => throw null; set { } } public System.Collections.Generic.IList Extensions { get => throw null; } - public virtual bool HttpOnly { get => throw null; set => throw null; } - public virtual bool IsEssential { get => throw null; set => throw null; } - public virtual System.TimeSpan? MaxAge { get => throw null; set => throw null; } - public virtual string Name { get => throw null; set => throw null; } - public virtual string Path { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Http.SameSiteMode SameSite { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Http.CookieSecurePolicy SecurePolicy { get => throw null; set => throw null; } } - - public enum CookieSecurePolicy : int + public enum CookieSecurePolicy { + SameAsRequest = 0, Always = 1, None = 2, - SameAsRequest = 0, } - - public class DefaultEndpointFilterInvocationContext : Microsoft.AspNetCore.Http.EndpointFilterInvocationContext + public sealed class DefaultEndpointFilterInvocationContext : Microsoft.AspNetCore.Http.EndpointFilterInvocationContext { - public override System.Collections.Generic.IList Arguments { get => throw null; } public DefaultEndpointFilterInvocationContext(Microsoft.AspNetCore.Http.HttpContext httpContext, params object[] arguments) => throw null; public override T GetArgument(int index) => throw null; public override Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public override System.Collections.Generic.IList Arguments { get => throw null; } } - - public class Endpoint - { - public string DisplayName { get => throw null; } - public Endpoint(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Http.EndpointMetadataCollection metadata, string displayName) => throw null; - public Microsoft.AspNetCore.Http.EndpointMetadataCollection Metadata { get => throw null; } - public Microsoft.AspNetCore.Http.RequestDelegate RequestDelegate { get => throw null; } - public override string ToString() => throw null; - } - public delegate System.Threading.Tasks.ValueTask EndpointFilterDelegate(Microsoft.AspNetCore.Http.EndpointFilterInvocationContext context); - - public class EndpointFilterFactoryContext + public sealed class EndpointFilterFactoryContext { - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } public EndpointFilterFactoryContext() => throw null; - public System.Reflection.MethodInfo MethodInfo { get => throw null; set => throw null; } + public System.Reflection.MethodInfo MethodInfo { get => throw null; set { } } + public System.IServiceProvider ApplicationServices { get => throw null; set { } } } - public abstract class EndpointFilterInvocationContext { - public abstract System.Collections.Generic.IList Arguments { get; } - protected EndpointFilterInvocationContext() => throw null; public abstract T GetArgument(int index); + protected EndpointFilterInvocationContext() => throw null; public abstract Microsoft.AspNetCore.Http.HttpContext HttpContext { get; } + public abstract System.Collections.Generic.IList Arguments { get; } } - - public static class EndpointHttpContextExtensions + public static partial class HeaderDictionaryExtensions { - public static Microsoft.AspNetCore.Http.Endpoint GetEndpoint(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; - public static void SetEndpoint(this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint endpoint) => throw null; + public static void Append(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, Microsoft.Extensions.Primitives.StringValues value) => throw null; + public static void AppendCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values) => throw null; + public static string[] GetCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key) => throw null; + public static void SetCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values) => throw null; } - - public class EndpointMetadataCollection : System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public static partial class HttpResponseWritingExtensions { - public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable - { - public object Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public bool MoveNext() => throw null; - public void Reset() => throw null; - } - - - public int Count { get => throw null; } - public static Microsoft.AspNetCore.Http.EndpointMetadataCollection Empty; - public EndpointMetadataCollection(System.Collections.Generic.IEnumerable items) => throw null; - public EndpointMetadataCollection(params object[] items) => throw null; - public Microsoft.AspNetCore.Http.EndpointMetadataCollection.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public T GetMetadata() where T : class => throw null; - public System.Collections.Generic.IReadOnlyList GetOrderedMetadata() where T : class => throw null; - public T GetRequiredMetadata() where T : class => throw null; - public object this[int index] { get => throw null; } + public static System.Threading.Tasks.Task WriteAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string text, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string text, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken) => throw null; + } + public static partial class RequestTrailerExtensions + { + public static Microsoft.Extensions.Primitives.StringValues GetDeclaredTrailers(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static bool SupportsTrailers(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static bool CheckTrailersAvailable(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static Microsoft.Extensions.Primitives.StringValues GetTrailer(this Microsoft.AspNetCore.Http.HttpRequest request, string trailerName) => throw null; + } + public static partial class ResponseTrailerExtensions + { + public static void DeclareTrailer(this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName) => throw null; + public static bool SupportsTrailers(this Microsoft.AspNetCore.Http.HttpResponse response) => throw null; + public static void AppendTrailer(this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName, Microsoft.Extensions.Primitives.StringValues trailerValues) => throw null; } - public struct FragmentString : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Http.FragmentString left, Microsoft.AspNetCore.Http.FragmentString right) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Http.FragmentString left, Microsoft.AspNetCore.Http.FragmentString right) => throw null; public static Microsoft.AspNetCore.Http.FragmentString Empty; - public bool Equals(Microsoft.AspNetCore.Http.FragmentString other) => throw null; - public override bool Equals(object obj) => throw null; - // Stub generator skipped constructor public FragmentString(string value) => throw null; - public static Microsoft.AspNetCore.Http.FragmentString FromUriComponent(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.FragmentString FromUriComponent(string uriComponent) => throw null; - public override int GetHashCode() => throw null; - public bool HasValue { get => throw null; } public override string ToString() => throw null; public string ToUriComponent() => throw null; + public static Microsoft.AspNetCore.Http.FragmentString FromUriComponent(string uriComponent) => throw null; + public static Microsoft.AspNetCore.Http.FragmentString FromUriComponent(System.Uri uri) => throw null; + public bool Equals(Microsoft.AspNetCore.Http.FragmentString other) => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Http.FragmentString left, Microsoft.AspNetCore.Http.FragmentString right) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Http.FragmentString left, Microsoft.AspNetCore.Http.FragmentString right) => throw null; public string Value { get => throw null; } + public bool HasValue { get => throw null; } } - - public static class HeaderDictionaryExtensions - { - public static void Append(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, Microsoft.Extensions.Primitives.StringValues value) => throw null; - public static void AppendCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values) => throw null; - public static string[] GetCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key) => throw null; - public static void SetCommaSeparatedValues(this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values) => throw null; - } - public struct HostString : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Http.HostString left, Microsoft.AspNetCore.Http.HostString right) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Http.HostString left, Microsoft.AspNetCore.Http.HostString right) => throw null; + public HostString(string value) => throw null; + public HostString(string host, int port) => throw null; + public override string ToString() => throw null; + public string ToUriComponent() => throw null; + public static Microsoft.AspNetCore.Http.HostString FromUriComponent(string uriComponent) => throw null; + public static Microsoft.AspNetCore.Http.HostString FromUriComponent(System.Uri uri) => throw null; + public static bool MatchesAny(Microsoft.Extensions.Primitives.StringSegment value, System.Collections.Generic.IList patterns) => throw null; public bool Equals(Microsoft.AspNetCore.Http.HostString other) => throw null; public override bool Equals(object obj) => throw null; - public static Microsoft.AspNetCore.Http.HostString FromUriComponent(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.HostString FromUriComponent(string uriComponent) => throw null; public override int GetHashCode() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Http.HostString left, Microsoft.AspNetCore.Http.HostString right) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Http.HostString left, Microsoft.AspNetCore.Http.HostString right) => throw null; + public string Value { get => throw null; } public bool HasValue { get => throw null; } public string Host { get => throw null; } - // Stub generator skipped constructor - public HostString(string value) => throw null; - public HostString(string host, int port) => throw null; - public static bool MatchesAny(Microsoft.Extensions.Primitives.StringSegment value, System.Collections.Generic.IList patterns) => throw null; public int? Port { get => throw null; } - public override string ToString() => throw null; - public string ToUriComponent() => throw null; - public string Value { get => throw null; } } - public abstract class HttpContext { public abstract void Abort(); - public abstract Microsoft.AspNetCore.Http.ConnectionInfo Connection { get; } - public abstract Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } protected HttpContext() => throw null; - public abstract System.Collections.Generic.IDictionary Items { get; set; } + public abstract Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } public abstract Microsoft.AspNetCore.Http.HttpRequest Request { get; } - public abstract System.Threading.CancellationToken RequestAborted { get; set; } - public abstract System.IServiceProvider RequestServices { get; set; } public abstract Microsoft.AspNetCore.Http.HttpResponse Response { get; } - public abstract Microsoft.AspNetCore.Http.ISession Session { get; set; } - public abstract string TraceIdentifier { get; set; } - public abstract System.Security.Claims.ClaimsPrincipal User { get; set; } + public abstract Microsoft.AspNetCore.Http.ConnectionInfo Connection { get; } public abstract Microsoft.AspNetCore.Http.WebSocketManager WebSockets { get; } + public abstract System.Security.Claims.ClaimsPrincipal User { get; set; } + public abstract System.Collections.Generic.IDictionary Items { get; set; } + public abstract System.IServiceProvider RequestServices { get; set; } + public abstract System.Threading.CancellationToken RequestAborted { get; set; } + public abstract string TraceIdentifier { get; set; } + public abstract Microsoft.AspNetCore.Http.ISession Session { get; set; } } - public static class HttpMethods { public static string Connect; public static string Delete; - public static bool Equals(string methodA, string methodB) => throw null; public static string Get; - public static string GetCanonicalizedValue(string method) => throw null; public static string Head; + public static string Options; + public static string Patch; + public static string Post; + public static string Put; + public static string Trace; public static bool IsConnect(string method) => throw null; public static bool IsDelete(string method) => throw null; public static bool IsGet(string method) => throw null; @@ -319,16 +268,11 @@ public static class HttpMethods public static bool IsPost(string method) => throw null; public static bool IsPut(string method) => throw null; public static bool IsTrace(string method) => throw null; - public static string Options; - public static string Patch; - public static string Post; - public static string Put; - public static string Trace; + public static string GetCanonicalizedValue(string method) => throw null; + public static bool Equals(string methodA, string methodB) => throw null; } - public static class HttpProtocol { - public static string GetHttpProtocol(System.Version version) => throw null; public static string Http09; public static string Http10; public static string Http11; @@ -339,471 +283,435 @@ public static class HttpProtocol public static bool IsHttp11(string protocol) => throw null; public static bool IsHttp2(string protocol) => throw null; public static bool IsHttp3(string protocol) => throw null; + public static string GetHttpProtocol(System.Version version) => throw null; } - public abstract class HttpRequest { - public abstract System.IO.Stream Body { get; set; } - public virtual System.IO.Pipelines.PipeReader BodyReader { get => throw null; } - public abstract System.Int64? ContentLength { get; set; } - public abstract string ContentType { get; set; } - public abstract Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get; set; } - public abstract Microsoft.AspNetCore.Http.IFormCollection Form { get; set; } - public abstract bool HasFormContentType { get; } - public abstract Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; } - public abstract Microsoft.AspNetCore.Http.HostString Host { get; set; } - public abstract Microsoft.AspNetCore.Http.HttpContext HttpContext { get; } + public abstract System.Threading.Tasks.Task ReadFormAsync(System.Threading.CancellationToken cancellationToken); protected HttpRequest() => throw null; - public abstract bool IsHttps { get; set; } + public abstract Microsoft.AspNetCore.Http.HttpContext HttpContext { get; } public abstract string Method { get; set; } - public abstract Microsoft.AspNetCore.Http.PathString Path { get; set; } + public abstract string Scheme { get; set; } + public abstract bool IsHttps { get; set; } + public abstract Microsoft.AspNetCore.Http.HostString Host { get; set; } public abstract Microsoft.AspNetCore.Http.PathString PathBase { get; set; } - public abstract string Protocol { get; set; } - public abstract Microsoft.AspNetCore.Http.IQueryCollection Query { get; set; } + public abstract Microsoft.AspNetCore.Http.PathString Path { get; set; } public abstract Microsoft.AspNetCore.Http.QueryString QueryString { get; set; } - public abstract System.Threading.Tasks.Task ReadFormAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public abstract string Scheme { get; set; } + public abstract Microsoft.AspNetCore.Http.IQueryCollection Query { get; set; } + public abstract string Protocol { get; set; } + public abstract Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; } + public abstract Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get; set; } + public abstract long? ContentLength { get; set; } + public abstract string ContentType { get; set; } + public abstract System.IO.Stream Body { get; set; } + public virtual System.IO.Pipelines.PipeReader BodyReader { get => throw null; } + public abstract bool HasFormContentType { get; } + public abstract Microsoft.AspNetCore.Http.IFormCollection Form { get; set; } + public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public abstract class HttpResponse { + public abstract void OnStarting(System.Func callback, object state); + public virtual void OnStarting(System.Func callback) => throw null; + public abstract void OnCompleted(System.Func callback, object state); + public virtual void RegisterForDispose(System.IDisposable disposable) => throw null; + public virtual void RegisterForDisposeAsync(System.IAsyncDisposable disposable) => throw null; + public virtual void OnCompleted(System.Func callback) => throw null; + public virtual void Redirect(string location) => throw null; + public abstract void Redirect(string location, bool permanent); + public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task CompleteAsync() => throw null; + protected HttpResponse() => throw null; + public abstract Microsoft.AspNetCore.Http.HttpContext HttpContext { get; } + public abstract int StatusCode { get; set; } + public abstract Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; } public abstract System.IO.Stream Body { get; set; } public virtual System.IO.Pipelines.PipeWriter BodyWriter { get => throw null; } - public virtual System.Threading.Tasks.Task CompleteAsync() => throw null; - public abstract System.Int64? ContentLength { get; set; } + public abstract long? ContentLength { get; set; } public abstract string ContentType { get; set; } public abstract Microsoft.AspNetCore.Http.IResponseCookies Cookies { get; } public abstract bool HasStarted { get; } - public abstract Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; } - public abstract Microsoft.AspNetCore.Http.HttpContext HttpContext { get; } - protected HttpResponse() => throw null; - public virtual void OnCompleted(System.Func callback) => throw null; - public abstract void OnCompleted(System.Func callback, object state); - public virtual void OnStarting(System.Func callback) => throw null; - public abstract void OnStarting(System.Func callback, object state); - public virtual void Redirect(string location) => throw null; - public abstract void Redirect(string location, bool permanent); - public virtual void RegisterForDispose(System.IDisposable disposable) => throw null; - public virtual void RegisterForDisposeAsync(System.IAsyncDisposable disposable) => throw null; - public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract int StatusCode { get; set; } - } - - public static class HttpResponseWritingExtensions - { - public static System.Threading.Tasks.Task WriteAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string text, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string text, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - } - - public class HttpValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails - { - public System.Collections.Generic.IDictionary Errors { get => throw null; } - public HttpValidationProblemDetails() => throw null; - public HttpValidationProblemDetails(System.Collections.Generic.IDictionary errors) => throw null; } - - public interface IBindableFromHttpContext where TSelf : class, Microsoft.AspNetCore.Http.IBindableFromHttpContext - { - static abstract System.Threading.Tasks.ValueTask BindAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Reflection.ParameterInfo parameter); - } - public interface IContentTypeHttpResult { string ContentType { get; } } - - public interface IEndpointFilter - { - System.Threading.Tasks.ValueTask InvokeAsync(Microsoft.AspNetCore.Http.EndpointFilterInvocationContext context, Microsoft.AspNetCore.Http.EndpointFilterDelegate next); - } - public interface IFileHttpResult { string ContentType { get; } string FileDownloadName { get; } } - - public interface IHttpContextAccessor + public interface INestedHttpResult { - Microsoft.AspNetCore.Http.HttpContext HttpContext { get; set; } + Microsoft.AspNetCore.Http.IResult Result { get; } } - - public interface IHttpContextFactory + public interface IResult { - Microsoft.AspNetCore.Http.HttpContext Create(Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection); - void Dispose(Microsoft.AspNetCore.Http.HttpContext httpContext); + System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); } - - public interface IMiddleware + public interface IStatusCodeHttpResult { - System.Threading.Tasks.Task InvokeAsync(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.RequestDelegate next); + int? StatusCode { get; } } - - public interface IMiddlewareFactory + public interface IValueHttpResult { - Microsoft.AspNetCore.Http.IMiddleware Create(System.Type middlewareType); - void Release(Microsoft.AspNetCore.Http.IMiddleware middleware); + object Value { get; } } - - public interface INestedHttpResult + public interface IValueHttpResult { - Microsoft.AspNetCore.Http.IResult Result { get; } + TValue Value { get; } } - - public interface IProblemDetailsService + public interface IBindableFromHttpContext where TSelf : class, Microsoft.AspNetCore.Http.IBindableFromHttpContext { - System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.Http.ProblemDetailsContext context); + abstract static System.Threading.Tasks.ValueTask BindAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Reflection.ParameterInfo parameter); } - - public interface IProblemDetailsWriter + public interface IEndpointFilter { - bool CanWrite(Microsoft.AspNetCore.Http.ProblemDetailsContext context); - System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.Http.ProblemDetailsContext context); + System.Threading.Tasks.ValueTask InvokeAsync(Microsoft.AspNetCore.Http.EndpointFilterInvocationContext context, Microsoft.AspNetCore.Http.EndpointFilterDelegate next); } - - public interface IResult + public interface IHttpContextAccessor { - System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); + Microsoft.AspNetCore.Http.HttpContext HttpContext { get; set; } } - - public interface IStatusCodeHttpResult + public interface IHttpContextFactory { - int? StatusCode { get; } + Microsoft.AspNetCore.Http.HttpContext Create(Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection); + void Dispose(Microsoft.AspNetCore.Http.HttpContext httpContext); } - - public interface IValueHttpResult + public interface IMiddleware { - object Value { get; } + System.Threading.Tasks.Task InvokeAsync(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.RequestDelegate next); } - - public interface IValueHttpResult + public interface IMiddlewareFactory { - TValue Value { get; } + Microsoft.AspNetCore.Http.IMiddleware Create(System.Type middlewareType); + void Release(Microsoft.AspNetCore.Http.IMiddleware middleware); } - public struct PathString : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; - public static Microsoft.AspNetCore.Http.PathString operator +(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; - public static string operator +(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; - public static string operator +(Microsoft.AspNetCore.Http.PathString left, string right) => throw null; - public static string operator +(string left, Microsoft.AspNetCore.Http.PathString right) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; - public Microsoft.AspNetCore.Http.PathString Add(Microsoft.AspNetCore.Http.PathString other) => throw null; - public string Add(Microsoft.AspNetCore.Http.QueryString other) => throw null; public static Microsoft.AspNetCore.Http.PathString Empty; - public bool Equals(Microsoft.AspNetCore.Http.PathString other) => throw null; - public bool Equals(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType) => throw null; - public override bool Equals(object obj) => throw null; - public static Microsoft.AspNetCore.Http.PathString FromUriComponent(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.PathString FromUriComponent(string uriComponent) => throw null; - public override int GetHashCode() => throw null; - public bool HasValue { get => throw null; } - // Stub generator skipped constructor public PathString(string value) => throw null; + public override string ToString() => throw null; + public string ToUriComponent() => throw null; + public static Microsoft.AspNetCore.Http.PathString FromUriComponent(string uriComponent) => throw null; + public static Microsoft.AspNetCore.Http.PathString FromUriComponent(System.Uri uri) => throw null; public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other) => throw null; public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType) => throw null; - public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; - public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; + public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; - public override string ToString() => throw null; - public string ToUriComponent() => throw null; - public string Value { get => throw null; } - public static implicit operator string(Microsoft.AspNetCore.Http.PathString path) => throw null; + public bool StartsWithSegments(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining) => throw null; + public Microsoft.AspNetCore.Http.PathString Add(Microsoft.AspNetCore.Http.PathString other) => throw null; + public string Add(Microsoft.AspNetCore.Http.QueryString other) => throw null; + public bool Equals(Microsoft.AspNetCore.Http.PathString other) => throw null; + public bool Equals(Microsoft.AspNetCore.Http.PathString other, System.StringComparison comparisonType) => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; + public static string operator +(string left, Microsoft.AspNetCore.Http.PathString right) => throw null; + public static string operator +(Microsoft.AspNetCore.Http.PathString left, string right) => throw null; + public static Microsoft.AspNetCore.Http.PathString operator +(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.PathString right) => throw null; + public static string operator +(Microsoft.AspNetCore.Http.PathString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; public static implicit operator Microsoft.AspNetCore.Http.PathString(string s) => throw null; + public static implicit operator string(Microsoft.AspNetCore.Http.PathString path) => throw null; + public string Value { get => throw null; } + public bool HasValue { get => throw null; } } - - public class ProblemDetailsContext + public class HttpValidationProblemDetails : Microsoft.AspNetCore.Mvc.ProblemDetails + { + public HttpValidationProblemDetails() => throw null; + public HttpValidationProblemDetails(System.Collections.Generic.IDictionary errors) => throw null; + public System.Collections.Generic.IDictionary Errors { get => throw null; } + } + public interface IProblemDetailsService + { + System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.Http.ProblemDetailsContext context); + } + public interface IProblemDetailsWriter + { + System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.Http.ProblemDetailsContext context); + bool CanWrite(Microsoft.AspNetCore.Http.ProblemDetailsContext context); + } + public sealed class ProblemDetailsContext { - public Microsoft.AspNetCore.Http.EndpointMetadataCollection AdditionalMetadata { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ProblemDetails ProblemDetails { get => throw null; set => throw null; } public ProblemDetailsContext() => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } + public Microsoft.AspNetCore.Http.EndpointMetadataCollection AdditionalMetadata { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ProblemDetails ProblemDetails { get => throw null; set { } } } - public struct QueryString : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; - public static Microsoft.AspNetCore.Http.QueryString operator +(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; + public static Microsoft.AspNetCore.Http.QueryString Empty; + public QueryString(string value) => throw null; + public override string ToString() => throw null; + public string ToUriComponent() => throw null; + public static Microsoft.AspNetCore.Http.QueryString FromUriComponent(string uriComponent) => throw null; + public static Microsoft.AspNetCore.Http.QueryString FromUriComponent(System.Uri uri) => throw null; + public static Microsoft.AspNetCore.Http.QueryString Create(string name, string value) => throw null; + public static Microsoft.AspNetCore.Http.QueryString Create(System.Collections.Generic.IEnumerable> parameters) => throw null; + public static Microsoft.AspNetCore.Http.QueryString Create(System.Collections.Generic.IEnumerable> parameters) => throw null; public Microsoft.AspNetCore.Http.QueryString Add(Microsoft.AspNetCore.Http.QueryString other) => throw null; public Microsoft.AspNetCore.Http.QueryString Add(string name, string value) => throw null; - public static Microsoft.AspNetCore.Http.QueryString Create(System.Collections.Generic.IEnumerable> parameters) => throw null; - public static Microsoft.AspNetCore.Http.QueryString Create(System.Collections.Generic.IEnumerable> parameters) => throw null; - public static Microsoft.AspNetCore.Http.QueryString Create(string name, string value) => throw null; - public static Microsoft.AspNetCore.Http.QueryString Empty; public bool Equals(Microsoft.AspNetCore.Http.QueryString other) => throw null; public override bool Equals(object obj) => throw null; - public static Microsoft.AspNetCore.Http.QueryString FromUriComponent(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.QueryString FromUriComponent(string uriComponent) => throw null; public override int GetHashCode() => throw null; - public bool HasValue { get => throw null; } - // Stub generator skipped constructor - public QueryString(string value) => throw null; - public override string ToString() => throw null; - public string ToUriComponent() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; + public static Microsoft.AspNetCore.Http.QueryString operator +(Microsoft.AspNetCore.Http.QueryString left, Microsoft.AspNetCore.Http.QueryString right) => throw null; public string Value { get => throw null; } + public bool HasValue { get => throw null; } } - public delegate System.Threading.Tasks.Task RequestDelegate(Microsoft.AspNetCore.Http.HttpContext context); - - public class RequestDelegateResult + public sealed class RequestDelegateResult { + public RequestDelegateResult(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, System.Collections.Generic.IReadOnlyList metadata) => throw null; + public Microsoft.AspNetCore.Http.RequestDelegate RequestDelegate { get => throw null; } public System.Collections.Generic.IReadOnlyList EndpointMetadata { get => throw null; } + } + public class Endpoint + { + public Endpoint(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Http.EndpointMetadataCollection metadata, string displayName) => throw null; + public override string ToString() => throw null; + public string DisplayName { get => throw null; } + public Microsoft.AspNetCore.Http.EndpointMetadataCollection Metadata { get => throw null; } public Microsoft.AspNetCore.Http.RequestDelegate RequestDelegate { get => throw null; } - public RequestDelegateResult(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, System.Collections.Generic.IReadOnlyList metadata) => throw null; } - - public static class RequestTrailerExtensions + public static partial class EndpointHttpContextExtensions { - public static bool CheckTrailersAvailable(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; - public static Microsoft.Extensions.Primitives.StringValues GetDeclaredTrailers(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; - public static Microsoft.Extensions.Primitives.StringValues GetTrailer(this Microsoft.AspNetCore.Http.HttpRequest request, string trailerName) => throw null; - public static bool SupportsTrailers(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static Microsoft.AspNetCore.Http.Endpoint GetEndpoint(this Microsoft.AspNetCore.Http.HttpContext context) => throw null; + public static void SetEndpoint(this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint endpoint) => throw null; } - - public static class ResponseTrailerExtensions + public sealed class EndpointMetadataCollection : System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection { - public static void AppendTrailer(this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName, Microsoft.Extensions.Primitives.StringValues trailerValues) => throw null; - public static void DeclareTrailer(this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName) => throw null; - public static bool SupportsTrailers(this Microsoft.AspNetCore.Http.HttpResponse response) => throw null; + public static Microsoft.AspNetCore.Http.EndpointMetadataCollection Empty; + public EndpointMetadataCollection(System.Collections.Generic.IEnumerable items) => throw null; + public EndpointMetadataCollection(params object[] items) => throw null; + public T GetMetadata() where T : class => throw null; + public System.Collections.Generic.IReadOnlyList GetOrderedMetadata() where T : class => throw null; + public T GetRequiredMetadata() where T : class => throw null; + public Microsoft.AspNetCore.Http.EndpointMetadataCollection.Enumerator GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public object this[int index] { get => throw null; } + public int Count { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + public void Dispose() => throw null; + public bool MoveNext() => throw null; + public void Reset() => throw null; + public object Current { get => throw null; } + } } - public static class StatusCodes { - public const int Status100Continue = default; - public const int Status101SwitchingProtocols = default; - public const int Status102Processing = default; - public const int Status200OK = default; - public const int Status201Created = default; - public const int Status202Accepted = default; - public const int Status203NonAuthoritative = default; - public const int Status204NoContent = default; - public const int Status205ResetContent = default; - public const int Status206PartialContent = default; - public const int Status207MultiStatus = default; - public const int Status208AlreadyReported = default; - public const int Status226IMUsed = default; - public const int Status300MultipleChoices = default; - public const int Status301MovedPermanently = default; - public const int Status302Found = default; - public const int Status303SeeOther = default; - public const int Status304NotModified = default; - public const int Status305UseProxy = default; - public const int Status306SwitchProxy = default; - public const int Status307TemporaryRedirect = default; - public const int Status308PermanentRedirect = default; - public const int Status400BadRequest = default; - public const int Status401Unauthorized = default; - public const int Status402PaymentRequired = default; - public const int Status403Forbidden = default; - public const int Status404NotFound = default; - public const int Status405MethodNotAllowed = default; - public const int Status406NotAcceptable = default; - public const int Status407ProxyAuthenticationRequired = default; - public const int Status408RequestTimeout = default; - public const int Status409Conflict = default; - public const int Status410Gone = default; - public const int Status411LengthRequired = default; - public const int Status412PreconditionFailed = default; - public const int Status413PayloadTooLarge = default; - public const int Status413RequestEntityTooLarge = default; - public const int Status414RequestUriTooLong = default; - public const int Status414UriTooLong = default; - public const int Status415UnsupportedMediaType = default; - public const int Status416RangeNotSatisfiable = default; - public const int Status416RequestedRangeNotSatisfiable = default; - public const int Status417ExpectationFailed = default; - public const int Status418ImATeapot = default; - public const int Status419AuthenticationTimeout = default; - public const int Status421MisdirectedRequest = default; - public const int Status422UnprocessableEntity = default; - public const int Status423Locked = default; - public const int Status424FailedDependency = default; - public const int Status426UpgradeRequired = default; - public const int Status428PreconditionRequired = default; - public const int Status429TooManyRequests = default; - public const int Status431RequestHeaderFieldsTooLarge = default; - public const int Status451UnavailableForLegalReasons = default; - public const int Status500InternalServerError = default; - public const int Status501NotImplemented = default; - public const int Status502BadGateway = default; - public const int Status503ServiceUnavailable = default; - public const int Status504GatewayTimeout = default; - public const int Status505HttpVersionNotsupported = default; - public const int Status506VariantAlsoNegotiates = default; - public const int Status507InsufficientStorage = default; - public const int Status508LoopDetected = default; - public const int Status510NotExtended = default; - public const int Status511NetworkAuthenticationRequired = default; - } - + public static int Status100Continue; + public static int Status101SwitchingProtocols; + public static int Status102Processing; + public static int Status200OK; + public static int Status201Created; + public static int Status202Accepted; + public static int Status203NonAuthoritative; + public static int Status204NoContent; + public static int Status205ResetContent; + public static int Status206PartialContent; + public static int Status207MultiStatus; + public static int Status208AlreadyReported; + public static int Status226IMUsed; + public static int Status300MultipleChoices; + public static int Status301MovedPermanently; + public static int Status302Found; + public static int Status303SeeOther; + public static int Status304NotModified; + public static int Status305UseProxy; + public static int Status306SwitchProxy; + public static int Status307TemporaryRedirect; + public static int Status308PermanentRedirect; + public static int Status400BadRequest; + public static int Status401Unauthorized; + public static int Status402PaymentRequired; + public static int Status403Forbidden; + public static int Status404NotFound; + public static int Status405MethodNotAllowed; + public static int Status406NotAcceptable; + public static int Status407ProxyAuthenticationRequired; + public static int Status408RequestTimeout; + public static int Status409Conflict; + public static int Status410Gone; + public static int Status411LengthRequired; + public static int Status412PreconditionFailed; + public static int Status413RequestEntityTooLarge; + public static int Status413PayloadTooLarge; + public static int Status414RequestUriTooLong; + public static int Status414UriTooLong; + public static int Status415UnsupportedMediaType; + public static int Status416RequestedRangeNotSatisfiable; + public static int Status416RangeNotSatisfiable; + public static int Status417ExpectationFailed; + public static int Status418ImATeapot; + public static int Status419AuthenticationTimeout; + public static int Status421MisdirectedRequest; + public static int Status422UnprocessableEntity; + public static int Status423Locked; + public static int Status424FailedDependency; + public static int Status426UpgradeRequired; + public static int Status428PreconditionRequired; + public static int Status429TooManyRequests; + public static int Status431RequestHeaderFieldsTooLarge; + public static int Status451UnavailableForLegalReasons; + public static int Status500InternalServerError; + public static int Status501NotImplemented; + public static int Status502BadGateway; + public static int Status503ServiceUnavailable; + public static int Status504GatewayTimeout; + public static int Status505HttpVersionNotsupported; + public static int Status506VariantAlsoNegotiates; + public static int Status507InsufficientStorage; + public static int Status508LoopDetected; + public static int Status510NotExtended; + public static int Status511NetworkAuthenticationRequired; + } public abstract class WebSocketManager { public virtual System.Threading.Tasks.Task AcceptWebSocketAsync() => throw null; - public virtual System.Threading.Tasks.Task AcceptWebSocketAsync(Microsoft.AspNetCore.Http.WebSocketAcceptContext acceptContext) => throw null; public abstract System.Threading.Tasks.Task AcceptWebSocketAsync(string subProtocol); - public abstract bool IsWebSocketRequest { get; } + public virtual System.Threading.Tasks.Task AcceptWebSocketAsync(Microsoft.AspNetCore.Http.WebSocketAcceptContext acceptContext) => throw null; protected WebSocketManager() => throw null; + public abstract bool IsWebSocketRequest { get; } public abstract System.Collections.Generic.IList WebSocketRequestedProtocols { get; } } - namespace Features { public interface IEndpointFeature { Microsoft.AspNetCore.Http.Endpoint Endpoint { get; set; } } - public interface IRouteValuesFeature { Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get; set; } } - } namespace Metadata { public interface IAcceptsMetadata { System.Collections.Generic.IReadOnlyList ContentTypes { get; } - bool IsOptional { get; } System.Type RequestType { get; } + bool IsOptional { get; } } - public interface IEndpointDescriptionMetadata { string Description { get; } } - public interface IEndpointMetadataProvider { - static abstract void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder); + abstract static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder); } - public interface IEndpointParameterMetadataProvider { - static abstract void PopulateMetadata(System.Reflection.ParameterInfo parameter, Microsoft.AspNetCore.Builder.EndpointBuilder builder); - } - - public interface IEndpointSummaryMetadata - { - string Summary { get; } + abstract static void PopulateMetadata(System.Reflection.ParameterInfo parameter, Microsoft.AspNetCore.Builder.EndpointBuilder builder); } - public interface IFromBodyMetadata { - bool AllowEmpty { get => throw null; } + virtual bool AllowEmpty { get => throw null; } } - public interface IFromFormMetadata { string Name { get; } } - public interface IFromHeaderMetadata { string Name { get; } } - public interface IFromQueryMetadata { string Name { get; } } - public interface IFromRouteMetadata { string Name { get; } } - public interface IFromServiceMetadata { } - public interface IProducesResponseTypeMetadata { - System.Collections.Generic.IEnumerable ContentTypes { get; } - int StatusCode { get; } System.Type Type { get; } + int StatusCode { get; } + System.Collections.Generic.IEnumerable ContentTypes { get; } } - public interface IRequestSizeLimitMetadata { - System.Int64? MaxRequestBodySize { get; } + long? MaxRequestBodySize { get; } } - public interface ISkipStatusCodePagesMetadata { } - + public interface IEndpointSummaryMetadata + { + string Summary { get; } + } public interface ITagsMetadata { System.Collections.Generic.IReadOnlyList Tags { get; } } - } } namespace Mvc { public class ProblemDetails { - public string Detail { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary Extensions { get => throw null; } - public string Instance { get => throw null; set => throw null; } public ProblemDetails() => throw null; - public int? Status { get => throw null; set => throw null; } - public string Title { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } + public string Type { get => throw null; set { } } + public string Title { get => throw null; set { } } + public int? Status { get => throw null; set { } } + public string Detail { get => throw null; set { } } + public string Instance { get => throw null; set { } } + public System.Collections.Generic.IDictionary Extensions { get => throw null; } } - } namespace Routing { - public class RouteValueDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable + public class RouteValueDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyDictionary, System.Collections.Generic.IReadOnlyCollection> { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public Enumerator(Microsoft.AspNetCore.Routing.RouteValueDictionary dictionary) => throw null; - public bool MoveNext() => throw null; - public void Reset() => throw null; - } - - + public static Microsoft.AspNetCore.Routing.RouteValueDictionary FromArray(System.Collections.Generic.KeyValuePair[] items) => throw null; + public RouteValueDictionary() => throw null; + public RouteValueDictionary(object values) => throw null; + public RouteValueDictionary(System.Collections.Generic.IEnumerable> values) => throw null; + public RouteValueDictionary(System.Collections.Generic.IEnumerable> values) => throw null; + public RouteValueDictionary(Microsoft.AspNetCore.Routing.RouteValueDictionary dictionary) => throw null; void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair item) => throw null; public void Add(string key, object value) => throw null; public void Clear() => throw null; - public System.Collections.Generic.IEqualityComparer Comparer { get => throw null; } bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair item) => throw null; public bool ContainsKey(string key) => throw null; void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } - public static Microsoft.AspNetCore.Routing.RouteValueDictionary FromArray(System.Collections.Generic.KeyValuePair[] items) => throw null; public Microsoft.AspNetCore.Routing.RouteValueDictionary.Enumerator GetEnumerator() => throw null; System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } - public object this[string key] { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection Keys { get => throw null; } - System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair item) => throw null; public bool Remove(string key) => throw null; public bool Remove(string key, out object value) => throw null; - public RouteValueDictionary() => throw null; - public RouteValueDictionary(System.Collections.Generic.IEnumerable> values) => throw null; - public RouteValueDictionary(System.Collections.Generic.IEnumerable> values) => throw null; - public RouteValueDictionary(Microsoft.AspNetCore.Routing.RouteValueDictionary dictionary) => throw null; - public RouteValueDictionary(object values) => throw null; public bool TryAdd(string key, object value) => throw null; public bool TryGetValue(string key, out object value) => throw null; + public object this[string key] { get => throw null; set { } } + public System.Collections.Generic.IEqualityComparer Comparer { get => throw null; } + public int Count { get => throw null; } + bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } public System.Collections.Generic.ICollection Values { get => throw null; } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public Enumerator(Microsoft.AspNetCore.Routing.RouteValueDictionary dictionary) => throw null; + public void Dispose() => throw null; + public bool MoveNext() => throw null; + public void Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.Common.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.Common.cs index 2c97c6fff359e..983dd1025fb79 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.Common.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.Common.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Connections.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,42 +11,37 @@ namespace Connections public class AvailableTransport { public AvailableTransport() => throw null; - public System.Collections.Generic.IList TransferFormats { get => throw null; set => throw null; } - public string Transport { get => throw null; set => throw null; } + public string Transport { get => throw null; set { } } + public System.Collections.Generic.IList TransferFormats { get => throw null; set { } } + } + public static class HttpTransports + { + public static Microsoft.AspNetCore.Http.Connections.HttpTransportType All; } - [System.Flags] - public enum HttpTransportType : int + public enum HttpTransportType { - LongPolling = 4, None = 0, - ServerSentEvents = 2, WebSockets = 1, + ServerSentEvents = 2, + LongPolling = 4, } - - public static class HttpTransports - { - public static Microsoft.AspNetCore.Http.Connections.HttpTransportType All; - } - public static class NegotiateProtocol { - public static Microsoft.AspNetCore.Http.Connections.NegotiationResponse ParseResponse(System.ReadOnlySpan content) => throw null; - public static void WriteResponse(Microsoft.AspNetCore.Http.Connections.NegotiationResponse response, System.Buffers.IBufferWriter output) => throw null; + public static void WriteResponse(Microsoft.AspNetCore.Http.Connections.NegotiationResponse response, System.Buffers.IBufferWriter output) => throw null; + public static Microsoft.AspNetCore.Http.Connections.NegotiationResponse ParseResponse(System.ReadOnlySpan content) => throw null; } - public class NegotiationResponse { - public string AccessToken { get => throw null; set => throw null; } - public System.Collections.Generic.IList AvailableTransports { get => throw null; set => throw null; } - public string ConnectionId { get => throw null; set => throw null; } - public string ConnectionToken { get => throw null; set => throw null; } - public string Error { get => throw null; set => throw null; } public NegotiationResponse() => throw null; - public string Url { get => throw null; set => throw null; } - public int Version { get => throw null; set => throw null; } + public string Url { get => throw null; set { } } + public string AccessToken { get => throw null; set { } } + public string ConnectionId { get => throw null; set { } } + public string ConnectionToken { get => throw null; set { } } + public int Version { get => throw null; set { } } + public System.Collections.Generic.IList AvailableTransports { get => throw null; set { } } + public string Error { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.cs index e2a1f777e5fb7..fa39937607859 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Connections.cs @@ -1,26 +1,23 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Connections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public class ConnectionEndpointRouteBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder + public sealed class ConnectionEndpointRouteBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; } - - public static class ConnectionEndpointRouteBuilderExtensions + public static partial class ConnectionEndpointRouteBuilderExtensions { + public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnections(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Action configure) => throw null; public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnectionHandler(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler => throw null; public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnectionHandler(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Action configureOptions) where TConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler => throw null; - public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnections(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Action configure) => throw null; public static Microsoft.AspNetCore.Builder.ConnectionEndpointRouteBuilder MapConnections(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions options, System.Action configure) => throw null; } - } namespace Http { @@ -29,65 +26,56 @@ namespace Connections public class ConnectionOptions { public ConnectionOptions() => throw null; - public System.TimeSpan? DisconnectTimeout { get => throw null; set => throw null; } + public System.TimeSpan? DisconnectTimeout { get => throw null; set { } } } - public class ConnectionOptionsSetup : Microsoft.Extensions.Options.IConfigureOptions { + public static System.TimeSpan DefaultDisconectTimeout; public void Configure(Microsoft.AspNetCore.Http.Connections.ConnectionOptions options) => throw null; public ConnectionOptionsSetup() => throw null; - public static System.TimeSpan DefaultDisconectTimeout; } - - public static class HttpConnectionContextExtensions + public static partial class HttpConnectionContextExtensions { public static Microsoft.AspNetCore.Http.HttpContext GetHttpContext(this Microsoft.AspNetCore.Connections.ConnectionContext connection) => throw null; } - public class HttpConnectionDispatcherOptions { - public System.Int64 ApplicationMaxBufferSize { get => throw null; set => throw null; } - public System.Collections.Generic.IList AuthorizationData { get => throw null; } - public bool CloseOnAuthenticationExpiration { get => throw null; set => throw null; } public HttpConnectionDispatcherOptions() => throw null; - public Microsoft.AspNetCore.Http.Connections.LongPollingOptions LongPolling { get => throw null; } - public int MinimumProtocolVersion { get => throw null; set => throw null; } - public System.Int64 TransportMaxBufferSize { get => throw null; set => throw null; } - public System.TimeSpan TransportSendTimeout { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.Connections.HttpTransportType Transports { get => throw null; set => throw null; } + public System.Collections.Generic.IList AuthorizationData { get => throw null; } + public Microsoft.AspNetCore.Http.Connections.HttpTransportType Transports { get => throw null; set { } } public Microsoft.AspNetCore.Http.Connections.WebSocketOptions WebSockets { get => throw null; } + public Microsoft.AspNetCore.Http.Connections.LongPollingOptions LongPolling { get => throw null; } + public long TransportMaxBufferSize { get => throw null; set { } } + public long ApplicationMaxBufferSize { get => throw null; set { } } + public int MinimumProtocolVersion { get => throw null; set { } } + public System.TimeSpan TransportSendTimeout { get => throw null; set { } } + public bool CloseOnAuthenticationExpiration { get => throw null; set { } } } - public class LongPollingOptions { public LongPollingOptions() => throw null; - public System.TimeSpan PollTimeout { get => throw null; set => throw null; } + public System.TimeSpan PollTimeout { get => throw null; set { } } } - public class NegotiateMetadata { public NegotiateMetadata() => throw null; } - public class WebSocketOptions { - public System.TimeSpan CloseTimeout { get => throw null; set => throw null; } - public System.Func, string> SubProtocolSelector { get => throw null; set => throw null; } public WebSocketOptions() => throw null; + public System.TimeSpan CloseTimeout { get => throw null; set { } } + public System.Func, string> SubProtocolSelector { get => throw null; set { } } } - namespace Features { public interface IHttpContextFeature { Microsoft.AspNetCore.Http.HttpContext HttpContext { get; set; } } - public interface IHttpTransportFeature { Microsoft.AspNetCore.Http.Connections.HttpTransportType TransportType { get; } } - } } } @@ -96,12 +84,11 @@ namespace Extensions { namespace DependencyInjection { - public static class ConnectionsDependencyInjectionExtensions + public static partial class ConnectionsDependencyInjectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnections(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnections(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action options) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Extensions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Extensions.cs index 2e98c6e5cd578..f359b594adffa 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Extensions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Extensions.cs @@ -1,217 +1,196 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Http { - public class EndpointDescriptionAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointDescriptionMetadata + public sealed class EndpointDescriptionAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointDescriptionMetadata { - public string Description { get => throw null; } public EndpointDescriptionAttribute(string description) => throw null; + public string Description { get => throw null; } } - - public class EndpointSummaryAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointSummaryMetadata + public sealed class EndpointSummaryAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointSummaryMetadata { public EndpointSummaryAttribute(string summary) => throw null; public string Summary { get => throw null; } } - - public static class HeaderDictionaryTypeExtensions + public static partial class HeaderDictionaryTypeExtensions { - public static void AppendList(this Microsoft.AspNetCore.Http.IHeaderDictionary Headers, string name, System.Collections.Generic.IList values) => throw null; public static Microsoft.AspNetCore.Http.Headers.RequestHeaders GetTypedHeaders(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; public static Microsoft.AspNetCore.Http.Headers.ResponseHeaders GetTypedHeaders(this Microsoft.AspNetCore.Http.HttpResponse response) => throw null; + public static void AppendList(this Microsoft.AspNetCore.Http.IHeaderDictionary Headers, string name, System.Collections.Generic.IList values) => throw null; } - - public static class HttpContextServerVariableExtensions + public static partial class HttpContextServerVariableExtensions { public static string GetServerVariable(this Microsoft.AspNetCore.Http.HttpContext context, string variableName) => throw null; } - - public static class HttpRequestJsonExtensions + public static partial class HttpRequestJsonExtensions { + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Text.Json.Serialization.JsonSerializerContext context, System.Threading.CancellationToken cancellationToken) => throw null; public static bool HasJsonContentType(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Text.Json.Serialization.JsonSerializerContext context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.ValueTask ReadFromJsonAsync(this Microsoft.AspNetCore.Http.HttpRequest request, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - } - - public static class HttpResponseJsonExtensions - { - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.Serialization.JsonSerializerContext context, string contentType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.JsonSerializerOptions options, string contentType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.JsonSerializerOptions options, string contentType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo, string contentType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - } - + } + public static partial class HttpResponseJsonExtensions + { + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.JsonSerializerOptions options, string contentType, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, TValue value, System.Text.Json.Serialization.Metadata.JsonTypeInfo jsonTypeInfo, string contentType, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.JsonSerializerOptions options, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.JsonSerializerOptions options, string contentType, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task WriteAsJsonAsync(this Microsoft.AspNetCore.Http.HttpResponse response, object value, System.Type type, System.Text.Json.Serialization.JsonSerializerContext context, string contentType, System.Threading.CancellationToken cancellationToken) => throw null; + } public class ProblemDetailsOptions { - public System.Action CustomizeProblemDetails { get => throw null; set => throw null; } public ProblemDetailsOptions() => throw null; + public System.Action CustomizeProblemDetails { get => throw null; set { } } } - public static class RequestDelegateFactory { + public static Microsoft.AspNetCore.Http.RequestDelegateMetadataResult InferMetadata(System.Reflection.MethodInfo methodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options) => throw null; public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options) => throw null; - public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options = default(Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions), Microsoft.AspNetCore.Http.RequestDelegateMetadataResult metadataResult = default(Microsoft.AspNetCore.Http.RequestDelegateMetadataResult)) => throw null; + public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult metadataResult) => throw null; public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Reflection.MethodInfo methodInfo, System.Func targetFactory, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options) => throw null; - public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Reflection.MethodInfo methodInfo, System.Func targetFactory = default(System.Func), Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options = default(Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions), Microsoft.AspNetCore.Http.RequestDelegateMetadataResult metadataResult = default(Microsoft.AspNetCore.Http.RequestDelegateMetadataResult)) => throw null; - public static Microsoft.AspNetCore.Http.RequestDelegateMetadataResult InferMetadata(System.Reflection.MethodInfo methodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options = default(Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions)) => throw null; + public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Reflection.MethodInfo methodInfo, System.Func targetFactory, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions options, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult metadataResult) => throw null; } - - public class RequestDelegateFactoryOptions + public sealed class RequestDelegateFactoryOptions { - public bool DisableInferBodyFromParameters { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Builder.EndpointBuilder EndpointBuilder { get => throw null; set => throw null; } public RequestDelegateFactoryOptions() => throw null; - public System.Collections.Generic.IEnumerable RouteParameterNames { get => throw null; set => throw null; } - public System.IServiceProvider ServiceProvider { get => throw null; set => throw null; } - public bool ThrowOnBadRequest { get => throw null; set => throw null; } + public System.IServiceProvider ServiceProvider { get => throw null; set { } } + public System.Collections.Generic.IEnumerable RouteParameterNames { get => throw null; set { } } + public bool ThrowOnBadRequest { get => throw null; set { } } + public bool DisableInferBodyFromParameters { get => throw null; set { } } + public Microsoft.AspNetCore.Builder.EndpointBuilder EndpointBuilder { get => throw null; set { } } } - - public class RequestDelegateMetadataResult + public sealed class RequestDelegateMetadataResult { - public System.Collections.Generic.IReadOnlyList EndpointMetadata { get => throw null; set => throw null; } public RequestDelegateMetadataResult() => throw null; + public System.Collections.Generic.IReadOnlyList EndpointMetadata { get => throw null; set { } } } - - public static class ResponseExtensions + public static partial class ResponseExtensions { public static void Clear(this Microsoft.AspNetCore.Http.HttpResponse response) => throw null; public static void Redirect(this Microsoft.AspNetCore.Http.HttpResponse response, string location, bool permanent, bool preserveMethod) => throw null; } - - public static class SendFileResponseExtensions + public static partial class SendFileResponseExtensions { - public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, System.Int64 offset, System.Int64? count, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, System.Int64 offset, System.Int64? count, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, long offset, long? count, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendFileAsync(this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, long offset, long? count, System.Threading.CancellationToken cancellationToken) => throw null; } - - public static class SessionExtensions + public static partial class SessionExtensions { - public static System.Byte[] Get(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; - public static int? GetInt32(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; - public static string GetString(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; public static void SetInt32(this Microsoft.AspNetCore.Http.ISession session, string key, int value) => throw null; + public static int? GetInt32(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; public static void SetString(this Microsoft.AspNetCore.Http.ISession session, string key, string value) => throw null; + public static string GetString(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; + public static byte[] Get(this Microsoft.AspNetCore.Http.ISession session, string key) => throw null; } - - public class TagsAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.ITagsMetadata + public sealed class TagsAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.ITagsMetadata { - public System.Collections.Generic.IReadOnlyList Tags { get => throw null; } public TagsAttribute(params string[] tags) => throw null; + public System.Collections.Generic.IReadOnlyList Tags { get => throw null; } } - namespace Extensions { - public static class HttpRequestMultipartExtensions + public static partial class HttpRequestMultipartExtensions { public static string GetMultipartBoundary(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; } - public class QueryBuilder : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { + public QueryBuilder() => throw null; + public QueryBuilder(System.Collections.Generic.IEnumerable> parameters) => throw null; + public QueryBuilder(System.Collections.Generic.IEnumerable> parameters) => throw null; public void Add(string key, System.Collections.Generic.IEnumerable values) => throw null; public void Add(string key, string value) => throw null; + public override string ToString() => throw null; + public Microsoft.AspNetCore.Http.QueryString ToQueryString() => throw null; + public override int GetHashCode() => throw null; public override bool Equals(object obj) => throw null; public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public override int GetHashCode() => throw null; - public QueryBuilder() => throw null; - public QueryBuilder(System.Collections.Generic.IEnumerable> parameters) => throw null; - public QueryBuilder(System.Collections.Generic.IEnumerable> parameters) => throw null; - public Microsoft.AspNetCore.Http.QueryString ToQueryString() => throw null; - public override string ToString() => throw null; } - public static class StreamCopyOperation { - public static System.Threading.Tasks.Task CopyToAsync(System.IO.Stream source, System.IO.Stream destination, System.Int64? count, System.Threading.CancellationToken cancel) => throw null; - public static System.Threading.Tasks.Task CopyToAsync(System.IO.Stream source, System.IO.Stream destination, System.Int64? count, int bufferSize, System.Threading.CancellationToken cancel) => throw null; + public static System.Threading.Tasks.Task CopyToAsync(System.IO.Stream source, System.IO.Stream destination, long? count, System.Threading.CancellationToken cancel) => throw null; + public static System.Threading.Tasks.Task CopyToAsync(System.IO.Stream source, System.IO.Stream destination, long? count, int bufferSize, System.Threading.CancellationToken cancel) => throw null; } - public static class UriHelper { - public static string BuildAbsolute(string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.PathString path = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.QueryString query = default(Microsoft.AspNetCore.Http.QueryString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString)) => throw null; - public static string BuildRelative(Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.PathString path = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.QueryString query = default(Microsoft.AspNetCore.Http.QueryString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString)) => throw null; - public static string Encode(System.Uri uri) => throw null; + public static string BuildRelative(Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Http.QueryString query, Microsoft.AspNetCore.Http.FragmentString fragment) => throw null; + public static string BuildAbsolute(string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Http.QueryString query, Microsoft.AspNetCore.Http.FragmentString fragment) => throw null; public static void FromAbsolute(string uri, out string scheme, out Microsoft.AspNetCore.Http.HostString host, out Microsoft.AspNetCore.Http.PathString path, out Microsoft.AspNetCore.Http.QueryString query, out Microsoft.AspNetCore.Http.FragmentString fragment) => throw null; - public static string GetDisplayUrl(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; - public static string GetEncodedPathAndQuery(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static string Encode(System.Uri uri) => throw null; public static string GetEncodedUrl(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static string GetEncodedPathAndQuery(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static string GetDisplayUrl(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; } - } namespace Headers { public class RequestHeaders { - public System.Collections.Generic.IList Accept { get => throw null; set => throw null; } - public System.Collections.Generic.IList AcceptCharset { get => throw null; set => throw null; } - public System.Collections.Generic.IList AcceptEncoding { get => throw null; set => throw null; } - public System.Collections.Generic.IList AcceptLanguage { get => throw null; set => throw null; } - public void Append(string name, object value) => throw null; - public void AppendList(string name, System.Collections.Generic.IList values) => throw null; - public Microsoft.Net.Http.Headers.CacheControlHeaderValue CacheControl { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.ContentDispositionHeaderValue ContentDisposition { get => throw null; set => throw null; } - public System.Int64? ContentLength { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.ContentRangeHeaderValue ContentRange { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.MediaTypeHeaderValue ContentType { get => throw null; set => throw null; } - public System.Collections.Generic.IList Cookie { get => throw null; set => throw null; } - public System.DateTimeOffset? Date { get => throw null; set => throw null; } - public System.DateTimeOffset? Expires { get => throw null; set => throw null; } + public RequestHeaders(Microsoft.AspNetCore.Http.IHeaderDictionary headers) => throw null; public T Get(string name) => throw null; public System.Collections.Generic.IList GetList(string name) => throw null; - public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; } - public Microsoft.AspNetCore.Http.HostString Host { get => throw null; set => throw null; } - public System.Collections.Generic.IList IfMatch { get => throw null; set => throw null; } - public System.DateTimeOffset? IfModifiedSince { get => throw null; set => throw null; } - public System.Collections.Generic.IList IfNoneMatch { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.RangeConditionHeaderValue IfRange { get => throw null; set => throw null; } - public System.DateTimeOffset? IfUnmodifiedSince { get => throw null; set => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.RangeHeaderValue Range { get => throw null; set => throw null; } - public System.Uri Referer { get => throw null; set => throw null; } - public RequestHeaders(Microsoft.AspNetCore.Http.IHeaderDictionary headers) => throw null; public void Set(string name, object value) => throw null; public void SetList(string name, System.Collections.Generic.IList values) => throw null; + public void Append(string name, object value) => throw null; + public void AppendList(string name, System.Collections.Generic.IList values) => throw null; + public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; } + public System.Collections.Generic.IList Accept { get => throw null; set { } } + public System.Collections.Generic.IList AcceptCharset { get => throw null; set { } } + public System.Collections.Generic.IList AcceptEncoding { get => throw null; set { } } + public System.Collections.Generic.IList AcceptLanguage { get => throw null; set { } } + public Microsoft.Net.Http.Headers.CacheControlHeaderValue CacheControl { get => throw null; set { } } + public Microsoft.Net.Http.Headers.ContentDispositionHeaderValue ContentDisposition { get => throw null; set { } } + public long? ContentLength { get => throw null; set { } } + public Microsoft.Net.Http.Headers.ContentRangeHeaderValue ContentRange { get => throw null; set { } } + public Microsoft.Net.Http.Headers.MediaTypeHeaderValue ContentType { get => throw null; set { } } + public System.Collections.Generic.IList Cookie { get => throw null; set { } } + public System.DateTimeOffset? Date { get => throw null; set { } } + public System.DateTimeOffset? Expires { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HostString Host { get => throw null; set { } } + public System.Collections.Generic.IList IfMatch { get => throw null; set { } } + public System.DateTimeOffset? IfModifiedSince { get => throw null; set { } } + public System.Collections.Generic.IList IfNoneMatch { get => throw null; set { } } + public Microsoft.Net.Http.Headers.RangeConditionHeaderValue IfRange { get => throw null; set { } } + public System.DateTimeOffset? IfUnmodifiedSince { get => throw null; set { } } + public System.DateTimeOffset? LastModified { get => throw null; set { } } + public Microsoft.Net.Http.Headers.RangeHeaderValue Range { get => throw null; set { } } + public System.Uri Referer { get => throw null; set { } } } - public class ResponseHeaders { - public void Append(string name, object value) => throw null; - public void AppendList(string name, System.Collections.Generic.IList values) => throw null; - public Microsoft.Net.Http.Headers.CacheControlHeaderValue CacheControl { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.ContentDispositionHeaderValue ContentDisposition { get => throw null; set => throw null; } - public System.Int64? ContentLength { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.ContentRangeHeaderValue ContentRange { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.MediaTypeHeaderValue ContentType { get => throw null; set => throw null; } - public System.DateTimeOffset? Date { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue ETag { get => throw null; set => throw null; } - public System.DateTimeOffset? Expires { get => throw null; set => throw null; } + public ResponseHeaders(Microsoft.AspNetCore.Http.IHeaderDictionary headers) => throw null; public T Get(string name) => throw null; public System.Collections.Generic.IList GetList(string name) => throw null; - public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } - public System.Uri Location { get => throw null; set => throw null; } - public ResponseHeaders(Microsoft.AspNetCore.Http.IHeaderDictionary headers) => throw null; public void Set(string name, object value) => throw null; - public System.Collections.Generic.IList SetCookie { get => throw null; set => throw null; } public void SetList(string name, System.Collections.Generic.IList values) => throw null; + public void Append(string name, object value) => throw null; + public void AppendList(string name, System.Collections.Generic.IList values) => throw null; + public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; } + public Microsoft.Net.Http.Headers.CacheControlHeaderValue CacheControl { get => throw null; set { } } + public Microsoft.Net.Http.Headers.ContentDispositionHeaderValue ContentDisposition { get => throw null; set { } } + public long? ContentLength { get => throw null; set { } } + public Microsoft.Net.Http.Headers.ContentRangeHeaderValue ContentRange { get => throw null; set { } } + public Microsoft.Net.Http.Headers.MediaTypeHeaderValue ContentType { get => throw null; set { } } + public System.DateTimeOffset? Date { get => throw null; set { } } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue ETag { get => throw null; set { } } + public System.DateTimeOffset? Expires { get => throw null; set { } } + public System.DateTimeOffset? LastModified { get => throw null; set { } } + public System.Uri Location { get => throw null; set { } } + public System.Collections.Generic.IList SetCookie { get => throw null; set { } } } - } namespace Json { @@ -220,7 +199,6 @@ public class JsonOptions public JsonOptions() => throw null; public System.Text.Json.JsonSerializerOptions SerializerOptions { get => throw null; } } - } } } @@ -228,17 +206,15 @@ namespace Extensions { namespace DependencyInjection { - public static class HttpJsonServiceExtensions + public static partial class HttpJsonServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureHttpJsonOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - - public static class ProblemDetailsServiceCollectionExtensions + public static partial class ProblemDetailsServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProblemDetails(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProblemDetails(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Features.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Features.cs index acf927a9dcade..4cf98c5d9420d 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Features.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Features.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Features, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,415 +11,371 @@ public class CookieOptions public CookieOptions() => throw null; public CookieOptions(Microsoft.AspNetCore.Http.CookieOptions options) => throw null; public Microsoft.Net.Http.Headers.SetCookieHeaderValue CreateCookieHeader(string name, string value) => throw null; - public string Domain { get => throw null; set => throw null; } - public System.DateTimeOffset? Expires { get => throw null; set => throw null; } + public string Domain { get => throw null; set { } } + public string Path { get => throw null; set { } } + public System.DateTimeOffset? Expires { get => throw null; set { } } + public bool Secure { get => throw null; set { } } + public Microsoft.AspNetCore.Http.SameSiteMode SameSite { get => throw null; set { } } + public bool HttpOnly { get => throw null; set { } } + public System.TimeSpan? MaxAge { get => throw null; set { } } + public bool IsEssential { get => throw null; set { } } public System.Collections.Generic.IList Extensions { get => throw null; } - public bool HttpOnly { get => throw null; set => throw null; } - public bool IsEssential { get => throw null; set => throw null; } - public System.TimeSpan? MaxAge { get => throw null; set => throw null; } - public string Path { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.SameSiteMode SameSite { get => throw null; set => throw null; } - public bool Secure { get => throw null; set => throw null; } } - public interface IFormCollection : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { bool ContainsKey(string key); + bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value); int Count { get; } - Microsoft.AspNetCore.Http.IFormFileCollection Files { get; } - Microsoft.Extensions.Primitives.StringValues this[string key] { get; } System.Collections.Generic.ICollection Keys { get; } - bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value); + Microsoft.Extensions.Primitives.StringValues this[string key] { get; } + Microsoft.AspNetCore.Http.IFormFileCollection Files { get; } } - public interface IFormFile { - string ContentDisposition { get; } - string ContentType { get; } + System.IO.Stream OpenReadStream(); void CopyTo(System.IO.Stream target); - System.Threading.Tasks.Task CopyToAsync(System.IO.Stream target, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - string FileName { get; } + System.Threading.Tasks.Task CopyToAsync(System.IO.Stream target, System.Threading.CancellationToken cancellationToken); + string ContentType { get; } + string ContentDisposition { get; } Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; } - System.Int64 Length { get; } + long Length { get; } string Name { get; } - System.IO.Stream OpenReadStream(); + string FileName { get; } } - - public interface IFormFileCollection : System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public interface IFormFileCollection : System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection { Microsoft.AspNetCore.Http.IFormFile GetFile(string name); System.Collections.Generic.IReadOnlyList GetFiles(string name); Microsoft.AspNetCore.Http.IFormFile this[string name] { get; } } - - public interface IHeaderDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public interface IHeaderDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - Microsoft.Extensions.Primitives.StringValues Accept { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AcceptCharset { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AcceptEncoding { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AcceptLanguage { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AcceptRanges { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlAllowCredentials { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlAllowHeaders { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlAllowMethods { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlAllowOrigin { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlExposeHeaders { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlMaxAge { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlRequestHeaders { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AccessControlRequestMethod { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Age { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Allow { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues AltSvc { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Authorization { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Baggage { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues CacheControl { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Connection { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentDisposition { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentEncoding { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentLanguage { get => throw null; set => throw null; } - System.Int64? ContentLength { get; set; } - Microsoft.Extensions.Primitives.StringValues ContentLocation { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentMD5 { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentRange { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentSecurityPolicy { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentSecurityPolicyReportOnly { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ContentType { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Cookie { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues CorrelationContext { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Date { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ETag { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Expect { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Expires { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues From { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues GrpcAcceptEncoding { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues GrpcEncoding { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues GrpcMessage { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues GrpcStatus { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues GrpcTimeout { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Host { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues IfMatch { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues IfModifiedSince { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues IfNoneMatch { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues IfRange { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues IfUnmodifiedSince { get => throw null; set => throw null; } Microsoft.Extensions.Primitives.StringValues this[string key] { get; set; } - Microsoft.Extensions.Primitives.StringValues KeepAlive { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues LastModified { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Link { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Location { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues MaxForwards { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Origin { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Pragma { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ProxyAuthenticate { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ProxyAuthorization { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues ProxyConnection { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Range { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Referer { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues RequestId { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues RetryAfter { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SecWebSocketAccept { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SecWebSocketExtensions { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SecWebSocketKey { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SecWebSocketProtocol { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SecWebSocketVersion { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Server { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues SetCookie { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues StrictTransportSecurity { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues TE { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues TraceParent { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues TraceState { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Trailer { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues TransferEncoding { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Translate { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Upgrade { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues UpgradeInsecureRequests { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues UserAgent { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Vary { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Via { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues WWWAuthenticate { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues Warning { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues WebSocketSubProtocols { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XContentTypeOptions { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XFrameOptions { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XPoweredBy { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XRequestedWith { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XUACompatible { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues XXSSProtection { get => throw null; set => throw null; } + long? ContentLength { get; set; } + virtual Microsoft.Extensions.Primitives.StringValues Accept { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AcceptCharset { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AcceptEncoding { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AcceptLanguage { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AcceptRanges { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlAllowCredentials { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlAllowHeaders { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlAllowMethods { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlAllowOrigin { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlExposeHeaders { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlMaxAge { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlRequestHeaders { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AccessControlRequestMethod { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Age { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Allow { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues AltSvc { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Authorization { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Baggage { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues CacheControl { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Connection { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentDisposition { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentEncoding { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentLanguage { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentLocation { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentMD5 { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentRange { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentSecurityPolicy { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentSecurityPolicyReportOnly { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ContentType { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues CorrelationContext { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Cookie { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Date { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ETag { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Expires { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Expect { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues From { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues GrpcAcceptEncoding { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues GrpcEncoding { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues GrpcMessage { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues GrpcStatus { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues GrpcTimeout { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Host { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues KeepAlive { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues IfMatch { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues IfModifiedSince { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues IfNoneMatch { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues IfRange { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues IfUnmodifiedSince { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues LastModified { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Link { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Location { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues MaxForwards { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Origin { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Pragma { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ProxyAuthenticate { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ProxyAuthorization { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues ProxyConnection { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Range { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Referer { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues RetryAfter { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues RequestId { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SecWebSocketAccept { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SecWebSocketKey { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SecWebSocketProtocol { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SecWebSocketVersion { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SecWebSocketExtensions { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Server { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues SetCookie { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues StrictTransportSecurity { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues TE { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Trailer { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues TransferEncoding { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Translate { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues TraceParent { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues TraceState { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Upgrade { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues UpgradeInsecureRequests { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues UserAgent { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Vary { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Via { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues Warning { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues WebSocketSubProtocols { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues WWWAuthenticate { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XContentTypeOptions { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XFrameOptions { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XPoweredBy { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XRequestedWith { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XUACompatible { get => throw null; set { } } + virtual Microsoft.Extensions.Primitives.StringValues XXSSProtection { get => throw null; set { } } } - public interface IQueryCollection : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { bool ContainsKey(string key); + bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value); int Count { get; } - Microsoft.Extensions.Primitives.StringValues this[string key] { get; } System.Collections.Generic.ICollection Keys { get; } - bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value); + Microsoft.Extensions.Primitives.StringValues this[string key] { get; } } - public interface IRequestCookieCollection : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { bool ContainsKey(string key); + bool TryGetValue(string key, out string value); int Count { get; } - string this[string key] { get; } System.Collections.Generic.ICollection Keys { get; } - bool TryGetValue(string key, out string value); + string this[string key] { get; } } - public interface IResponseCookies { - void Append(System.ReadOnlySpan> keyValuePairs, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; void Append(string key, string value); void Append(string key, string value, Microsoft.AspNetCore.Http.CookieOptions options); + virtual void Append(System.ReadOnlySpan> keyValuePairs, Microsoft.AspNetCore.Http.CookieOptions options) => throw null; void Delete(string key); void Delete(string key, Microsoft.AspNetCore.Http.CookieOptions options); } - public interface ISession { + System.Threading.Tasks.Task LoadAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task CommitAsync(System.Threading.CancellationToken cancellationToken); + bool TryGetValue(string key, out byte[] value); + void Set(string key, byte[] value); + void Remove(string key); void Clear(); - System.Threading.Tasks.Task CommitAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - string Id { get; } bool IsAvailable { get; } + string Id { get; } System.Collections.Generic.IEnumerable Keys { get; } - System.Threading.Tasks.Task LoadAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - void Remove(string key); - void Set(string key, System.Byte[] value); - bool TryGetValue(string key, out System.Byte[] value); } - - public enum SameSiteMode : int + public enum SameSiteMode { - Lax = 1, + Unspecified = -1, None = 0, + Lax = 1, Strict = 2, - Unspecified = -1, } - public class WebSocketAcceptContext { - public bool DangerousEnableCompression { get => throw null; set => throw null; } - public bool DisableServerContextTakeover { get => throw null; set => throw null; } - public virtual System.TimeSpan? KeepAliveInterval { get => throw null; set => throw null; } - public int ServerMaxWindowBits { get => throw null; set => throw null; } - public virtual string SubProtocol { get => throw null; set => throw null; } public WebSocketAcceptContext() => throw null; + public virtual string SubProtocol { get => throw null; set { } } + public virtual System.TimeSpan? KeepAliveInterval { get => throw null; set { } } + public bool DangerousEnableCompression { get => throw null; set { } } + public bool DisableServerContextTakeover { get => throw null; set { } } + public int ServerMaxWindowBits { get => throw null; set { } } } - namespace Features { - public enum HttpsCompressionMode : int + public enum HttpsCompressionMode { - Compress = 2, Default = 0, DoNotCompress = 1, + Compress = 2, } - public interface IBadRequestExceptionFeature { System.Exception Error { get; } } - public interface IFormFeature { - Microsoft.AspNetCore.Http.IFormCollection Form { get; set; } - bool HasFormContentType { get; } Microsoft.AspNetCore.Http.IFormCollection ReadForm(); System.Threading.Tasks.Task ReadFormAsync(System.Threading.CancellationToken cancellationToken); + bool HasFormContentType { get; } + Microsoft.AspNetCore.Http.IFormCollection Form { get; set; } } - public interface IHttpBodyControlFeature { bool AllowSynchronousIO { get; set; } } - public interface IHttpConnectionFeature { string ConnectionId { get; set; } - System.Net.IPAddress LocalIpAddress { get; set; } - int LocalPort { get; set; } System.Net.IPAddress RemoteIpAddress { get; set; } + System.Net.IPAddress LocalIpAddress { get; set; } int RemotePort { get; set; } + int LocalPort { get; set; } } - public interface IHttpExtendedConnectFeature { System.Threading.Tasks.ValueTask AcceptAsync(); bool IsExtendedConnect { get; } string Protocol { get; } } - public interface IHttpMaxRequestBodySizeFeature { bool IsReadOnly { get; } - System.Int64? MaxRequestBodySize { get; set; } + long? MaxRequestBodySize { get; set; } } - public interface IHttpRequestBodyDetectionFeature { bool CanHaveBody { get; } } - public interface IHttpRequestFeature { - System.IO.Stream Body { get; set; } - Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; } + string Protocol { get; set; } + string Scheme { get; set; } string Method { get; set; } - string Path { get; set; } string PathBase { get; set; } - string Protocol { get; set; } + string Path { get; set; } string QueryString { get; set; } string RawTarget { get; set; } - string Scheme { get; set; } + Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; } + System.IO.Stream Body { get; set; } } - public interface IHttpRequestIdentifierFeature { string TraceIdentifier { get; set; } } - public interface IHttpRequestLifetimeFeature { void Abort(); System.Threading.CancellationToken RequestAborted { get; set; } } - public interface IHttpRequestTrailersFeature { bool Available { get; } Microsoft.AspNetCore.Http.IHeaderDictionary Trailers { get; } } - public interface IHttpResetFeature { void Reset(int errorCode); } - public interface IHttpResponseBodyFeature { - System.Threading.Tasks.Task CompleteAsync(); void DisableBuffering(); - System.Threading.Tasks.Task SendFileAsync(string path, System.Int64 offset, System.Int64? count, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task SendFileAsync(string path, long offset, long? count, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task CompleteAsync(); System.IO.Stream Stream { get; } System.IO.Pipelines.PipeWriter Writer { get; } } - public interface IHttpResponseFeature { - System.IO.Stream Body { get; set; } - bool HasStarted { get; } - Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; } - void OnCompleted(System.Func callback, object state); void OnStarting(System.Func callback, object state); - string ReasonPhrase { get; set; } + void OnCompleted(System.Func callback, object state); int StatusCode { get; set; } + string ReasonPhrase { get; set; } + Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; } + System.IO.Stream Body { get; set; } + bool HasStarted { get; } } - public interface IHttpResponseTrailersFeature { Microsoft.AspNetCore.Http.IHeaderDictionary Trailers { get; set; } } - + public interface IHttpsCompressionFeature + { + Microsoft.AspNetCore.Http.Features.HttpsCompressionMode Mode { get; set; } + } public interface IHttpUpgradeFeature { - bool IsUpgradableRequest { get; } System.Threading.Tasks.Task UpgradeAsync(); + bool IsUpgradableRequest { get; } } - public interface IHttpWebSocketFeature { System.Threading.Tasks.Task AcceptAsync(Microsoft.AspNetCore.Http.WebSocketAcceptContext context); bool IsWebSocketRequest { get; } } - public interface IHttpWebTransportFeature { - System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask AcceptAsync(System.Threading.CancellationToken cancellationToken); bool IsWebTransportRequest { get; } } - - public interface IHttpsCompressionFeature - { - Microsoft.AspNetCore.Http.Features.HttpsCompressionMode Mode { get; set; } - } - public interface IItemsFeature { System.Collections.Generic.IDictionary Items { get; set; } } - public interface IQueryFeature { Microsoft.AspNetCore.Http.IQueryCollection Query { get; set; } } - public interface IRequestBodyPipeFeature { System.IO.Pipelines.PipeReader Reader { get; } } - public interface IRequestCookiesFeature { Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get; set; } } - public interface IResponseCookiesFeature { Microsoft.AspNetCore.Http.IResponseCookies Cookies { get; } } - public interface IServerVariablesFeature { string this[string variableName] { get; set; } } - public interface IServiceProvidersFeature { System.IServiceProvider RequestServices { get; set; } } - public interface ISessionFeature { Microsoft.AspNetCore.Http.ISession Session { get; set; } } - public interface ITlsConnectionFeature { - System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get; set; } System.Threading.Tasks.Task GetClientCertificateAsync(System.Threading.CancellationToken cancellationToken); + System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get; set; } } - public interface ITlsTokenBindingFeature { - System.Byte[] GetProvidedTokenBindingId(); - System.Byte[] GetReferredTokenBindingId(); + byte[] GetProvidedTokenBindingId(); + byte[] GetReferredTokenBindingId(); } - public interface ITrackingConsentFeature { - bool CanTrack { get; } - string CreateConsentCookie(); void GrantConsent(); - bool HasConsent { get; } - bool IsConsentNeeded { get; } void WithdrawConsent(); + string CreateConsentCookie(); + bool IsConsentNeeded { get; } + bool HasConsent { get; } + bool CanTrack { get; } } - public interface IWebTransportSession { void Abort(int errorCode); - System.Threading.Tasks.ValueTask AcceptStreamAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.ValueTask OpenUnidirectionalStreamAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Int64 SessionId { get; } + System.Threading.Tasks.ValueTask AcceptStreamAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.ValueTask OpenUnidirectionalStreamAsync(System.Threading.CancellationToken cancellationToken); + long SessionId { get; } } - namespace Authentication { public interface IHttpAuthenticationFeature { System.Security.Claims.ClaimsPrincipal User { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Results.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Results.cs index d6c359772a4e2..68f1e02730bf3 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Results.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.Results.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http.Results, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,533 +9,487 @@ namespace Http public interface IResultExtensions { } - public static class Results { - public static Microsoft.AspNetCore.Http.IResult Accepted(string uri = default(string), object value = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Accepted(string uri = default(string), TValue value = default(TValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute(string routeName = default(string), object routeValues = default(object), object value = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute(string routeName = default(string), object routeValues = default(object), TValue value = default(TValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult BadRequest(object error = default(object)) => throw null; + public static Microsoft.AspNetCore.Http.IResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.IResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.IResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; + public static Microsoft.AspNetCore.Http.IResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.IResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; + public static Microsoft.AspNetCore.Http.IResult Content(string content, string contentType, System.Text.Encoding contentEncoding, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult Text(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; + public static Microsoft.AspNetCore.Http.IResult Text(string content, string contentType, System.Text.Encoding contentEncoding, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult Text(System.ReadOnlySpan utf8Content, string contentType, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; + public static Microsoft.AspNetCore.Http.IResult Json(object data, System.Text.Json.JsonSerializerOptions options, string contentType, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult Json(TValue data, System.Text.Json.JsonSerializerOptions options, string contentType, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult File(byte[] fileContents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.IResult Bytes(byte[] contents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.IResult Bytes(System.ReadOnlyMemory contents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.IResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.IResult Stream(System.IO.Stream stream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.IResult Stream(System.IO.Pipelines.PipeReader pipeReader, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.IResult Stream(System.Func streamWriterCallback, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.IResult File(string path, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.IResult Redirect(string url, bool permanent, bool preserveMethod) => throw null; + public static Microsoft.AspNetCore.Http.IResult LocalRedirect(string localUrl, bool permanent, bool preserveMethod) => throw null; + public static Microsoft.AspNetCore.Http.IResult RedirectToRoute(string routeName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; + public static Microsoft.AspNetCore.Http.IResult StatusCode(int statusCode) => throw null; + public static Microsoft.AspNetCore.Http.IResult NotFound(object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult NotFound(TValue value) => throw null; + public static Microsoft.AspNetCore.Http.IResult Unauthorized() => throw null; + public static Microsoft.AspNetCore.Http.IResult BadRequest(object error) => throw null; public static Microsoft.AspNetCore.Http.IResult BadRequest(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.IResult Bytes(System.Byte[] contents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Bytes(System.ReadOnlyMemory contents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Conflict(object error = default(object)) => throw null; + public static Microsoft.AspNetCore.Http.IResult Conflict(object error) => throw null; public static Microsoft.AspNetCore.Http.IResult Conflict(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.IResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; - public static Microsoft.AspNetCore.Http.IResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public static Microsoft.AspNetCore.Http.IResult Content(string content, string contentType = default(string), System.Text.Encoding contentEncoding = default(System.Text.Encoding), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Created(System.Uri uri, object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult NoContent() => throw null; + public static Microsoft.AspNetCore.Http.IResult Ok(object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult Ok(TValue value) => throw null; + public static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(object error) => throw null; + public static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(TValue error) => throw null; + public static Microsoft.AspNetCore.Http.IResult Problem(string detail, string instance, int? statusCode, string title, string type, System.Collections.Generic.IDictionary extensions) => throw null; + public static Microsoft.AspNetCore.Http.IResult Problem(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails) => throw null; + public static Microsoft.AspNetCore.Http.IResult ValidationProblem(System.Collections.Generic.IDictionary errors, string detail, string instance, int? statusCode, string title, string type, System.Collections.Generic.IDictionary extensions) => throw null; public static Microsoft.AspNetCore.Http.IResult Created(string uri, object value) => throw null; - public static Microsoft.AspNetCore.Http.IResult Created(System.Uri uri, TValue value) => throw null; public static Microsoft.AspNetCore.Http.IResult Created(string uri, TValue value) => throw null; - public static Microsoft.AspNetCore.Http.IResult CreatedAtRoute(string routeName = default(string), object routeValues = default(object), object value = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult CreatedAtRoute(string routeName = default(string), object routeValues = default(object), TValue value = default(TValue)) => throw null; + public static Microsoft.AspNetCore.Http.IResult Created(System.Uri uri, object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult Created(System.Uri uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.IResult CreatedAtRoute(string routeName, object routeValues, object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult CreatedAtRoute(string routeName, object routeValues, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.IResult Accepted(string uri, object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult Accepted(string uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute(string routeName, object routeValues, object value) => throw null; + public static Microsoft.AspNetCore.Http.IResult AcceptedAtRoute(string routeName, object routeValues, TValue value) => throw null; public static Microsoft.AspNetCore.Http.IResult Empty { get => throw null; } public static Microsoft.AspNetCore.Http.IResultExtensions Extensions { get => throw null; } - public static Microsoft.AspNetCore.Http.IResult File(System.Byte[] fileContents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult File(System.IO.Stream fileStream, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult File(string path, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Json(object data, System.Text.Json.JsonSerializerOptions options = default(System.Text.Json.JsonSerializerOptions), string contentType = default(string), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Json(TValue data, System.Text.Json.JsonSerializerOptions options = default(System.Text.Json.JsonSerializerOptions), string contentType = default(string), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.IResult LocalRedirect(string localUrl, bool permanent = default(bool), bool preserveMethod = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult NoContent() => throw null; - public static Microsoft.AspNetCore.Http.IResult NotFound(object value = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult NotFound(TValue value) => throw null; - public static Microsoft.AspNetCore.Http.IResult Ok(object value = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Ok(TValue value) => throw null; - public static Microsoft.AspNetCore.Http.IResult Problem(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails) => throw null; - public static Microsoft.AspNetCore.Http.IResult Problem(string detail = default(string), string instance = default(string), int? statusCode = default(int?), string title = default(string), string type = default(string), System.Collections.Generic.IDictionary extensions = default(System.Collections.Generic.IDictionary)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Redirect(string url, bool permanent = default(bool), bool preserveMethod = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult RedirectToRoute(string routeName = default(string), object routeValues = default(object), bool permanent = default(bool), bool preserveMethod = default(bool), string fragment = default(string)) => throw null; - public static Microsoft.AspNetCore.Http.IResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), string authenticationScheme = default(string)) => throw null; - public static Microsoft.AspNetCore.Http.IResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; - public static Microsoft.AspNetCore.Http.IResult StatusCode(int statusCode) => throw null; - public static Microsoft.AspNetCore.Http.IResult Stream(System.Func streamWriterCallback, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Stream(System.IO.Pipelines.PipeReader pipeReader, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Stream(System.IO.Stream stream, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Text(System.ReadOnlySpan utf8Content, string contentType = default(string), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Text(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public static Microsoft.AspNetCore.Http.IResult Text(string content, string contentType = default(string), System.Text.Encoding contentEncoding = default(System.Text.Encoding), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.IResult Unauthorized() => throw null; - public static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(object error = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.IResult ValidationProblem(System.Collections.Generic.IDictionary errors, string detail = default(string), string instance = default(string), int? statusCode = default(int?), string title = default(string), string type = default(string), System.Collections.Generic.IDictionary extensions = default(System.Collections.Generic.IDictionary)) => throw null; } - public static class TypedResults { - public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(string uri) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(System.Uri uri, TValue value) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(string uri, TValue value) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.AcceptedAtRoute AcceptedAtRoute(string routeName = default(string), object routeValues = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.AcceptedAtRoute AcceptedAtRoute(TValue value, string routeName = default(string), object routeValues = default(object)) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ForbidHttpResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.SignOutHttpResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, System.Collections.Generic.IList authenticationSchemes) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, string contentType, System.Text.Encoding contentEncoding, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Text(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Utf8ContentHttpResult Text(System.ReadOnlySpan utf8Content, string contentType, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Text(string content, string contentType, System.Text.Encoding contentEncoding, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.JsonHttpResult Json(TValue data, System.Text.Json.JsonSerializerOptions options, string contentType, int? statusCode) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult File(byte[] fileContents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult Bytes(byte[] contents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult Bytes(System.ReadOnlyMemory contents, string contentType, string fileDownloadName, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult Stream(System.IO.Stream stream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult Stream(System.IO.Pipelines.PipeReader pipeReader, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.PushStreamHttpResult Stream(System.Func streamWriterCallback, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.PhysicalFileHttpResult PhysicalFile(string path, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.VirtualFileHttpResult VirtualFile(string path, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.RedirectHttpResult Redirect(string url, bool permanent, bool preserveMethod) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.RedirectHttpResult LocalRedirect(string localUrl, bool permanent, bool preserveMethod) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.RedirectToRouteHttpResult RedirectToRoute(string routeName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.StatusCodeHttpResult StatusCode(int statusCode) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound() => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound(TValue value) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult Unauthorized() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.BadRequest BadRequest() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.BadRequest BadRequest(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult Bytes(System.Byte[] contents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult Bytes(System.ReadOnlyMemory contents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; public static Microsoft.AspNetCore.Http.HttpResults.Conflict Conflict() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.Conflict Conflict(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Content(string content, string contentType = default(string), System.Text.Encoding contentEncoding = default(System.Text.Encoding), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Created Created(System.Uri uri) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Created Created(string uri) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Created Created(System.Uri uri, TValue value) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Created Created(string uri, TValue value) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.CreatedAtRoute CreatedAtRoute(string routeName = default(string), object routeValues = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.CreatedAtRoute CreatedAtRoute(TValue value, string routeName = default(string), object routeValues = default(object)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult Empty { get => throw null; } - public static Microsoft.AspNetCore.Http.HttpResults.FileContentHttpResult File(System.Byte[] fileContents, string contentType = default(string), string fileDownloadName = default(string), bool enableRangeProcessing = default(bool), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult File(System.IO.Stream fileStream, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ForbidHttpResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.JsonHttpResult Json(TValue data, System.Text.Json.JsonSerializerOptions options = default(System.Text.Json.JsonSerializerOptions), string contentType = default(string), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.RedirectHttpResult LocalRedirect(string localUrl, bool permanent = default(bool), bool preserveMethod = default(bool)) => throw null; public static Microsoft.AspNetCore.Http.HttpResults.NoContent NoContent() => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound() => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.NotFound NotFound(TValue value) => throw null; public static Microsoft.AspNetCore.Http.HttpResults.Ok Ok() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.Ok Ok(TValue value) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.PhysicalFileHttpResult PhysicalFile(string path, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(string detail = default(string), string instance = default(string), int? statusCode = default(int?), string title = default(string), string type = default(string), System.Collections.Generic.IDictionary extensions = default(System.Collections.Generic.IDictionary)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.RedirectHttpResult Redirect(string url, bool permanent = default(bool), bool preserveMethod = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.RedirectToRouteHttpResult RedirectToRoute(string routeName = default(string), object routeValues = default(object), bool permanent = default(bool), bool preserveMethod = default(bool), string fragment = default(string)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), string authenticationScheme = default(string)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.SignOutHttpResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties = default(Microsoft.AspNetCore.Authentication.AuthenticationProperties), System.Collections.Generic.IList authenticationSchemes = default(System.Collections.Generic.IList)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.StatusCodeHttpResult StatusCode(int statusCode) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.PushStreamHttpResult Stream(System.Func streamWriterCallback, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult Stream(System.IO.Pipelines.PipeReader pipeReader, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.FileStreamHttpResult Stream(System.IO.Stream stream, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.Utf8ContentHttpResult Text(System.ReadOnlySpan utf8Content, string contentType = default(string), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Text(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ContentHttpResult Text(string content, string contentType = default(string), System.Text.Encoding contentEncoding = default(System.Text.Encoding), int? statusCode = default(int?)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult Unauthorized() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity UnprocessableEntity() => throw null; public static Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity UnprocessableEntity(TValue error) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.ValidationProblem ValidationProblem(System.Collections.Generic.IDictionary errors, string detail = default(string), string instance = default(string), string title = default(string), string type = default(string), System.Collections.Generic.IDictionary extensions = default(System.Collections.Generic.IDictionary)) => throw null; - public static Microsoft.AspNetCore.Http.HttpResults.VirtualFileHttpResult VirtualFile(string path, string contentType = default(string), string fileDownloadName = default(string), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue), bool enableRangeProcessing = default(bool)) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(string detail, string instance, int? statusCode, string title, string type, System.Collections.Generic.IDictionary extensions) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.ValidationProblem ValidationProblem(System.Collections.Generic.IDictionary errors, string detail, string instance, string title, string type, System.Collections.Generic.IDictionary extensions) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Created Created(string uri) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Created Created(string uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Created Created(System.Uri uri) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Created Created(System.Uri uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.CreatedAtRoute CreatedAtRoute(string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.CreatedAtRoute CreatedAtRoute(TValue value, string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(string uri) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(string uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(System.Uri uri) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.Accepted Accepted(System.Uri uri, TValue value) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.AcceptedAtRoute AcceptedAtRoute(string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.AcceptedAtRoute AcceptedAtRoute(TValue value, string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult Empty { get => throw null; } } - namespace HttpResults { - public class Accepted : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Accepted : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string Location { get => throw null; } - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + public string Location { get => throw null; } } - - public class Accepted : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Accepted : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string Location { get => throw null; } - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + public string Location { get => throw null; } } - - public class AcceptedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class AcceptedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public string RouteName { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class AcceptedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class AcceptedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public TValue Value { get => throw null; } + object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } public string RouteName { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } - public TValue Value { get => throw null; } - object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } } - - public class BadRequest : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class BadRequest : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class BadRequest : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class BadRequest : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class ChallengeHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class ChallengeHttpResult : Microsoft.AspNetCore.Http.IResult { - public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } } - - public class Conflict : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Conflict : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class Conflict : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Conflict : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class ContentHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult + public sealed class ContentHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string ResponseContent { get => throw null; set => throw null; } - public int? StatusCode { get => throw null; set => throw null; } + public string ResponseContent { get => throw null; } + public string ContentType { get => throw null; } + public int? StatusCode { get => throw null; } } - - public class Created : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Created : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string Location { get => throw null; } - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + public string Location { get => throw null; } } - - public class Created : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Created : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string Location { get => throw null; } - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + public string Location { get => throw null; } } - - public class CreatedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class CreatedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public string RouteName { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class CreatedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class CreatedAtRoute : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public TValue Value { get => throw null; } + object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } public string RouteName { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } - public TValue Value { get => throw null; } - object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } } - - public class EmptyHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class EmptyHttpResult : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public static Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult Instance { get => throw null; } } - - public class FileContentHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult + public sealed class FileContentHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public System.ReadOnlyMemory FileContents { get => throw null; set => throw null; } - public string FileDownloadName { get => throw null; set => throw null; } - public System.Int64? FileLength { get => throw null; set => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; } + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } + public bool EnableRangeProcessing { get => throw null; } + public long? FileLength { get => throw null; } + public System.ReadOnlyMemory FileContents { get => throw null; } } - - public class FileStreamHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult + public sealed class FileStreamHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string FileDownloadName { get => throw null; set => throw null; } - public System.Int64? FileLength { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; } + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } + public bool EnableRangeProcessing { get => throw null; } + public long? FileLength { get => throw null; } public System.IO.Stream FileStream { get => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } } - - public class ForbidHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class ForbidHttpResult : Microsoft.AspNetCore.Http.IResult { - public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } } - - public class JsonHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult + public sealed class JsonHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get => throw null; set => throw null; } - public int? StatusCode { get => throw null; } + public System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get => throw null; } public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public string ContentType { get => throw null; } + public int? StatusCode { get => throw null; } } - - public class NoContent : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public class NoContent : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class NotFound : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class NotFound : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class NotFound : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class NotFound : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public TValue Value { get => throw null; } + object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } - public TValue Value { get => throw null; set => throw null; } - object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } } - - public class Ok : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Ok : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class Ok : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class Ok : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class PhysicalFileHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult + public sealed class PhysicalFileHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string FileDownloadName { get => throw null; set => throw null; } - public System.Int64? FileLength { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; } + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } + public bool EnableRangeProcessing { get => throw null; } + public long? FileLength { get => throw null; } public string FileName { get => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } } - - public class ProblemHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult + public sealed class ProblemHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { - public string ContentType { get => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public Microsoft.AspNetCore.Mvc.ProblemDetails ProblemDetails { get => throw null; } - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } Microsoft.AspNetCore.Mvc.ProblemDetails Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public string ContentType { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class PushStreamHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult + public sealed class PushStreamHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string FileDownloadName { get => throw null; set => throw null; } - public System.Int64? FileLength { get => throw null; set => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; } + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } + public bool EnableRangeProcessing { get => throw null; } + public long? FileLength { get => throw null; } } - - public class RedirectHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class RedirectHttpResult : Microsoft.AspNetCore.Http.IResult { - public bool AcceptLocalUrlOnly { get => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public bool Permanent { get => throw null; } public bool PreserveMethod { get => throw null; } public string Url { get => throw null; } + public bool AcceptLocalUrlOnly { get => throw null; } } - - public class RedirectToRouteHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class RedirectToRouteHttpResult : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string Fragment { get => throw null; } - public bool Permanent { get => throw null; } - public bool PreserveMethod { get => throw null; } public string RouteName { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; } + public bool Permanent { get => throw null; } + public bool PreserveMethod { get => throw null; } + public string Fragment { get => throw null; } } - - public class Results : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult where TResult5 : Microsoft.AspNetCore.Http.IResult where TResult6 : Microsoft.AspNetCore.Http.IResult + public sealed class Results : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult4 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult5 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult6 result) => throw null; } - - public class Results : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult where TResult5 : Microsoft.AspNetCore.Http.IResult + public sealed class Results : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult4 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult5 result) => throw null; } - - public class Results : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult + public sealed class Results : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult4 result) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } } - - public class Results : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult + public sealed class Results : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult where TResult5 : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult4 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult5 result) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; } - - public class Results : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult + public sealed class Results : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : Microsoft.AspNetCore.Http.IResult where TResult2 : Microsoft.AspNetCore.Http.IResult where TResult3 : Microsoft.AspNetCore.Http.IResult where TResult4 : Microsoft.AspNetCore.Http.IResult where TResult5 : Microsoft.AspNetCore.Http.IResult where TResult6 : Microsoft.AspNetCore.Http.IResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult3 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult4 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult5 result) => throw null; + public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult6 result) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public Microsoft.AspNetCore.Http.IResult Result { get => throw null; } - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult1 result) => throw null; - public static implicit operator Microsoft.AspNetCore.Http.HttpResults.Results(TResult2 result) => throw null; } - - public class SignInHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class SignInHttpResult : Microsoft.AspNetCore.Http.IResult { - public string AuthenticationScheme { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public string AuthenticationScheme { get => throw null; } + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } } - - public class SignOutHttpResult : Microsoft.AspNetCore.Http.IResult + public sealed class SignOutHttpResult : Microsoft.AspNetCore.Http.IResult { - public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public System.Collections.Generic.IReadOnlyList AuthenticationSchemes { get => throw null; } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; } } - - public class StatusCodeHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult + public sealed class StatusCodeHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class UnauthorizedHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult + public sealed class UnauthorizedHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class UnprocessableEntity : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class UnprocessableEntity : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class UnprocessableEntity : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class UnprocessableEntity : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public TValue Value { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class Utf8ContentHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult + public sealed class Utf8ContentHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public System.ReadOnlyMemory ResponseContent { get => throw null; set => throw null; } - public int? StatusCode { get => throw null; set => throw null; } + public System.ReadOnlyMemory ResponseContent { get => throw null; } + public string ContentType { get => throw null; } + public int? StatusCode { get => throw null; } } - - public class ValidationProblem : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider + public sealed class ValidationProblem : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult { - public string ContentType { get => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public static void PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; + static void Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider.PopulateMetadata(System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder) => throw null; public Microsoft.AspNetCore.Http.HttpValidationProblemDetails ProblemDetails { get => throw null; } - public int StatusCode { get => throw null; } - int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } object Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } Microsoft.AspNetCore.Http.HttpValidationProblemDetails Microsoft.AspNetCore.Http.IValueHttpResult.Value { get => throw null; } + public string ContentType { get => throw null; } + public int StatusCode { get => throw null; } + int? Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode { get => throw null; } } - - public class VirtualFileHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult + public sealed class VirtualFileHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IContentTypeHttpResult { - public string ContentType { get => throw null; set => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string FileDownloadName { get => throw null; set => throw null; } - public System.Int64? FileLength { get => throw null; set => throw null; } - public string FileName { get => throw null; set => throw null; } - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; } + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } + public bool EnableRangeProcessing { get => throw null; } + public long? FileLength { get => throw null; } + public string FileName { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.cs index 8625e51e6a097..654a336138dc1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Http.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Http, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,374 +10,332 @@ public class ApplicationBuilder : Microsoft.AspNetCore.Builder.IApplicationBuild { public ApplicationBuilder(System.IServiceProvider serviceProvider) => throw null; public ApplicationBuilder(System.IServiceProvider serviceProvider, object server) => throw null; - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.RequestDelegate Build() => throw null; + public Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware) => throw null; public Microsoft.AspNetCore.Builder.IApplicationBuilder New() => throw null; - public System.Collections.Generic.IDictionary Properties { get => throw null; } + public Microsoft.AspNetCore.Http.RequestDelegate Build() => throw null; + public System.IServiceProvider ApplicationServices { get => throw null; set { } } public Microsoft.AspNetCore.Http.Features.IFeatureCollection ServerFeatures { get => throw null; } - public Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware) => throw null; + public System.Collections.Generic.IDictionary Properties { get => throw null; } } - } namespace Http { public class BindingAddress { public BindingAddress() => throw null; - public override bool Equals(object obj) => throw null; + public override string ToString() => throw null; public override int GetHashCode() => throw null; - public string Host { get => throw null; } - public bool IsUnixPipe { get => throw null; } + public override bool Equals(object obj) => throw null; public static Microsoft.AspNetCore.Http.BindingAddress Parse(string address) => throw null; + public string Host { get => throw null; } public string PathBase { get => throw null; } public int Port { get => throw null; } public string Scheme { get => throw null; } - public override string ToString() => throw null; + public bool IsUnixPipe { get => throw null; } public string UnixPipePath { get => throw null; } } - - public class DefaultHttpContext : Microsoft.AspNetCore.Http.HttpContext + public sealed class DefaultHttpContext : Microsoft.AspNetCore.Http.HttpContext { - public override void Abort() => throw null; - public override Microsoft.AspNetCore.Http.ConnectionInfo Connection { get => throw null; } public DefaultHttpContext() => throw null; public DefaultHttpContext(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; - public override Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } - public Microsoft.AspNetCore.Http.Features.FormOptions FormOptions { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public void Initialize(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; - public override System.Collections.Generic.IDictionary Items { get => throw null; set => throw null; } + public void Uninitialize() => throw null; + public override void Abort() => throw null; + public Microsoft.AspNetCore.Http.Features.FormOptions FormOptions { get => throw null; set { } } + public Microsoft.Extensions.DependencyInjection.IServiceScopeFactory ServiceScopeFactory { get => throw null; set { } } + public override Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } public override Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - public override System.Threading.CancellationToken RequestAborted { get => throw null; set => throw null; } - public override System.IServiceProvider RequestServices { get => throw null; set => throw null; } public override Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.Extensions.DependencyInjection.IServiceScopeFactory ServiceScopeFactory { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Http.ISession Session { get => throw null; set => throw null; } - public override string TraceIdentifier { get => throw null; set => throw null; } - public void Uninitialize() => throw null; - public override System.Security.Claims.ClaimsPrincipal User { get => throw null; set => throw null; } + public override Microsoft.AspNetCore.Http.ConnectionInfo Connection { get => throw null; } public override Microsoft.AspNetCore.Http.WebSocketManager WebSockets { get => throw null; } + public override System.Security.Claims.ClaimsPrincipal User { get => throw null; set { } } + public override System.Collections.Generic.IDictionary Items { get => throw null; set { } } + public override System.IServiceProvider RequestServices { get => throw null; set { } } + public override System.Threading.CancellationToken RequestAborted { get => throw null; set { } } + public override string TraceIdentifier { get => throw null; set { } } + public override Microsoft.AspNetCore.Http.ISession Session { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + } + public static partial class HttpRequestRewindExtensions + { + public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; + public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, int bufferThreshold) => throw null; + public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, long bufferLimit) => throw null; + public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, int bufferThreshold, long bufferLimit) => throw null; } - public class FormCollection : Microsoft.AspNetCore.Http.IFormCollection, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public bool MoveNext() => throw null; - void System.Collections.IEnumerator.Reset() => throw null; - } - - - public bool ContainsKey(string key) => throw null; - public int Count { get => throw null; } public static Microsoft.AspNetCore.Http.FormCollection Empty; - public Microsoft.AspNetCore.Http.IFormFileCollection Files { get => throw null; } - public FormCollection(System.Collections.Generic.Dictionary fields, Microsoft.AspNetCore.Http.IFormFileCollection files = default(Microsoft.AspNetCore.Http.IFormFileCollection)) => throw null; + public FormCollection(System.Collections.Generic.Dictionary fields, Microsoft.AspNetCore.Http.IFormFileCollection files) => throw null; + public bool ContainsKey(string key) => throw null; + public bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value) => throw null; public Microsoft.AspNetCore.Http.FormCollection.Enumerator GetEnumerator() => throw null; System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public Microsoft.AspNetCore.Http.IFormFileCollection Files { get => throw null; } public Microsoft.Extensions.Primitives.StringValues this[string key] { get => throw null; } + public int Count { get => throw null; } public System.Collections.Generic.ICollection Keys { get => throw null; } - public bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value) => throw null; + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public bool MoveNext() => throw null; + public void Dispose() => throw null; + void System.Collections.IEnumerator.Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - public class FormFile : Microsoft.AspNetCore.Http.IFormFile { - public string ContentDisposition { get => throw null; set => throw null; } - public string ContentType { get => throw null; set => throw null; } + public FormFile(System.IO.Stream baseStream, long baseStreamOffset, long length, string name, string fileName) => throw null; + public System.IO.Stream OpenReadStream() => throw null; public void CopyTo(System.IO.Stream target) => throw null; - public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream target, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public string FileName { get => throw null; } - public FormFile(System.IO.Stream baseStream, System.Int64 baseStreamOffset, System.Int64 length, string name, string fileName) => throw null; - public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set => throw null; } - public System.Int64 Length { get => throw null; } + public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream target, System.Threading.CancellationToken cancellationToken) => throw null; + public string ContentDisposition { get => throw null; set { } } + public string ContentType { get => throw null; set { } } + public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set { } } + public long Length { get => throw null; } public string Name { get => throw null; } - public System.IO.Stream OpenReadStream() => throw null; + public string FileName { get => throw null; } } - - public class FormFileCollection : System.Collections.Generic.List, Microsoft.AspNetCore.Http.IFormFileCollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public class FormFileCollection : System.Collections.Generic.List, Microsoft.AspNetCore.Http.IFormFileCollection, System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection { - public FormFileCollection() => throw null; public Microsoft.AspNetCore.Http.IFormFile GetFile(string name) => throw null; public System.Collections.Generic.IReadOnlyList GetFiles(string name) => throw null; + public FormFileCollection() => throw null; public Microsoft.AspNetCore.Http.IFormFile this[string name] { get => throw null; } } - - public class HeaderDictionary : Microsoft.AspNetCore.Http.IHeaderDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public class HeaderDictionary : Microsoft.AspNetCore.Http.IHeaderDictionary, System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public bool MoveNext() => throw null; - void System.Collections.IEnumerator.Reset() => throw null; - } - - + public HeaderDictionary() => throw null; + public HeaderDictionary(System.Collections.Generic.Dictionary store) => throw null; + public HeaderDictionary(int capacity) => throw null; public void Add(System.Collections.Generic.KeyValuePair item) => throw null; public void Add(string key, Microsoft.Extensions.Primitives.StringValues value) => throw null; public void Clear() => throw null; public bool Contains(System.Collections.Generic.KeyValuePair item) => throw null; public bool ContainsKey(string key) => throw null; - public System.Int64? ContentLength { get => throw null; set => throw null; } public void CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } + public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; + public bool Remove(string key) => throw null; + public bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value) => throw null; public Microsoft.AspNetCore.Http.HeaderDictionary.Enumerator GetEnumerator() => throw null; System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public HeaderDictionary() => throw null; - public HeaderDictionary(System.Collections.Generic.Dictionary store) => throw null; - public HeaderDictionary(int capacity) => throw null; - public bool IsReadOnly { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringValues this[string key] { get => throw null; set => throw null; } - Microsoft.Extensions.Primitives.StringValues System.Collections.Generic.IDictionary.this[string key] { get => throw null; set => throw null; } + public Microsoft.Extensions.Primitives.StringValues this[string key] { get => throw null; set { } } + Microsoft.Extensions.Primitives.StringValues System.Collections.Generic.IDictionary.this[string key] { get => throw null; set { } } + public long? ContentLength { get => throw null; set { } } + public int Count { get => throw null; } + public bool IsReadOnly { get => throw null; set { } } public System.Collections.Generic.ICollection Keys { get => throw null; } - public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; - public bool Remove(string key) => throw null; - public bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value) => throw null; public System.Collections.Generic.ICollection Values { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public bool MoveNext() => throw null; + public void Dispose() => throw null; + void System.Collections.IEnumerator.Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - public class HttpContextAccessor : Microsoft.AspNetCore.Http.IHttpContextAccessor { - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } public HttpContextAccessor() => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } } - - public static class HttpRequestRewindExtensions - { - public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request) => throw null; - public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, int bufferThreshold) => throw null; - public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, int bufferThreshold, System.Int64 bufferLimit) => throw null; - public static void EnableBuffering(this Microsoft.AspNetCore.Http.HttpRequest request, System.Int64 bufferLimit) => throw null; - } - public class MiddlewareFactory : Microsoft.AspNetCore.Http.IMiddlewareFactory { - public Microsoft.AspNetCore.Http.IMiddleware Create(System.Type middlewareType) => throw null; public MiddlewareFactory(System.IServiceProvider serviceProvider) => throw null; + public Microsoft.AspNetCore.Http.IMiddleware Create(System.Type middlewareType) => throw null; public void Release(Microsoft.AspNetCore.Http.IMiddleware middleware) => throw null; } - public class QueryCollection : Microsoft.AspNetCore.Http.IQueryCollection, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public bool MoveNext() => throw null; - void System.Collections.IEnumerator.Reset() => throw null; - } - - - public bool ContainsKey(string key) => throw null; - public int Count { get => throw null; } public static Microsoft.AspNetCore.Http.QueryCollection Empty; - public Microsoft.AspNetCore.Http.QueryCollection.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public Microsoft.Extensions.Primitives.StringValues this[string key] { get => throw null; } - public System.Collections.Generic.ICollection Keys { get => throw null; } public QueryCollection() => throw null; public QueryCollection(System.Collections.Generic.Dictionary store) => throw null; public QueryCollection(Microsoft.AspNetCore.Http.QueryCollection store) => throw null; public QueryCollection(int capacity) => throw null; + public bool ContainsKey(string key) => throw null; public bool TryGetValue(string key, out Microsoft.Extensions.Primitives.StringValues value) => throw null; + public Microsoft.AspNetCore.Http.QueryCollection.Enumerator GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public Microsoft.Extensions.Primitives.StringValues this[string key] { get => throw null; } + public int Count { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public bool MoveNext() => throw null; + public void Dispose() => throw null; + void System.Collections.IEnumerator.Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - - public static class RequestFormReaderExtensions + public static partial class RequestFormReaderExtensions { - public static System.Threading.Tasks.Task ReadFormAsync(this Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.Features.FormOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task ReadFormAsync(this Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.Features.FormOptions options, System.Threading.CancellationToken cancellationToken) => throw null; } - public static class SendFileFallback { - public static System.Threading.Tasks.Task SendFileAsync(System.IO.Stream destination, string filePath, System.Int64 offset, System.Int64? count, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendFileAsync(System.IO.Stream destination, string filePath, long offset, long? count, System.Threading.CancellationToken cancellationToken) => throw null; } - public class StreamResponseBodyFeature : Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature { - public virtual System.Threading.Tasks.Task CompleteAsync() => throw null; + public StreamResponseBodyFeature(System.IO.Stream stream) => throw null; + public StreamResponseBodyFeature(System.IO.Stream stream, Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature priorFeature) => throw null; public virtual void DisableBuffering() => throw null; + public virtual System.Threading.Tasks.Task SendFileAsync(string path, long offset, long? count, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task CompleteAsync() => throw null; public void Dispose() => throw null; - public Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature PriorFeature { get => throw null; } - public virtual System.Threading.Tasks.Task SendFileAsync(string path, System.Int64 offset, System.Int64? count, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; public System.IO.Stream Stream { get => throw null; } - public StreamResponseBodyFeature(System.IO.Stream stream) => throw null; - public StreamResponseBodyFeature(System.IO.Stream stream, Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature priorFeature) => throw null; + public Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature PriorFeature { get => throw null; } public System.IO.Pipelines.PipeWriter Writer { get => throw null; } } - namespace Features { public class DefaultSessionFeature : Microsoft.AspNetCore.Http.Features.ISessionFeature { public DefaultSessionFeature() => throw null; - public Microsoft.AspNetCore.Http.ISession Session { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.ISession Session { get => throw null; set { } } } - public class FormFeature : Microsoft.AspNetCore.Http.Features.IFormFeature { - public Microsoft.AspNetCore.Http.IFormCollection Form { get => throw null; set => throw null; } + public FormFeature(Microsoft.AspNetCore.Http.IFormCollection form) => throw null; public FormFeature(Microsoft.AspNetCore.Http.HttpRequest request) => throw null; public FormFeature(Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.Features.FormOptions options) => throw null; - public FormFeature(Microsoft.AspNetCore.Http.IFormCollection form) => throw null; - public bool HasFormContentType { get => throw null; } public Microsoft.AspNetCore.Http.IFormCollection ReadForm() => throw null; public System.Threading.Tasks.Task ReadFormAsync() => throw null; public System.Threading.Tasks.Task ReadFormAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public bool HasFormContentType { get => throw null; } + public Microsoft.AspNetCore.Http.IFormCollection Form { get => throw null; set { } } } - public class FormOptions { - public bool BufferBody { get => throw null; set => throw null; } - public System.Int64 BufferBodyLengthLimit { get => throw null; set => throw null; } - public const int DefaultBufferBodyLengthLimit = default; - public const int DefaultMemoryBufferThreshold = default; - public const System.Int64 DefaultMultipartBodyLengthLimit = default; - public const int DefaultMultipartBoundaryLengthLimit = default; + public static int DefaultMemoryBufferThreshold; + public static int DefaultBufferBodyLengthLimit; + public static int DefaultMultipartBoundaryLengthLimit; + public static long DefaultMultipartBodyLengthLimit; public FormOptions() => throw null; - public int KeyLengthLimit { get => throw null; set => throw null; } - public int MemoryBufferThreshold { get => throw null; set => throw null; } - public System.Int64 MultipartBodyLengthLimit { get => throw null; set => throw null; } - public int MultipartBoundaryLengthLimit { get => throw null; set => throw null; } - public int MultipartHeadersCountLimit { get => throw null; set => throw null; } - public int MultipartHeadersLengthLimit { get => throw null; set => throw null; } - public int ValueCountLimit { get => throw null; set => throw null; } - public int ValueLengthLimit { get => throw null; set => throw null; } + public bool BufferBody { get => throw null; set { } } + public int MemoryBufferThreshold { get => throw null; set { } } + public long BufferBodyLengthLimit { get => throw null; set { } } + public int ValueCountLimit { get => throw null; set { } } + public int KeyLengthLimit { get => throw null; set { } } + public int ValueLengthLimit { get => throw null; set { } } + public int MultipartBoundaryLengthLimit { get => throw null; set { } } + public int MultipartHeadersCountLimit { get => throw null; set { } } + public int MultipartHeadersLengthLimit { get => throw null; set { } } + public long MultipartBodyLengthLimit { get => throw null; set { } } } - public class HttpConnectionFeature : Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature { - public string ConnectionId { get => throw null; set => throw null; } public HttpConnectionFeature() => throw null; - public System.Net.IPAddress LocalIpAddress { get => throw null; set => throw null; } - public int LocalPort { get => throw null; set => throw null; } - public System.Net.IPAddress RemoteIpAddress { get => throw null; set => throw null; } - public int RemotePort { get => throw null; set => throw null; } + public string ConnectionId { get => throw null; set { } } + public System.Net.IPAddress LocalIpAddress { get => throw null; set { } } + public int LocalPort { get => throw null; set { } } + public System.Net.IPAddress RemoteIpAddress { get => throw null; set { } } + public int RemotePort { get => throw null; set { } } } - public class HttpRequestFeature : Microsoft.AspNetCore.Http.Features.IHttpRequestFeature { - public System.IO.Stream Body { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set => throw null; } public HttpRequestFeature() => throw null; - public string Method { get => throw null; set => throw null; } - public string Path { get => throw null; set => throw null; } - public string PathBase { get => throw null; set => throw null; } - public string Protocol { get => throw null; set => throw null; } - public string QueryString { get => throw null; set => throw null; } - public string RawTarget { get => throw null; set => throw null; } - public string Scheme { get => throw null; set => throw null; } + public string Protocol { get => throw null; set { } } + public string Scheme { get => throw null; set { } } + public string Method { get => throw null; set { } } + public string PathBase { get => throw null; set { } } + public string Path { get => throw null; set { } } + public string QueryString { get => throw null; set { } } + public string RawTarget { get => throw null; set { } } + public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set { } } + public System.IO.Stream Body { get => throw null; set { } } } - public class HttpRequestIdentifierFeature : Microsoft.AspNetCore.Http.Features.IHttpRequestIdentifierFeature { public HttpRequestIdentifierFeature() => throw null; - public string TraceIdentifier { get => throw null; set => throw null; } + public string TraceIdentifier { get => throw null; set { } } } - public class HttpRequestLifetimeFeature : Microsoft.AspNetCore.Http.Features.IHttpRequestLifetimeFeature { public void Abort() => throw null; public HttpRequestLifetimeFeature() => throw null; - public System.Threading.CancellationToken RequestAborted { get => throw null; set => throw null; } + public System.Threading.CancellationToken RequestAborted { get => throw null; set { } } } - public class HttpResponseFeature : Microsoft.AspNetCore.Http.Features.IHttpResponseFeature { - public System.IO.Stream Body { get => throw null; set => throw null; } - public virtual bool HasStarted { get => throw null; } - public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set => throw null; } public HttpResponseFeature() => throw null; - public virtual void OnCompleted(System.Func callback, object state) => throw null; public virtual void OnStarting(System.Func callback, object state) => throw null; - public string ReasonPhrase { get => throw null; set => throw null; } - public int StatusCode { get => throw null; set => throw null; } + public virtual void OnCompleted(System.Func callback, object state) => throw null; + public int StatusCode { get => throw null; set { } } + public string ReasonPhrase { get => throw null; set { } } + public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get => throw null; set { } } + public System.IO.Stream Body { get => throw null; set { } } + public virtual bool HasStarted { get => throw null; } } - public interface IHttpActivityFeature { System.Diagnostics.Activity Activity { get; set; } } - public class ItemsFeature : Microsoft.AspNetCore.Http.Features.IItemsFeature { - public System.Collections.Generic.IDictionary Items { get => throw null; set => throw null; } public ItemsFeature() => throw null; + public System.Collections.Generic.IDictionary Items { get => throw null; set { } } } - public class QueryFeature : Microsoft.AspNetCore.Http.Features.IQueryFeature { - public Microsoft.AspNetCore.Http.IQueryCollection Query { get => throw null; set => throw null; } - public QueryFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; public QueryFeature(Microsoft.AspNetCore.Http.IQueryCollection query) => throw null; + public QueryFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; + public Microsoft.AspNetCore.Http.IQueryCollection Query { get => throw null; set { } } } - public class RequestBodyPipeFeature : Microsoft.AspNetCore.Http.Features.IRequestBodyPipeFeature { - public System.IO.Pipelines.PipeReader Reader { get => throw null; } public RequestBodyPipeFeature(Microsoft.AspNetCore.Http.HttpContext context) => throw null; + public System.IO.Pipelines.PipeReader Reader { get => throw null; } } - public class RequestCookiesFeature : Microsoft.AspNetCore.Http.Features.IRequestCookiesFeature { - public Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get => throw null; set => throw null; } - public RequestCookiesFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; public RequestCookiesFeature(Microsoft.AspNetCore.Http.IRequestCookieCollection cookies) => throw null; + public RequestCookiesFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; + public Microsoft.AspNetCore.Http.IRequestCookieCollection Cookies { get => throw null; set { } } } - - public class RequestServicesFeature : Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature, System.IAsyncDisposable, System.IDisposable + public class RequestServicesFeature : Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature, System.IDisposable, System.IAsyncDisposable { - public void Dispose() => throw null; - public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - public System.IServiceProvider RequestServices { get => throw null; set => throw null; } public RequestServicesFeature(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory scopeFactory) => throw null; + public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + public void Dispose() => throw null; + public System.IServiceProvider RequestServices { get => throw null; set { } } } - public class ResponseCookiesFeature : Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature { - public Microsoft.AspNetCore.Http.IResponseCookies Cookies { get => throw null; } public ResponseCookiesFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; public ResponseCookiesFeature(Microsoft.AspNetCore.Http.Features.IFeatureCollection features, Microsoft.Extensions.ObjectPool.ObjectPool builderPool) => throw null; + public Microsoft.AspNetCore.Http.IResponseCookies Cookies { get => throw null; } } - public class RouteValuesFeature : Microsoft.AspNetCore.Http.Features.IRouteValuesFeature { - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } public RouteValuesFeature() => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class ServiceProvidersFeature : Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature { - public System.IServiceProvider RequestServices { get => throw null; set => throw null; } public ServiceProvidersFeature() => throw null; + public System.IServiceProvider RequestServices { get => throw null; set { } } } - public class TlsConnectionFeature : Microsoft.AspNetCore.Http.Features.ITlsConnectionFeature { - public System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get => throw null; set => throw null; } public System.Threading.Tasks.Task GetClientCertificateAsync(System.Threading.CancellationToken cancellationToken) => throw null; public TlsConnectionFeature() => throw null; + public System.Security.Cryptography.X509Certificates.X509Certificate2 ClientCertificate { get => throw null; set { } } } - namespace Authentication { public class HttpAuthenticationFeature : Microsoft.AspNetCore.Http.Features.Authentication.IHttpAuthenticationFeature { public HttpAuthenticationFeature() => throw null; - public System.Security.Claims.ClaimsPrincipal User { get => throw null; set => throw null; } + public System.Security.Claims.ClaimsPrincipal User { get => throw null; set { } } } - } } } @@ -387,11 +344,10 @@ namespace Extensions { namespace DependencyInjection { - public static class HttpServiceCollectionExtensions + public static partial class HttpServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpContextAccessor(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpLogging.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpLogging.cs index b648a77f716f0..574650472b012 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpLogging.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpLogging.cs @@ -1,116 +1,108 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.HttpLogging, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class HttpLoggingBuilderExtensions + public static partial class HttpLoggingBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpLogging(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseW3CLogging(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - } namespace HttpLogging { [System.Flags] public enum HttpLoggingFields : long { - All = 3325, None = 0, - Request = 1117, - RequestBody = 1024, - RequestHeaders = 64, - RequestMethod = 8, RequestPath = 1, - RequestProperties = 29, - RequestPropertiesAndHeaders = 93, - RequestProtocol = 4, RequestQuery = 2, + RequestProtocol = 4, + RequestMethod = 8, RequestScheme = 16, + ResponseStatusCode = 32, + RequestHeaders = 64, + ResponseHeaders = 128, RequestTrailers = 256, - Response = 2208, + ResponseTrailers = 512, + RequestBody = 1024, ResponseBody = 2048, - ResponseHeaders = 128, + RequestProperties = 29, + RequestPropertiesAndHeaders = 93, ResponsePropertiesAndHeaders = 160, - ResponseStatusCode = 32, - ResponseTrailers = 512, + Request = 1117, + Response = 2208, + All = 3325, } - - public class HttpLoggingOptions + public sealed class HttpLoggingOptions { public HttpLoggingOptions() => throw null; - public Microsoft.AspNetCore.HttpLogging.HttpLoggingFields LoggingFields { get => throw null; set => throw null; } - public Microsoft.AspNetCore.HttpLogging.MediaTypeOptions MediaTypeOptions { get => throw null; } - public int RequestBodyLogLimit { get => throw null; set => throw null; } + public Microsoft.AspNetCore.HttpLogging.HttpLoggingFields LoggingFields { get => throw null; set { } } public System.Collections.Generic.ISet RequestHeaders { get => throw null; } - public int ResponseBodyLogLimit { get => throw null; set => throw null; } public System.Collections.Generic.ISet ResponseHeaders { get => throw null; } + public Microsoft.AspNetCore.HttpLogging.MediaTypeOptions MediaTypeOptions { get => throw null; } + public int RequestBodyLogLimit { get => throw null; set { } } + public int ResponseBodyLogLimit { get => throw null; set { } } } - - public class MediaTypeOptions + public sealed class MediaTypeOptions { - public void AddBinary(Microsoft.Net.Http.Headers.MediaTypeHeaderValue mediaType) => throw null; - public void AddBinary(string contentType) => throw null; public void AddText(string contentType) => throw null; public void AddText(string contentType, System.Text.Encoding encoding) => throw null; + public void AddBinary(Microsoft.Net.Http.Headers.MediaTypeHeaderValue mediaType) => throw null; + public void AddBinary(string contentType) => throw null; public void Clear() => throw null; } - - public class W3CLoggerOptions + public sealed class W3CLoggerOptions { - public System.Collections.Generic.ISet AdditionalRequestHeaders { get => throw null; } - public string FileName { get => throw null; set => throw null; } - public int? FileSizeLimit { get => throw null; set => throw null; } - public System.TimeSpan FlushInterval { get => throw null; set => throw null; } - public string LogDirectory { get => throw null; set => throw null; } - public Microsoft.AspNetCore.HttpLogging.W3CLoggingFields LoggingFields { get => throw null; set => throw null; } - public int? RetainedFileCountLimit { get => throw null; set => throw null; } public W3CLoggerOptions() => throw null; + public int? FileSizeLimit { get => throw null; set { } } + public int? RetainedFileCountLimit { get => throw null; set { } } + public string FileName { get => throw null; set { } } + public string LogDirectory { get => throw null; set { } } + public System.TimeSpan FlushInterval { get => throw null; set { } } + public System.Collections.Generic.ISet AdditionalRequestHeaders { get => throw null; } + public Microsoft.AspNetCore.HttpLogging.W3CLoggingFields LoggingFields { get => throw null; set { } } } - [System.Flags] public enum W3CLoggingFields : long { - All = 131071, - ClientIpAddress = 4, - ConnectionInfoFields = 100, - Cookie = 32768, + None = 0, Date = 1, - Host = 8192, + Time = 2, + ClientIpAddress = 4, + UserName = 8, + ServerName = 16, + ServerIpAddress = 32, + ServerPort = 64, Method = 128, - None = 0, + UriStem = 256, + UriQuery = 512, ProtocolStatus = 1024, + TimeTaken = 2048, ProtocolVersion = 4096, + Host = 8192, + UserAgent = 16384, + Cookie = 32768, Referer = 65536, - Request = 95104, + ConnectionInfoFields = 100, RequestHeaders = 90112, - ServerIpAddress = 32, - ServerName = 16, - ServerPort = 64, - Time = 2, - TimeTaken = 2048, - UriQuery = 512, - UriStem = 256, - UserAgent = 16384, - UserName = 8, + Request = 95104, + All = 131071, } - } } namespace Extensions { namespace DependencyInjection { - public static class HttpLoggingServicesExtensions + public static partial class HttpLoggingServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddW3CLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpOverrides.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpOverrides.cs index 36678aa5c0d27..60aeb95f194db 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpOverrides.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpOverrides.cs @@ -1,52 +1,46 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.HttpOverrides, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class CertificateForwardingBuilderExtensions + public static partial class CertificateForwardingBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCertificateForwarding(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static class ForwardedHeadersExtensions + public static partial class ForwardedHeadersExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseForwardedHeaders(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseForwardedHeaders(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Builder.ForwardedHeadersOptions options) => throw null; } - public class ForwardedHeadersOptions { - public System.Collections.Generic.IList AllowedHosts { get => throw null; set => throw null; } - public int? ForwardLimit { get => throw null; set => throw null; } - public string ForwardedForHeaderName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders ForwardedHeaders { get => throw null; set => throw null; } public ForwardedHeadersOptions() => throw null; - public string ForwardedHostHeaderName { get => throw null; set => throw null; } - public string ForwardedProtoHeaderName { get => throw null; set => throw null; } - public System.Collections.Generic.IList KnownNetworks { get => throw null; } + public string ForwardedForHeaderName { get => throw null; set { } } + public string ForwardedHostHeaderName { get => throw null; set { } } + public string ForwardedProtoHeaderName { get => throw null; set { } } + public string OriginalForHeaderName { get => throw null; set { } } + public string OriginalHostHeaderName { get => throw null; set { } } + public string OriginalProtoHeaderName { get => throw null; set { } } + public Microsoft.AspNetCore.HttpOverrides.ForwardedHeaders ForwardedHeaders { get => throw null; set { } } + public int? ForwardLimit { get => throw null; set { } } public System.Collections.Generic.IList KnownProxies { get => throw null; } - public string OriginalForHeaderName { get => throw null; set => throw null; } - public string OriginalHostHeaderName { get => throw null; set => throw null; } - public string OriginalProtoHeaderName { get => throw null; set => throw null; } - public bool RequireHeaderSymmetry { get => throw null; set => throw null; } + public System.Collections.Generic.IList KnownNetworks { get => throw null; } + public System.Collections.Generic.IList AllowedHosts { get => throw null; set { } } + public bool RequireHeaderSymmetry { get => throw null; set { } } } - - public static class HttpMethodOverrideExtensions + public static partial class HttpMethodOverrideExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpMethodOverride(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpMethodOverride(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Builder.HttpMethodOverrideOptions options) => throw null; } - public class HttpMethodOverrideOptions { - public string FormFieldName { get => throw null; set => throw null; } public HttpMethodOverrideOptions() => throw null; + public string FormFieldName { get => throw null; set { } } } - } namespace HttpOverrides { @@ -55,24 +49,21 @@ public class CertificateForwardingMiddleware public CertificateForwardingMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - public class CertificateForwardingOptions { - public CertificateForwardingOptions() => throw null; - public string CertificateHeader { get => throw null; set => throw null; } public System.Func HeaderConverter; + public CertificateForwardingOptions() => throw null; + public string CertificateHeader { get => throw null; set { } } } - [System.Flags] - public enum ForwardedHeaders : int + public enum ForwardedHeaders { - All = 7, None = 0, XForwardedFor = 1, XForwardedHost = 2, XForwardedProto = 4, + All = 7, } - public static class ForwardedHeadersDefaults { public static string XForwardedForHeaderName { get => throw null; } @@ -82,39 +73,34 @@ public static class ForwardedHeadersDefaults public static string XOriginalHostHeaderName { get => throw null; } public static string XOriginalProtoHeaderName { get => throw null; } } - public class ForwardedHeadersMiddleware { - public void ApplyForwarders(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public ForwardedHeadersMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; + public void ApplyForwarders(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class HttpMethodOverrideMiddleware { public HttpMethodOverrideMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class IPNetwork { - public bool Contains(System.Net.IPAddress address) => throw null; public IPNetwork(System.Net.IPAddress prefix, int prefixLength) => throw null; + public bool Contains(System.Net.IPAddress address) => throw null; public System.Net.IPAddress Prefix { get => throw null; } public int PrefixLength { get => throw null; } } - } } namespace Extensions { namespace DependencyInjection { - public static class CertificateForwardingServiceExtensions + public static partial class CertificateForwardingServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCertificateForwarding(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpsPolicy.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpsPolicy.cs index 5614099fd8449..13640ec001442 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpsPolicy.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.HttpsPolicy.cs @@ -1,65 +1,56 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.HttpsPolicy, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class HstsBuilderExtensions + public static partial class HstsBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHsts(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static class HstsServicesExtensions + public static partial class HstsServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHsts(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - - public static class HttpsPolicyBuilderExtensions + public static partial class HttpsPolicyBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHttpsRedirection(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - - public static class HttpsRedirectionServicesExtensions + public static partial class HttpsRedirectionServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpsRedirection(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } namespace HttpsPolicy { public class HstsMiddleware { - public HstsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; public HstsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public HstsMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class HstsOptions { - public System.Collections.Generic.IList ExcludedHosts { get => throw null; } public HstsOptions() => throw null; - public bool IncludeSubDomains { get => throw null; set => throw null; } - public System.TimeSpan MaxAge { get => throw null; set => throw null; } - public bool Preload { get => throw null; set => throw null; } + public System.TimeSpan MaxAge { get => throw null; set { } } + public bool IncludeSubDomains { get => throw null; set { } } + public bool Preload { get => throw null; set { } } + public System.Collections.Generic.IList ExcludedHosts { get => throw null; } } - public class HttpsRedirectionMiddleware { public HttpsRedirectionMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Configuration.IConfiguration config, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public HttpsRedirectionMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Configuration.IConfiguration config, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature serverAddressesFeature) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class HttpsRedirectionOptions { - public int? HttpsPort { get => throw null; set => throw null; } public HttpsRedirectionOptions() => throw null; - public int RedirectStatusCode { get => throw null; set => throw null; } + public int RedirectStatusCode { get => throw null; set { } } + public int? HttpsPort { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Identity.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Identity.cs index 134862c6d1c39..c3276a53cd9d4 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Identity.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Identity.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Identity, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,166 +11,149 @@ public class AspNetRoleManager : Microsoft.AspNetCore.Identity.RoleManage public AspNetRoleManager(Microsoft.AspNetCore.Identity.IRoleStore store, System.Collections.Generic.IEnumerable> roleValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, Microsoft.Extensions.Logging.ILogger> logger, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor) : base(default(Microsoft.AspNetCore.Identity.IRoleStore), default(System.Collections.Generic.IEnumerable>), default(Microsoft.AspNetCore.Identity.ILookupNormalizer), default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber), default(Microsoft.Extensions.Logging.ILogger>)) => throw null; protected override System.Threading.CancellationToken CancellationToken { get => throw null; } } - public class AspNetUserManager : Microsoft.AspNetCore.Identity.UserManager, System.IDisposable where TUser : class { public AspNetUserManager(Microsoft.AspNetCore.Identity.IUserStore store, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher passwordHasher, System.Collections.Generic.IEnumerable> userValidators, System.Collections.Generic.IEnumerable> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, System.IServiceProvider services, Microsoft.Extensions.Logging.ILogger> logger) : base(default(Microsoft.AspNetCore.Identity.IUserStore), default(Microsoft.Extensions.Options.IOptions), default(Microsoft.AspNetCore.Identity.IPasswordHasher), default(System.Collections.Generic.IEnumerable>), default(System.Collections.Generic.IEnumerable>), default(Microsoft.AspNetCore.Identity.ILookupNormalizer), default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber), default(System.IServiceProvider), default(Microsoft.Extensions.Logging.ILogger>)) => throw null; protected override System.Threading.CancellationToken CancellationToken { get => throw null; } } - public class DataProtectionTokenProviderOptions { public DataProtectionTokenProviderOptions() => throw null; - public string Name { get => throw null; set => throw null; } - public System.TimeSpan TokenLifespan { get => throw null; set => throw null; } + public string Name { get => throw null; set { } } + public System.TimeSpan TokenLifespan { get => throw null; set { } } } - public class DataProtectorTokenProvider : Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider where TUser : class { - public virtual System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public DataProtectorTokenProvider(Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILogger> logger) => throw null; public virtual System.Threading.Tasks.Task GenerateAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; - public Microsoft.Extensions.Logging.ILogger> Logger { get => throw null; } - public string Name { get => throw null; } + public virtual System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public virtual System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; protected Microsoft.AspNetCore.Identity.DataProtectionTokenProviderOptions Options { get => throw null; } protected Microsoft.AspNetCore.DataProtection.IDataProtector Protector { get => throw null; } - public virtual System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public string Name { get => throw null; } + public Microsoft.Extensions.Logging.ILogger> Logger { get => throw null; } } - public class ExternalLoginInfo : Microsoft.AspNetCore.Identity.UserLoginInfo { - public Microsoft.AspNetCore.Authentication.AuthenticationProperties AuthenticationProperties { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable AuthenticationTokens { get => throw null; set => throw null; } public ExternalLoginInfo(System.Security.Claims.ClaimsPrincipal principal, string loginProvider, string providerKey, string displayName) : base(default(string), default(string), default(string)) => throw null; - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set { } } + public System.Collections.Generic.IEnumerable AuthenticationTokens { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties AuthenticationProperties { get => throw null; set { } } } - - public interface ISecurityStampValidator - { - System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context); - } - - public interface ITwoFactorSecurityStampValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator - { - } - - public static class IdentityBuilderExtensions + public static partial class IdentityBuilderExtensions { public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultTokenProviders(this Microsoft.AspNetCore.Identity.IdentityBuilder builder) => throw null; public static Microsoft.AspNetCore.Identity.IdentityBuilder AddSignInManager(this Microsoft.AspNetCore.Identity.IdentityBuilder builder) => throw null; public static Microsoft.AspNetCore.Identity.IdentityBuilder AddSignInManager(this Microsoft.AspNetCore.Identity.IdentityBuilder builder) where TSignInManager : class => throw null; } - public class IdentityConstants { public static string ApplicationScheme; public static string ExternalScheme; - public IdentityConstants() => throw null; public static string TwoFactorRememberMeScheme; public static string TwoFactorUserIdScheme; + public IdentityConstants() => throw null; } - - public static class IdentityCookieAuthenticationBuilderExtensions + public class IdentityCookiesBuilder + { + public IdentityCookiesBuilder() => throw null; + public Microsoft.Extensions.Options.OptionsBuilder ApplicationCookie { get => throw null; set { } } + public Microsoft.Extensions.Options.OptionsBuilder ExternalCookie { get => throw null; set { } } + public Microsoft.Extensions.Options.OptionsBuilder TwoFactorRememberMeCookie { get => throw null; set { } } + public Microsoft.Extensions.Options.OptionsBuilder TwoFactorUserIdCookie { get => throw null; set { } } + } + public static partial class IdentityCookieAuthenticationBuilderExtensions { - public static Microsoft.Extensions.Options.OptionsBuilder AddApplicationCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; - public static Microsoft.Extensions.Options.OptionsBuilder AddExternalCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, System.Action configureCookies) => throw null; + public static Microsoft.Extensions.Options.OptionsBuilder AddApplicationCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; + public static Microsoft.Extensions.Options.OptionsBuilder AddExternalCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; public static Microsoft.Extensions.Options.OptionsBuilder AddTwoFactorRememberMeCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; public static Microsoft.Extensions.Options.OptionsBuilder AddTwoFactorUserIdCookie(this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder) => throw null; } - - public class IdentityCookiesBuilder + public interface ISecurityStampValidator { - public Microsoft.Extensions.Options.OptionsBuilder ApplicationCookie { get => throw null; set => throw null; } - public Microsoft.Extensions.Options.OptionsBuilder ExternalCookie { get => throw null; set => throw null; } - public IdentityCookiesBuilder() => throw null; - public Microsoft.Extensions.Options.OptionsBuilder TwoFactorRememberMeCookie { get => throw null; set => throw null; } - public Microsoft.Extensions.Options.OptionsBuilder TwoFactorUserIdCookie { get => throw null; set => throw null; } + System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context); } - - public class SecurityStampRefreshingPrincipalContext + public interface ITwoFactorSecurityStampValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator { - public System.Security.Claims.ClaimsPrincipal CurrentPrincipal { get => throw null; set => throw null; } - public System.Security.Claims.ClaimsPrincipal NewPrincipal { get => throw null; set => throw null; } - public SecurityStampRefreshingPrincipalContext() => throw null; } - - public static class SecurityStampValidator + public class SecurityStampRefreshingPrincipalContext { - public static System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) where TValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator => throw null; - public static System.Threading.Tasks.Task ValidatePrincipalAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; + public SecurityStampRefreshingPrincipalContext() => throw null; + public System.Security.Claims.ClaimsPrincipal CurrentPrincipal { get => throw null; set { } } + public System.Security.Claims.ClaimsPrincipal NewPrincipal { get => throw null; set { } } } - public class SecurityStampValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator where TUser : class { - public Microsoft.AspNetCore.Authentication.ISystemClock Clock { get => throw null; } - public Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions Options { get => throw null; } public SecurityStampValidator(Microsoft.Extensions.Options.IOptions options, Microsoft.AspNetCore.Identity.SignInManager signInManager, Microsoft.AspNetCore.Authentication.ISystemClock clock, Microsoft.Extensions.Logging.ILoggerFactory logger) => throw null; protected virtual System.Threading.Tasks.Task SecurityStampVerified(TUser user, Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; - public Microsoft.AspNetCore.Identity.SignInManager SignInManager { get => throw null; } - public virtual System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; protected virtual System.Threading.Tasks.Task VerifySecurityStamp(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; + public Microsoft.AspNetCore.Identity.SignInManager SignInManager { get => throw null; } + public Microsoft.AspNetCore.Identity.SecurityStampValidatorOptions Options { get => throw null; } + public Microsoft.AspNetCore.Authentication.ISystemClock Clock { get => throw null; } + public Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set { } } + } + public static class SecurityStampValidator + { + public static System.Threading.Tasks.Task ValidatePrincipalAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; + public static System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) where TValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator => throw null; } - public class SecurityStampValidatorOptions { - public System.Func OnRefreshingPrincipal { get => throw null; set => throw null; } public SecurityStampValidatorOptions() => throw null; - public System.TimeSpan ValidationInterval { get => throw null; set => throw null; } + public System.TimeSpan ValidationInterval { get => throw null; set { } } + public System.Func OnRefreshingPrincipal { get => throw null; set { } } } - public class SignInManager where TUser : class { + public SignInManager(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory claimsFactory, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILogger> logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Identity.IUserConfirmation confirmation) => throw null; + public virtual System.Threading.Tasks.Task CreateUserPrincipalAsync(TUser user) => throw null; + public virtual bool IsSignedIn(System.Security.Claims.ClaimsPrincipal principal) => throw null; public virtual System.Threading.Tasks.Task CanSignInAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task RefreshSignInAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SignInAsync(TUser user, bool isPersistent, string authenticationMethod) => throw null; + public virtual System.Threading.Tasks.Task SignInAsync(TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod) => throw null; + public virtual System.Threading.Tasks.Task SignInWithClaimsAsync(TUser user, bool isPersistent, System.Collections.Generic.IEnumerable additionalClaims) => throw null; + public virtual System.Threading.Tasks.Task SignInWithClaimsAsync(TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, System.Collections.Generic.IEnumerable additionalClaims) => throw null; + public virtual System.Threading.Tasks.Task SignOutAsync() => throw null; + public virtual System.Threading.Tasks.Task ValidateSecurityStampAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual System.Threading.Tasks.Task ValidateTwoFactorSecurityStampAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual System.Threading.Tasks.Task ValidateSecurityStampAsync(TUser user, string securityStamp) => throw null; + public virtual System.Threading.Tasks.Task PasswordSignInAsync(TUser user, string password, bool isPersistent, bool lockoutOnFailure) => throw null; + public virtual System.Threading.Tasks.Task PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure) => throw null; public virtual System.Threading.Tasks.Task CheckPasswordSignInAsync(TUser user, string password, bool lockoutOnFailure) => throw null; - public Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory ClaimsFactory { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties ConfigureExternalAuthenticationProperties(string provider, string redirectUrl, string userId = default(string)) => throw null; - public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.Task CreateUserPrincipalAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task IsTwoFactorClientRememberedAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task RememberTwoFactorClientAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task ForgetTwoFactorClientAsync() => throw null; + public virtual System.Threading.Tasks.Task TwoFactorRecoveryCodeSignInAsync(string recoveryCode) => throw null; + public virtual System.Threading.Tasks.Task TwoFactorAuthenticatorSignInAsync(string code, bool isPersistent, bool rememberClient) => throw null; + public virtual System.Threading.Tasks.Task TwoFactorSignInAsync(string provider, string code, bool isPersistent, bool rememberClient) => throw null; + public virtual System.Threading.Tasks.Task GetTwoFactorAuthenticationUserAsync() => throw null; public virtual System.Threading.Tasks.Task ExternalLoginSignInAsync(string loginProvider, string providerKey, bool isPersistent) => throw null; public virtual System.Threading.Tasks.Task ExternalLoginSignInAsync(string loginProvider, string providerKey, bool isPersistent, bool bypassTwoFactor) => throw null; - public virtual System.Threading.Tasks.Task ForgetTwoFactorClientAsync() => throw null; public virtual System.Threading.Tasks.Task> GetExternalAuthenticationSchemesAsync() => throw null; - public virtual System.Threading.Tasks.Task GetExternalLoginInfoAsync(string expectedXsrf = default(string)) => throw null; - public virtual System.Threading.Tasks.Task GetTwoFactorAuthenticationUserAsync() => throw null; + public virtual System.Threading.Tasks.Task GetExternalLoginInfoAsync(string expectedXsrf) => throw null; + public virtual System.Threading.Tasks.Task UpdateExternalAuthenticationTokensAsync(Microsoft.AspNetCore.Identity.ExternalLoginInfo externalLogin) => throw null; + public virtual Microsoft.AspNetCore.Authentication.AuthenticationProperties ConfigureExternalAuthenticationProperties(string provider, string redirectUrl, string userId) => throw null; + protected virtual System.Threading.Tasks.Task SignInOrTwoFactorAsync(TUser user, bool isPersistent, string loginProvider, bool bypassTwoFactor) => throw null; protected virtual System.Threading.Tasks.Task IsLockedOut(TUser user) => throw null; - public virtual bool IsSignedIn(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public virtual System.Threading.Tasks.Task IsTwoFactorClientRememberedAsync(TUser user) => throw null; protected virtual System.Threading.Tasks.Task LockedOut(TUser user) => throw null; - public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.Task PasswordSignInAsync(TUser user, string password, bool isPersistent, bool lockoutOnFailure) => throw null; - public virtual System.Threading.Tasks.Task PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure) => throw null; protected virtual System.Threading.Tasks.Task PreSignInCheck(TUser user) => throw null; - public virtual System.Threading.Tasks.Task RefreshSignInAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task RememberTwoFactorClientAsync(TUser user) => throw null; protected virtual System.Threading.Tasks.Task ResetLockout(TUser user) => throw null; - public virtual System.Threading.Tasks.Task SignInAsync(TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod = default(string)) => throw null; - public virtual System.Threading.Tasks.Task SignInAsync(TUser user, bool isPersistent, string authenticationMethod = default(string)) => throw null; - public SignInManager(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory claimsFactory, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILogger> logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes, Microsoft.AspNetCore.Identity.IUserConfirmation confirmation) => throw null; - protected virtual System.Threading.Tasks.Task SignInOrTwoFactorAsync(TUser user, bool isPersistent, string loginProvider = default(string), bool bypassTwoFactor = default(bool)) => throw null; - public virtual System.Threading.Tasks.Task SignInWithClaimsAsync(TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, System.Collections.Generic.IEnumerable additionalClaims) => throw null; - public virtual System.Threading.Tasks.Task SignInWithClaimsAsync(TUser user, bool isPersistent, System.Collections.Generic.IEnumerable additionalClaims) => throw null; - public virtual System.Threading.Tasks.Task SignOutAsync() => throw null; - public virtual System.Threading.Tasks.Task TwoFactorAuthenticatorSignInAsync(string code, bool isPersistent, bool rememberClient) => throw null; - public virtual System.Threading.Tasks.Task TwoFactorRecoveryCodeSignInAsync(string recoveryCode) => throw null; - public virtual System.Threading.Tasks.Task TwoFactorSignInAsync(string provider, string code, bool isPersistent, bool rememberClient) => throw null; - public virtual System.Threading.Tasks.Task UpdateExternalAuthenticationTokensAsync(Microsoft.AspNetCore.Identity.ExternalLoginInfo externalLogin) => throw null; - public Microsoft.AspNetCore.Identity.UserManager UserManager { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.Task ValidateSecurityStampAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public virtual System.Threading.Tasks.Task ValidateSecurityStampAsync(TUser user, string securityStamp) => throw null; - public virtual System.Threading.Tasks.Task ValidateTwoFactorSecurityStampAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.UserManager UserManager { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory ClaimsFactory { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; set { } } } - - public class TwoFactorSecurityStampValidator : Microsoft.AspNetCore.Identity.SecurityStampValidator, Microsoft.AspNetCore.Identity.ISecurityStampValidator, Microsoft.AspNetCore.Identity.ITwoFactorSecurityStampValidator where TUser : class + public class TwoFactorSecurityStampValidator : Microsoft.AspNetCore.Identity.SecurityStampValidator, Microsoft.AspNetCore.Identity.ITwoFactorSecurityStampValidator, Microsoft.AspNetCore.Identity.ISecurityStampValidator where TUser : class { - protected override System.Threading.Tasks.Task SecurityStampVerified(TUser user, Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; public TwoFactorSecurityStampValidator(Microsoft.Extensions.Options.IOptions options, Microsoft.AspNetCore.Identity.SignInManager signInManager, Microsoft.AspNetCore.Authentication.ISystemClock clock, Microsoft.Extensions.Logging.ILoggerFactory logger) : base(default(Microsoft.Extensions.Options.IOptions), default(Microsoft.AspNetCore.Identity.SignInManager), default(Microsoft.AspNetCore.Authentication.ISystemClock), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; protected override System.Threading.Tasks.Task VerifySecurityStamp(System.Security.Claims.ClaimsPrincipal principal) => throw null; + protected override System.Threading.Tasks.Task SecurityStampVerified(TUser user, Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) => throw null; } - } } namespace Extensions @@ -180,12 +162,11 @@ namespace DependencyInjection { public static partial class IdentityServiceCollectionExtensions { - public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentity(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TRole : class where TUser : class => throw null; - public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentity(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) where TRole : class where TUser : class => throw null; + public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentity(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class where TRole : class => throw null; + public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentity(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) where TUser : class where TRole : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureApplicationCookie(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureExternalCookie(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.Routing.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.Routing.cs index 4afdc6833c385..56e2715583386 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.Routing.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.Routing.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Localization.Routing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -13,10 +12,9 @@ public class RouteDataRequestCultureProvider : Microsoft.AspNetCore.Localization { public override System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public RouteDataRequestCultureProvider() => throw null; - public string RouteDataStringKey { get => throw null; set => throw null; } - public string UIRouteDataStringKey { get => throw null; set => throw null; } + public string RouteDataStringKey { get => throw null; set { } } + public string UIRouteDataStringKey { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.cs index 64c83d42619b7..0490d6cbb97a9 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Localization.cs @@ -1,138 +1,122 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Localization, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class ApplicationBuilderExtensions + public static partial class ApplicationBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action optionsAction) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.RequestLocalizationOptions options) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action optionsAction) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestLocalization(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, params string[] cultures) => throw null; } - public class RequestLocalizationOptions { + public RequestLocalizationOptions() => throw null; public Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddSupportedCultures(params string[] cultures) => throw null; public Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddSupportedUICultures(params string[] uiCultures) => throw null; - public bool ApplyCurrentCultureToResponseHeaders { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Localization.RequestCulture DefaultRequestCulture { get => throw null; set => throw null; } - public bool FallBackToParentCultures { get => throw null; set => throw null; } - public bool FallBackToParentUICultures { get => throw null; set => throw null; } - public System.Collections.Generic.IList RequestCultureProviders { get => throw null; set => throw null; } - public RequestLocalizationOptions() => throw null; public Microsoft.AspNetCore.Builder.RequestLocalizationOptions SetDefaultCulture(string defaultCulture) => throw null; - public System.Collections.Generic.IList SupportedCultures { get => throw null; set => throw null; } - public System.Collections.Generic.IList SupportedUICultures { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Localization.RequestCulture DefaultRequestCulture { get => throw null; set { } } + public bool FallBackToParentCultures { get => throw null; set { } } + public bool FallBackToParentUICultures { get => throw null; set { } } + public bool ApplyCurrentCultureToResponseHeaders { get => throw null; set { } } + public System.Collections.Generic.IList SupportedCultures { get => throw null; set { } } + public System.Collections.Generic.IList SupportedUICultures { get => throw null; set { } } + public System.Collections.Generic.IList RequestCultureProviders { get => throw null; set { } } } - - public static class RequestLocalizationOptionsExtensions + public static partial class RequestLocalizationOptionsExtensions { public static Microsoft.AspNetCore.Builder.RequestLocalizationOptions AddInitialRequestCultureProvider(this Microsoft.AspNetCore.Builder.RequestLocalizationOptions requestLocalizationOptions, Microsoft.AspNetCore.Localization.RequestCultureProvider requestCultureProvider) => throw null; } - } namespace Localization { public class AcceptLanguageHeaderRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider { - public AcceptLanguageHeaderRequestCultureProvider() => throw null; public override System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public int MaximumAcceptLanguageHeaderValuesToTry { get => throw null; set => throw null; } + public AcceptLanguageHeaderRequestCultureProvider() => throw null; + public int MaximumAcceptLanguageHeaderValuesToTry { get => throw null; set { } } } - public class CookieRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider { - public string CookieName { get => throw null; set => throw null; } - public CookieRequestCultureProvider() => throw null; public static string DefaultCookieName; public override System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public static string MakeCookieValue(Microsoft.AspNetCore.Localization.RequestCulture requestCulture) => throw null; public static Microsoft.AspNetCore.Localization.ProviderCultureResult ParseCookieValue(string value) => throw null; + public CookieRequestCultureProvider() => throw null; + public string CookieName { get => throw null; set { } } } - public class CustomRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider { public CustomRequestCultureProvider(System.Func> provider) => throw null; public override System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - public interface IRequestCultureFeature { - Microsoft.AspNetCore.Localization.IRequestCultureProvider Provider { get; } Microsoft.AspNetCore.Localization.RequestCulture RequestCulture { get; } + Microsoft.AspNetCore.Localization.IRequestCultureProvider Provider { get; } } - public interface IRequestCultureProvider { System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext); } - public class ProviderCultureResult { - public System.Collections.Generic.IList Cultures { get => throw null; } - public ProviderCultureResult(System.Collections.Generic.IList cultures) => throw null; - public ProviderCultureResult(System.Collections.Generic.IList cultures, System.Collections.Generic.IList uiCultures) => throw null; public ProviderCultureResult(Microsoft.Extensions.Primitives.StringSegment culture) => throw null; public ProviderCultureResult(Microsoft.Extensions.Primitives.StringSegment culture, Microsoft.Extensions.Primitives.StringSegment uiCulture) => throw null; + public ProviderCultureResult(System.Collections.Generic.IList cultures) => throw null; + public ProviderCultureResult(System.Collections.Generic.IList cultures, System.Collections.Generic.IList uiCultures) => throw null; + public System.Collections.Generic.IList Cultures { get => throw null; } public System.Collections.Generic.IList UICultures { get => throw null; } } - public class QueryStringRequestCultureProvider : Microsoft.AspNetCore.Localization.RequestCultureProvider { public override System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public string QueryStringKey { get => throw null; set => throw null; } public QueryStringRequestCultureProvider() => throw null; - public string UIQueryStringKey { get => throw null; set => throw null; } + public string QueryStringKey { get => throw null; set { } } + public string UIQueryStringKey { get => throw null; set { } } } - public class RequestCulture { - public System.Globalization.CultureInfo Culture { get => throw null; } public RequestCulture(System.Globalization.CultureInfo culture) => throw null; - public RequestCulture(System.Globalization.CultureInfo culture, System.Globalization.CultureInfo uiCulture) => throw null; public RequestCulture(string culture) => throw null; public RequestCulture(string culture, string uiCulture) => throw null; + public RequestCulture(System.Globalization.CultureInfo culture, System.Globalization.CultureInfo uiCulture) => throw null; + public System.Globalization.CultureInfo Culture { get => throw null; } public System.Globalization.CultureInfo UICulture { get => throw null; } } - public class RequestCultureFeature : Microsoft.AspNetCore.Localization.IRequestCultureFeature { - public Microsoft.AspNetCore.Localization.IRequestCultureProvider Provider { get => throw null; } - public Microsoft.AspNetCore.Localization.RequestCulture RequestCulture { get => throw null; } public RequestCultureFeature(Microsoft.AspNetCore.Localization.RequestCulture requestCulture, Microsoft.AspNetCore.Localization.IRequestCultureProvider provider) => throw null; + public Microsoft.AspNetCore.Localization.RequestCulture RequestCulture { get => throw null; } + public Microsoft.AspNetCore.Localization.IRequestCultureProvider Provider { get => throw null; } } - public abstract class RequestCultureProvider : Microsoft.AspNetCore.Localization.IRequestCultureProvider { - public abstract System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext); protected static System.Threading.Tasks.Task NullProviderCultureResult; - public Microsoft.AspNetCore.Builder.RequestLocalizationOptions Options { get => throw null; set => throw null; } + public abstract System.Threading.Tasks.Task DetermineProviderCultureResult(Microsoft.AspNetCore.Http.HttpContext httpContext); protected RequestCultureProvider() => throw null; + public Microsoft.AspNetCore.Builder.RequestLocalizationOptions Options { get => throw null; set { } } } - public class RequestLocalizationMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public RequestLocalizationMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class RequestLocalizationServiceCollectionExtensions + public static partial class RequestLocalizationServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLocalization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestLocalization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TService : class => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Metadata.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Metadata.cs index be7d524d89e2c..11c2ea46684f1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Metadata.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Metadata.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Metadata, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,14 +9,12 @@ namespace Authorization public interface IAllowAnonymous { } - public interface IAuthorizeData { - string AuthenticationSchemes { get; set; } string Policy { get; set; } string Roles { get; set; } + string AuthenticationSchemes { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Abstractions.cs index a54fc4ec29dcd..cdbd17feb41dc 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -13,430 +12,369 @@ public class ActionContext public ActionContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext) => throw null; public ActionContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor) => throw null; public ActionContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set { } } } - public interface IActionResult { System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context); } - public interface IUrlHelper { string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext); - Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get; } string Content(string contentPath); bool IsLocalUrl(string url); - string Link(string routeName, object values); string RouteUrl(Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext); + string Link(string routeName, object values); + Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get; } } - namespace Abstractions { public class ActionDescriptor { - public System.Collections.Generic.IList ActionConstraints { get => throw null; set => throw null; } public ActionDescriptor() => throw null; - public Microsoft.AspNetCore.Mvc.Routing.AttributeRouteInfo AttributeRouteInfo { get => throw null; set => throw null; } - public System.Collections.Generic.IList BoundProperties { get => throw null; set => throw null; } - public virtual string DisplayName { get => throw null; set => throw null; } - public System.Collections.Generic.IList EndpointMetadata { get => throw null; set => throw null; } - public System.Collections.Generic.IList FilterDescriptors { get => throw null; set => throw null; } public string Id { get => throw null; } - public System.Collections.Generic.IList Parameters { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary Properties { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary RouteValues { get => throw null; set => throw null; } - } - - public static class ActionDescriptorExtensions + public System.Collections.Generic.IDictionary RouteValues { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Routing.AttributeRouteInfo AttributeRouteInfo { get => throw null; set { } } + public System.Collections.Generic.IList ActionConstraints { get => throw null; set { } } + public System.Collections.Generic.IList EndpointMetadata { get => throw null; set { } } + public System.Collections.Generic.IList Parameters { get => throw null; set { } } + public System.Collections.Generic.IList BoundProperties { get => throw null; set { } } + public System.Collections.Generic.IList FilterDescriptors { get => throw null; set { } } + public virtual string DisplayName { get => throw null; set { } } + public System.Collections.Generic.IDictionary Properties { get => throw null; set { } } + } + public static partial class ActionDescriptorExtensions { public static T GetProperty(this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor) => throw null; public static void SetProperty(this Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, T value) => throw null; } - public class ActionDescriptorProviderContext { public ActionDescriptorProviderContext() => throw null; public System.Collections.Generic.IList Results { get => throw null; } } - public class ActionInvokerProviderContext { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } public ActionInvokerProviderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext) => throw null; - public Microsoft.AspNetCore.Mvc.Abstractions.IActionInvoker Result { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Abstractions.IActionInvoker Result { get => throw null; set { } } } - public interface IActionDescriptorProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context); int Order { get; } } - public interface IActionInvoker { System.Threading.Tasks.Task InvokeAsync(); } - public interface IActionInvokerProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionInvokerProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionInvokerProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionInvokerProviderContext context); int Order { get; } } - public class ParameterDescriptor { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } public ParameterDescriptor() => throw null; - public System.Type ParameterType { get => throw null; set => throw null; } + public string Name { get => throw null; set { } } + public System.Type ParameterType { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set { } } } - } namespace ActionConstraints { public class ActionConstraintContext { public ActionConstraintContext() => throw null; - public System.Collections.Generic.IReadOnlyList Candidates { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ActionConstraints.ActionSelectorCandidate CurrentCandidate { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteContext RouteContext { get => throw null; set => throw null; } + public System.Collections.Generic.IReadOnlyList Candidates { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ActionConstraints.ActionSelectorCandidate CurrentCandidate { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteContext RouteContext { get => throw null; set { } } } - public class ActionConstraintItem { public ActionConstraintItem(Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata metadata) => throw null; - public Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint Constraint { get => throw null; set => throw null; } - public bool IsReusable { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint Constraint { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata Metadata { get => throw null; } + public bool IsReusable { get => throw null; set { } } } - public class ActionConstraintProviderContext { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor Action { get => throw null; } public ActionConstraintProviderContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor action, System.Collections.Generic.IList items) => throw null; public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor Action { get => throw null; } public System.Collections.Generic.IList Results { get => throw null; } } - public struct ActionSelectorCandidate { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor Action { get => throw null; } - // Stub generator skipped constructor public ActionSelectorCandidate(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor action, System.Collections.Generic.IReadOnlyList constraints) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor Action { get => throw null; } public System.Collections.Generic.IReadOnlyList Constraints { get => throw null; } } - public interface IActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata { bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context); int Order { get; } } - public interface IActionConstraintFactory : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata { Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint CreateInstance(System.IServiceProvider services); bool IsReusable { get; } } - public interface IActionConstraintMetadata { } - public interface IActionConstraintProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintProviderContext context); int Order { get; } } - } namespace ApiExplorer { public class ApiDescription { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; set => throw null; } public ApiDescription() => throw null; - public string GroupName { get => throw null; set => throw null; } - public string HttpMethod { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; set { } } + public string GroupName { get => throw null; set { } } + public string HttpMethod { get => throw null; set { } } public System.Collections.Generic.IList ParameterDescriptions { get => throw null; } public System.Collections.Generic.IDictionary Properties { get => throw null; } - public string RelativePath { get => throw null; set => throw null; } + public string RelativePath { get => throw null; set { } } public System.Collections.Generic.IList SupportedRequestFormats { get => throw null; } public System.Collections.Generic.IList SupportedResponseTypes { get => throw null; } } - public class ApiDescriptionProviderContext { - public System.Collections.Generic.IReadOnlyList Actions { get => throw null; } public ApiDescriptionProviderContext(System.Collections.Generic.IReadOnlyList actions) => throw null; + public System.Collections.Generic.IReadOnlyList Actions { get => throw null; } public System.Collections.Generic.IList Results { get => throw null; } } - public class ApiParameterDescription { public ApiParameterDescription() => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set => throw null; } - public object DefaultValue { get => throw null; set => throw null; } - public bool IsRequired { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor ParameterDescriptor { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ApiExplorer.ApiParameterRouteInfo RouteInfo { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Source { get => throw null; set => throw null; } - public System.Type Type { get => throw null; set => throw null; } - } - + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set { } } + public string Name { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ApiExplorer.ApiParameterRouteInfo RouteInfo { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Source { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set { } } + public System.Type Type { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor ParameterDescriptor { get => throw null; set { } } + public bool IsRequired { get => throw null; set { } } + public object DefaultValue { get => throw null; set { } } + } public class ApiParameterRouteInfo { public ApiParameterRouteInfo() => throw null; - public System.Collections.Generic.IEnumerable Constraints { get => throw null; set => throw null; } - public object DefaultValue { get => throw null; set => throw null; } - public bool IsOptional { get => throw null; set => throw null; } + public System.Collections.Generic.IEnumerable Constraints { get => throw null; set { } } + public object DefaultValue { get => throw null; set { } } + public bool IsOptional { get => throw null; set { } } } - public class ApiRequestFormat { public ApiRequestFormat() => throw null; - public Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter Formatter { get => throw null; set => throw null; } - public string MediaType { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter Formatter { get => throw null; set { } } + public string MediaType { get => throw null; set { } } } - public class ApiResponseFormat { public ApiResponseFormat() => throw null; - public Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter Formatter { get => throw null; set => throw null; } - public string MediaType { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter Formatter { get => throw null; set { } } + public string MediaType { get => throw null; set { } } } - public class ApiResponseType { - public System.Collections.Generic.IList ApiResponseFormats { get => throw null; set => throw null; } public ApiResponseType() => throw null; - public bool IsDefaultResponse { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set => throw null; } - public int StatusCode { get => throw null; set => throw null; } - public System.Type Type { get => throw null; set => throw null; } + public System.Collections.Generic.IList ApiResponseFormats { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set { } } + public System.Type Type { get => throw null; set { } } + public int StatusCode { get => throw null; set { } } + public bool IsDefaultResponse { get => throw null; set { } } } - public interface IApiDescriptionProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context); int Order { get; } } - } namespace Authorization { public interface IAllowAnonymousFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - } namespace Filters { public class ActionExecutedContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { public ActionExecutedContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, object controller) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual bool Canceled { get => throw null; set => throw null; } + public virtual bool Canceled { get => throw null; set { } } public virtual object Controller { get => throw null; } - public virtual System.Exception Exception { get => throw null; set => throw null; } - public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set => throw null; } - public virtual bool ExceptionHandled { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual System.Exception Exception { get => throw null; set { } } + public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set { } } + public virtual bool ExceptionHandled { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } } - public class ActionExecutingContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { - public virtual System.Collections.Generic.IDictionary ActionArguments { get => throw null; } public ActionExecutingContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, System.Collections.Generic.IDictionary actionArguments, object controller) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } + public virtual System.Collections.Generic.IDictionary ActionArguments { get => throw null; } public virtual object Controller { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } } - public delegate System.Threading.Tasks.Task ActionExecutionDelegate(); - public class AuthorizationFilterContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { public AuthorizationFilterContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } } - public class ExceptionContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { - public virtual System.Exception Exception { get => throw null; set => throw null; } public ExceptionContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set => throw null; } - public virtual bool ExceptionHandled { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual System.Exception Exception { get => throw null; set { } } + public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set { } } + public virtual bool ExceptionHandled { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } } - public abstract class FilterContext : Microsoft.AspNetCore.Mvc.ActionContext { public FilterContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters) => throw null; - public virtual System.Collections.Generic.IList Filters { get => throw null; } - public TMetadata FindEffectivePolicy() where TMetadata : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; public bool IsEffectivePolicy(TMetadata policy) where TMetadata : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; + public TMetadata FindEffectivePolicy() where TMetadata : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; + public virtual System.Collections.Generic.IList Filters { get => throw null; } } - public class FilterDescriptor { - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } public FilterDescriptor(Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter, int filterScope) => throw null; - public int Order { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + public int Order { get => throw null; set { } } public int Scope { get => throw null; } } - public class FilterItem { - public Microsoft.AspNetCore.Mvc.Filters.FilterDescriptor Descriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; set => throw null; } public FilterItem(Microsoft.AspNetCore.Mvc.Filters.FilterDescriptor descriptor) => throw null; public FilterItem(Microsoft.AspNetCore.Mvc.Filters.FilterDescriptor descriptor, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - public bool IsReusable { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.FilterDescriptor Descriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; set { } } + public bool IsReusable { get => throw null; set { } } } - public class FilterProviderContext { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set => throw null; } public FilterProviderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList items) => throw null; - public System.Collections.Generic.IList Results { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set { } } + public System.Collections.Generic.IList Results { get => throw null; set { } } } - public interface IActionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { - void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context); void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context); + void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context); } - - public interface IAlwaysRunResultFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IResultFilter + public interface IAlwaysRunResultFilter : Microsoft.AspNetCore.Mvc.Filters.IResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public interface IAsyncActionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { System.Threading.Tasks.Task OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next); } - public interface IAsyncAlwaysRunResultFilter : Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public interface IAsyncAuthorizationFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { System.Threading.Tasks.Task OnAuthorizationAsync(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext context); } - public interface IAsyncExceptionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { System.Threading.Tasks.Task OnExceptionAsync(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context); } - public interface IAsyncResourceFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { System.Threading.Tasks.Task OnResourceExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutionDelegate next); } - public interface IAsyncResultFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { System.Threading.Tasks.Task OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate next); } - public interface IAuthorizationFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { void OnAuthorization(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext context); } - public interface IExceptionFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { void OnException(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context); } - public interface IFilterContainer { Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata FilterDefinition { get; set; } } - public interface IFilterFactory : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider); bool IsReusable { get; } } - public interface IFilterMetadata { } - public interface IFilterProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Filters.FilterProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Filters.FilterProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Filters.FilterProviderContext context); int Order { get; } } - public interface IOrderedFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { int Order { get; } } - public interface IResourceFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { - void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context); void OnResourceExecuting(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext context); + void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context); } - public interface IResultFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { - void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context); void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context); + void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context); } - public class ResourceExecutedContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { - public virtual bool Canceled { get => throw null; set => throw null; } - public virtual System.Exception Exception { get => throw null; set => throw null; } - public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set => throw null; } - public virtual bool ExceptionHandled { get => throw null; set => throw null; } public ResourceExecutedContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual bool Canceled { get => throw null; set { } } + public virtual System.Exception Exception { get => throw null; set { } } + public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set { } } + public virtual bool ExceptionHandled { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } } - public class ResourceExecutingContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { public ResourceExecutingContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, System.Collections.Generic.IList valueProviderFactories) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } public System.Collections.Generic.IList ValueProviderFactories { get => throw null; } } - public delegate System.Threading.Tasks.Task ResourceExecutionDelegate(); - public class ResultExecutedContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { - public virtual bool Canceled { get => throw null; set => throw null; } + public ResultExecutedContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.IActionResult result, object controller) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; + public virtual bool Canceled { get => throw null; set { } } public virtual object Controller { get => throw null; } - public virtual System.Exception Exception { get => throw null; set => throw null; } - public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set => throw null; } - public virtual bool ExceptionHandled { get => throw null; set => throw null; } + public virtual System.Exception Exception { get => throw null; set { } } + public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set { } } + public virtual bool ExceptionHandled { get => throw null; set { } } public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } - public ResultExecutedContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.IActionResult result, object controller) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; } - public class ResultExecutingContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { - public virtual bool Cancel { get => throw null; set => throw null; } - public virtual object Controller { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } public ResultExecutingContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.IActionResult result, object controller) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; + public virtual object Controller { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } + public virtual bool Cancel { get => throw null; set { } } } - public delegate System.Threading.Tasks.Task ResultExecutionDelegate(); - } namespace Formatters { @@ -444,719 +382,628 @@ public class FormatterCollection : System.Collections.ObjectModel.Co { public FormatterCollection() => throw null; public FormatterCollection(System.Collections.Generic.IList list) => throw null; - public void RemoveType(System.Type formatterType) => throw null; public void RemoveType() where T : TFormatter => throw null; + public void RemoveType(System.Type formatterType) => throw null; } - public interface IInputFormatter { bool CanRead(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context); System.Threading.Tasks.Task ReadAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context); } - public interface IInputFormatterExceptionPolicy { Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get; } } - - public interface IOutputFormatter - { - bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context); - System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context); - } - public class InputFormatterContext { - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public InputFormatterContext(Microsoft.AspNetCore.Http.HttpContext httpContext, string modelName, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func readerFactory) => throw null; public InputFormatterContext(Microsoft.AspNetCore.Http.HttpContext httpContext, string modelName, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func readerFactory, bool treatEmptyInputAsDefaultValue) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; } + public bool TreatEmptyInputAsDefaultValue { get => throw null; } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public string ModelName { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; } public System.Type ModelType { get => throw null; } public System.Func ReaderFactory { get => throw null; } - public bool TreatEmptyInputAsDefaultValue { get => throw null; } } - public class InputFormatterException : System.Exception { public InputFormatterException() => throw null; public InputFormatterException(string message) => throw null; public InputFormatterException(string message, System.Exception innerException) => throw null; } - - public enum InputFormatterExceptionPolicy : int + public enum InputFormatterExceptionPolicy { AllExceptions = 0, MalformedInputExceptions = 1, } - public class InputFormatterResult { public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Failure() => throw null; public static System.Threading.Tasks.Task FailureAsync() => throw null; + public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Success(object model) => throw null; + public static System.Threading.Tasks.Task SuccessAsync(object model) => throw null; + public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult NoValue() => throw null; + public static System.Threading.Tasks.Task NoValueAsync() => throw null; public bool HasError { get => throw null; } public bool IsModelSet { get => throw null; } public object Model { get => throw null; } - public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult NoValue() => throw null; - public static System.Threading.Tasks.Task NoValueAsync() => throw null; - public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Success(object model) => throw null; - public static System.Threading.Tasks.Task SuccessAsync(object model) => throw null; } - + public interface IOutputFormatter + { + bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context); + System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context); + } public abstract class OutputFormatterCanWriteContext { - public virtual Microsoft.Extensions.Primitives.StringSegment ContentType { get => throw null; set => throw null; } - public virtual bool ContentTypeIsServerDefined { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } - public virtual object Object { get => throw null; set => throw null; } - public virtual System.Type ObjectType { get => throw null; set => throw null; } protected OutputFormatterCanWriteContext(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; + public virtual Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } + public virtual Microsoft.Extensions.Primitives.StringSegment ContentType { get => throw null; set { } } + public virtual bool ContentTypeIsServerDefined { get => throw null; set { } } + public virtual object Object { get => throw null; set { } } + public virtual System.Type ObjectType { get => throw null; set { } } } - public class OutputFormatterWriteContext : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext { public OutputFormatterWriteContext(Microsoft.AspNetCore.Http.HttpContext httpContext, System.Func writerFactory, System.Type objectType, object @object) : base(default(Microsoft.AspNetCore.Http.HttpContext)) => throw null; - public virtual System.Func WriterFactory { get => throw null; set => throw null; } + public virtual System.Func WriterFactory { get => throw null; set { } } } - } namespace ModelBinding { public class BindingInfo { - public string BinderModelName { get => throw null; set => throw null; } - public System.Type BinderType { get => throw null; set => throw null; } public BindingInfo() => throw null; public BindingInfo(Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo other) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get => throw null; set => throw null; } public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo GetBindingInfo(System.Collections.Generic.IEnumerable attributes) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo GetBindingInfo(System.Collections.Generic.IEnumerable attributes, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get => throw null; set => throw null; } - public System.Func RequestPredicate { get => throw null; set => throw null; } public bool TryApplyBindingInfo(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set { } } + public string BinderModelName { get => throw null; set { } } + public System.Type BinderType { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get => throw null; set { } } + public System.Func RequestPredicate { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get => throw null; set { } } } - public class BindingSource : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s1, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s2) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s1, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s2) => throw null; - public BindingSource(string id, string displayName, bool isGreedy, bool isFromRequest) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Body; - public virtual bool CanAcceptDataFrom(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Custom; - public string DisplayName { get => throw null; } - public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource other) => throw null; - public override bool Equals(object obj) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Form; - public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource FormFile; - public override int GetHashCode() => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Header; - public string Id { get => throw null; } - public bool IsFromRequest { get => throw null; } - public bool IsGreedy { get => throw null; } public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource ModelBinding; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Path; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Query; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Services; public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource Special; + public static Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource FormFile; + public BindingSource(string id, string displayName, bool isGreedy, bool isFromRequest) => throw null; + public virtual bool CanAcceptDataFrom(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource other) => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s1, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s2) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s1, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource s2) => throw null; + public string DisplayName { get => throw null; } + public string Id { get => throw null; } + public bool IsGreedy { get => throw null; } + public bool IsFromRequest { get => throw null; } } - public class CompositeBindingSource : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource { - private CompositeBindingSource() : base(default(string), default(string), default(bool), default(bool)) => throw null; - public System.Collections.Generic.IEnumerable BindingSources { get => throw null; } - public override bool CanAcceptDataFrom(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.CompositeBindingSource Create(System.Collections.Generic.IEnumerable bindingSources, string displayName) => throw null; + public override bool CanAcceptDataFrom(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; + public System.Collections.Generic.IEnumerable BindingSources { get => throw null; } + internal CompositeBindingSource() : base(default(string), default(string), default(bool), default(bool)) { } } - - public enum EmptyBodyBehavior : int + public enum EmptyBodyBehavior { - Allow = 1, Default = 0, + Allow = 1, Disallow = 2, } - public struct EnumGroupAndName { - // Stub generator skipped constructor - public EnumGroupAndName(string group, System.Func name) => throw null; public EnumGroupAndName(string group, string name) => throw null; + public EnumGroupAndName(string group, System.Func name) => throw null; public string Group { get => throw null; } public string Name { get => throw null; } } - public interface IBinderTypeProviderMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata { System.Type BinderType { get; } } - public interface IBindingSourceMetadata { Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get; } } - - internal interface IConfigureEmptyBodyBehavior - { - Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get; } - } - public interface IModelBinder { System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext); } - public interface IModelBinderProvider { Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context); } - public interface IModelMetadataProvider { - System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType); Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType); + System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType); } - public interface IModelNameProvider { string Name { get; } } - public interface IPropertyFilterProvider { System.Func PropertyFilter { get; } } - public interface IRequestPredicateProvider { System.Func RequestPredicate { get; } } - public interface IValueProvider { bool ContainsPrefix(string prefix); Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key); } - public interface IValueProviderFactory { System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context); } - public abstract class ModelBinderProviderContext { - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata); public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo) => throw null; + protected ModelBinderProviderContext() => throw null; + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get; } - protected ModelBinderProviderContext() => throw null; public virtual System.IServiceProvider Services { get => throw null; } } - public abstract class ModelBindingContext { - public struct NestedScope : System.IDisposable - { - public void Dispose() => throw null; - // Stub generator skipped constructor - public NestedScope(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext context) => throw null; - } - - + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object model); + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope(); + protected abstract void ExitNestedScope(); + protected ModelBindingContext() => throw null; public abstract Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get; set; } public abstract string BinderModelName { get; set; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get; set; } - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope(); - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object model); - protected abstract void ExitNestedScope(); public abstract string FieldName { get; set; } public virtual Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public abstract bool IsTopLevelObject { get; set; } public abstract object Model { get; set; } - protected ModelBindingContext() => throw null; public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get; set; } public abstract string ModelName { get; set; } + public string OriginalModelName { get => throw null; set { } } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get; set; } public virtual System.Type ModelType { get => throw null; } - public string OriginalModelName { get => throw null; set => throw null; } public abstract System.Func PropertyFilter { get; set; } - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Result { get; set; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get; set; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider ValueProvider { get; set; } + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Result { get; set; } + public struct NestedScope : System.IDisposable + { + public NestedScope(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext context) => throw null; + public void Dispose() => throw null; + } } - public struct ModelBindingResult : System.IEquatable { - public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult y) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult y) => throw null; - public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult other) => throw null; - public override bool Equals(object obj) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Failed() => throw null; - public override int GetHashCode() => throw null; - public bool IsModelSet { get => throw null; } - public object Model { get => throw null; } - // Stub generator skipped constructor public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Success(object model) => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult other) => throw null; public override string ToString() => throw null; + public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult y) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult y) => throw null; + public object Model { get => throw null; } + public bool IsModelSet { get => throw null; } } - public class ModelError { - public string ErrorMessage { get => throw null; } - public System.Exception Exception { get => throw null; } public ModelError(System.Exception exception) => throw null; public ModelError(System.Exception exception, string errorMessage) => throw null; public ModelError(string errorMessage) => throw null; + public System.Exception Exception { get => throw null; } + public string ErrorMessage { get => throw null; } } - public class ModelErrorCollection : System.Collections.ObjectModel.Collection { public void Add(System.Exception exception) => throw null; public void Add(string errorMessage) => throw null; public ModelErrorCollection() => throw null; } - - public abstract class ModelMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider, System.IEquatable + public abstract class ModelMetadata : System.IEquatable, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider { + public static int DefaultOrder; + protected ModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity identity) => throw null; + public string GetDisplayName() => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata other) => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType) => throw null; + public virtual System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; + public System.Type ContainerType { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataKind MetadataKind { get => throw null; } + public System.Type ModelType { get => throw null; } + public string Name { get => throw null; } + public string ParameterName { get => throw null; } + public string PropertyName { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Identity { get => throw null; } public abstract System.Collections.Generic.IReadOnlyDictionary AdditionalValues { get; } + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelPropertyCollection Properties { get; } + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata BoundConstructor { get => throw null; } + public virtual System.Collections.Generic.IReadOnlyList BoundConstructorParameters { get => throw null; } public abstract string BinderModelName { get; } public abstract System.Type BinderType { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get; } - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata BoundConstructor { get => throw null; } - public virtual System.Func BoundConstructorInvoker { get => throw null; } - public virtual System.Collections.Generic.IReadOnlyList BoundConstructorParameters { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; } - public System.Type ContainerType { get => throw null; } public abstract bool ConvertEmptyStringToNull { get; } public abstract string DataTypeName { get; } - public static int DefaultOrder; public abstract string Description { get; } public abstract string DisplayFormatString { get; } public abstract string DisplayName { get; } public abstract string EditFormatString { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ElementMetadata { get; } - public System.Type ElementType { get => throw null; } public abstract System.Collections.Generic.IEnumerable> EnumGroupedDisplayNamesAndValues { get; } public abstract System.Collections.Generic.IReadOnlyDictionary EnumNamesAndValues { get; } - public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata other) => throw null; - public override bool Equals(object obj) => throw null; - public string GetDisplayName() => throw null; - public override int GetHashCode() => throw null; - public virtual System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType) => throw null; public abstract bool HasNonDefaultEditFormat { get; } - public virtual bool? HasValidators { get => throw null; } - public abstract bool HideSurroundingHtml { get; } public abstract bool HtmlEncode { get; } - protected internal Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Identity { get => throw null; } + public abstract bool HideSurroundingHtml { get; } public abstract bool IsBindingAllowed { get; } public abstract bool IsBindingRequired { get; } - public bool IsCollectionType { get => throw null; } - public bool IsComplexType { get => throw null; } public abstract bool IsEnum { get; } - public bool IsEnumerableType { get => throw null; } public abstract bool IsFlagsEnum { get; } - public bool IsNullableValueType { get => throw null; } public abstract bool IsReadOnly { get; } - public bool IsReferenceOrNullableType { get => throw null; } public abstract bool IsRequired { get; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataKind MetadataKind { get => throw null; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelBindingMessageProvider ModelBindingMessageProvider { get; } - protected ModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity identity) => throw null; - public System.Type ModelType { get => throw null; } - public string Name { get => throw null; } - public abstract string NullDisplayText { get; } public abstract int Order { get; } - public string ParameterName { get => throw null; } public abstract string Placeholder { get; } - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelPropertyCollection Properties { get; } + public abstract string NullDisplayText { get; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get; } - public abstract System.Func PropertyGetter { get; } - public string PropertyName { get => throw null; } - public abstract System.Action PropertySetter { get; } - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; } public abstract bool ShowForDisplay { get; } public abstract bool ShowForEdit { get; } public abstract string SimpleDisplayProperty { get; } public abstract string TemplateHint { get; } - public System.Type UnderlyingOrModelType { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; } public abstract bool ValidateChildren { get; } + public virtual bool? HasValidators { get => throw null; } public abstract System.Collections.Generic.IReadOnlyList ValidatorMetadata { get; } + public System.Type ElementType { get => throw null; } + public bool IsComplexType { get => throw null; } + public bool IsNullableValueType { get => throw null; } + public bool IsCollectionType { get => throw null; } + public bool IsEnumerableType { get => throw null; } + public bool IsReferenceOrNullableType { get => throw null; } + public System.Type UnderlyingOrModelType { get => throw null; } + public abstract System.Func PropertyGetter { get; } + public abstract System.Action PropertySetter { get; } + public virtual System.Func BoundConstructorInvoker { get => throw null; } } - public abstract class ModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider { - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor(System.Reflection.ConstructorInfo constructor, System.Type modelType) => throw null; + public abstract System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType); + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType); public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter(System.Reflection.ParameterInfo parameter); public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter(System.Reflection.ParameterInfo parameter, System.Type modelType) => throw null; - public abstract System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType); public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForProperty(System.Reflection.PropertyInfo propertyInfo, System.Type modelType) => throw null; - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType); + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor(System.Reflection.ConstructorInfo constructor, System.Type modelType) => throw null; protected ModelMetadataProvider() => throw null; } - public class ModelPropertyCollection : System.Collections.ObjectModel.ReadOnlyCollection { - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata this[string propertyName] { get => throw null; } public ModelPropertyCollection(System.Collections.Generic.IEnumerable properties) : base(default(System.Collections.Generic.IList)) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata this[string propertyName] { get => throw null; } } - - public class ModelStateDictionary : System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable + public class ModelStateDictionary : System.Collections.Generic.IReadOnlyDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection> { + public static int DefaultMaxAllowedErrors; + public ModelStateDictionary() => throw null; + public ModelStateDictionary(int maxAllowedErrors) => throw null; + public ModelStateDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; + public bool TryAddModelException(string key, System.Exception exception) => throw null; + public void AddModelError(string key, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; + public bool TryAddModelError(string key, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; + public void AddModelError(string key, string errorMessage) => throw null; + public bool TryAddModelError(string key, string errorMessage) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState GetFieldValidationState(string key) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState GetValidationState(string key) => throw null; + public void MarkFieldValid(string key) => throw null; + public void MarkFieldSkipped(string key) => throw null; + public void Merge(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; + public void SetModelValue(string key, object rawValue, string attemptedValue) => throw null; + public void SetModelValue(string key, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult) => throw null; + public void ClearValidationState(string key) => throw null; + public void Clear() => throw null; + public bool ContainsKey(string key) => throw null; + public bool Remove(string key) => throw null; + public bool TryGetValue(string key, out Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry value) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.Enumerator GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public static bool StartsWithPrefix(string prefix, string key) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.PrefixEnumerable FindKeysWithPrefix(string prefix) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry Root { get => throw null; } + public int MaxAllowedErrors { get => throw null; set { } } + public bool HasReachedMaxErrors { get => throw null; } + public int ErrorCount { get => throw null; } + public int Count { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.KeyEnumerable Keys { get => throw null; } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.ValueEnumerable Values { get => throw null; } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get => throw null; } + public bool IsValid { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState ValidationState { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry this[string key] { get => throw null; } + public struct PrefixEnumerable : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + { + public PrefixEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.Enumerator GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + } public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor public Enumerator(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; + public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - - public struct KeyEnumerable : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { + public KeyEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.KeyEnumerator GetEnumerator() => throw null; System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - // Stub generator skipped constructor - public KeyEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; } - - public struct KeyEnumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable { - public string Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor public KeyEnumerator(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; + public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; + public string Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - - - public struct PrefixEnumerable : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable - { - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - // Stub generator skipped constructor - public PrefixEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; - } - - public struct ValueEnumerable : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { + public ValueEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.ValueEnumerator GetEnumerator() => throw null; System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - // Stub generator skipped constructor - public ValueEnumerable(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; } - - public struct ValueEnumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable { - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } + public ValueEnumerator(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; - // Stub generator skipped constructor - public ValueEnumerator(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary, string prefix) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - - - public void AddModelError(string key, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; - public void AddModelError(string key, string errorMessage) => throw null; - public void Clear() => throw null; - public void ClearValidationState(string key) => throw null; - public bool ContainsKey(string key) => throw null; - public int Count { get => throw null; } - public static int DefaultMaxAllowedErrors; - public int ErrorCount { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.PrefixEnumerable FindKeysWithPrefix(string prefix) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState GetFieldValidationState(string key) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState GetValidationState(string key) => throw null; - public bool HasReachedMaxErrors { get => throw null; } - public bool IsValid { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry this[string key] { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.KeyEnumerable Keys { get => throw null; } - System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } - public void MarkFieldSkipped(string key) => throw null; - public void MarkFieldValid(string key) => throw null; - public int MaxAllowedErrors { get => throw null; set => throw null; } - public void Merge(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; - public ModelStateDictionary() => throw null; - public ModelStateDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary) => throw null; - public ModelStateDictionary(int maxAllowedErrors) => throw null; - public bool Remove(string key) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry Root { get => throw null; } - public void SetModelValue(string key, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult) => throw null; - public void SetModelValue(string key, object rawValue, string attemptedValue) => throw null; - public static bool StartsWithPrefix(string prefix, string key) => throw null; - public bool TryAddModelError(string key, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; - public bool TryAddModelError(string key, string errorMessage) => throw null; - public bool TryAddModelException(string key, System.Exception exception) => throw null; - public bool TryGetValue(string key, out Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry value) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState ValidationState { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary.ValueEnumerable Values { get => throw null; } - System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get => throw null; } } - public abstract class ModelStateEntry { - public string AttemptedValue { get => throw null; set => throw null; } - public abstract System.Collections.Generic.IReadOnlyList Children { get; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelErrorCollection Errors { get => throw null; } public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry GetModelStateForProperty(string propertyName); - public abstract bool IsContainerNode { get; } protected ModelStateEntry() => throw null; - public object RawValue { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState ValidationState { get => throw null; set => throw null; } + public object RawValue { get => throw null; set { } } + public string AttemptedValue { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelErrorCollection Errors { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState ValidationState { get => throw null; set { } } + public abstract bool IsContainerNode { get; } + public abstract System.Collections.Generic.IReadOnlyList Children { get; } } - - public enum ModelValidationState : int + public enum ModelValidationState { - Invalid = 1, - Skipped = 3, Unvalidated = 0, + Invalid = 1, Valid = 2, + Skipped = 3, } - public class TooManyModelErrorsException : System.Exception { public TooManyModelErrorsException(string message) => throw null; } - - public class ValueProviderException : System.Exception + public sealed class ValueProviderException : System.Exception { public ValueProviderException(string message) => throw null; public ValueProviderException(string message, System.Exception innerException) => throw null; } - public class ValueProviderFactoryContext { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } public ValueProviderFactoryContext(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } public System.Collections.Generic.IList ValueProviders { get => throw null; } } - - public struct ValueProviderResult : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.IEquatable + public struct ValueProviderResult : System.IEquatable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult y) => throw null; - public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult y) => throw null; - public System.Globalization.CultureInfo Culture { get => throw null; } - public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult other) => throw null; - public override bool Equals(object obj) => throw null; - public string FirstValue { get => throw null; } - public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public override int GetHashCode() => throw null; - public int Length { get => throw null; } public static Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult None; - public override string ToString() => throw null; - // Stub generator skipped constructor public ValueProviderResult(Microsoft.Extensions.Primitives.StringValues values) => throw null; public ValueProviderResult(Microsoft.Extensions.Primitives.StringValues values, System.Globalization.CultureInfo culture) => throw null; - public Microsoft.Extensions.Primitives.StringValues Values { get => throw null; } + public override bool Equals(object obj) => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult other) => throw null; + public override int GetHashCode() => throw null; + public override string ToString() => throw null; + public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public static explicit operator string(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult result) => throw null; public static explicit operator string[](Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult result) => throw null; + public static bool operator ==(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult y) => throw null; + public static bool operator !=(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult x, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult y) => throw null; + public System.Globalization.CultureInfo Culture { get => throw null; } + public Microsoft.Extensions.Primitives.StringValues Values { get => throw null; } + public string FirstValue { get => throw null; } + public int Length { get => throw null; } } - namespace Metadata { public abstract class ModelBindingMessageProvider { - public virtual System.Func AttemptedValueIsInvalidAccessor { get => throw null; } + protected ModelBindingMessageProvider() => throw null; public virtual System.Func MissingBindRequiredValueAccessor { get => throw null; } public virtual System.Func MissingKeyOrValueAccessor { get => throw null; } public virtual System.Func MissingRequestBodyRequiredValueAccessor { get => throw null; } - protected ModelBindingMessageProvider() => throw null; + public virtual System.Func ValueMustNotBeNullAccessor { get => throw null; } + public virtual System.Func AttemptedValueIsInvalidAccessor { get => throw null; } public virtual System.Func NonPropertyAttemptedValueIsInvalidAccessor { get => throw null; } - public virtual System.Func NonPropertyUnknownValueIsInvalidAccessor { get => throw null; } - public virtual System.Func NonPropertyValueMustBeANumberAccessor { get => throw null; } public virtual System.Func UnknownValueIsInvalidAccessor { get => throw null; } + public virtual System.Func NonPropertyUnknownValueIsInvalidAccessor { get => throw null; } public virtual System.Func ValueIsInvalidAccessor { get => throw null; } public virtual System.Func ValueMustBeANumberAccessor { get => throw null; } - public virtual System.Func ValueMustNotBeNullAccessor { get => throw null; } + public virtual System.Func NonPropertyValueMustBeANumberAccessor { get => throw null; } } - public struct ModelMetadataIdentity : System.IEquatable { - public System.Reflection.ConstructorInfo ConstructorInfo { get => throw null; } - public System.Type ContainerType { get => throw null; } - public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity other) => throw null; - public override bool Equals(object obj) => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForConstructor(System.Reflection.ConstructorInfo constructor, System.Type modelType) => throw null; + public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForType(System.Type modelType) => throw null; + public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty(System.Type modelType, string name, System.Type containerType) => throw null; + public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty(System.Reflection.PropertyInfo propertyInfo, System.Type modelType, System.Type containerType) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForParameter(System.Reflection.ParameterInfo parameter) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForParameter(System.Reflection.ParameterInfo parameter, System.Type modelType) => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty(System.Reflection.PropertyInfo propertyInfo, System.Type modelType, System.Type containerType) => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty(System.Type modelType, string name, System.Type containerType) => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForType(System.Type modelType) => throw null; + public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForConstructor(System.Reflection.ConstructorInfo constructor, System.Type modelType) => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity other) => throw null; + public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataKind MetadataKind { get => throw null; } - // Stub generator skipped constructor + public System.Type ContainerType { get => throw null; } public System.Type ModelType { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataKind MetadataKind { get => throw null; } public string Name { get => throw null; } public System.Reflection.ParameterInfo ParameterInfo { get => throw null; } public System.Reflection.PropertyInfo PropertyInfo { get => throw null; } + public System.Reflection.ConstructorInfo ConstructorInfo { get => throw null; } } - - public enum ModelMetadataKind : int + public enum ModelMetadataKind { - Constructor = 3, - Parameter = 2, - Property = 1, Type = 0, + Property = 1, + Parameter = 2, + Constructor = 3, } - } namespace Validation { public class ClientModelValidationContext : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase { - public System.Collections.Generic.IDictionary Attributes { get => throw null; } public ClientModelValidationContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, System.Collections.Generic.IDictionary attributes) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata), default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; + public System.Collections.Generic.IDictionary Attributes { get => throw null; } } - public class ClientValidatorItem { public ClientValidatorItem() => throw null; public ClientValidatorItem(object validatorMetadata) => throw null; - public bool IsReusable { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator Validator { get => throw null; set => throw null; } public object ValidatorMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator Validator { get => throw null; set { } } + public bool IsReusable { get => throw null; set { } } } - public class ClientValidatorProviderContext { public ClientValidatorProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, System.Collections.Generic.IList items) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; } - public System.Collections.Generic.IList Results { get => throw null; } public System.Collections.Generic.IReadOnlyList ValidatorMetadata { get => throw null; } + public System.Collections.Generic.IList Results { get => throw null; } } - public interface IClientModelValidator { void AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context); } - public interface IClientModelValidatorProvider { void CreateValidators(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorProviderContext context); } - public interface IModelValidator { System.Collections.Generic.IEnumerable Validate(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext context); } - public interface IModelValidatorProvider { void CreateValidators(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext context); } - public interface IPropertyValidationFilter { bool ShouldValidateEntry(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry entry, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry parentEntry); } - public interface IValidationStrategy { System.Collections.Generic.IEnumerator GetChildren(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model); } - public class ModelValidationContext : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase { - public object Container { get => throw null; } - public object Model { get => throw null; } public ModelValidationContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, object container, object model) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata), default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; + public object Model { get => throw null; } + public object Container { get => throw null; } } - public class ModelValidationContextBase { + public ModelValidationContextBase(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; } - public ModelValidationContextBase(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } } - public class ModelValidationResult { + public ModelValidationResult(string memberName, string message) => throw null; public string MemberName { get => throw null; } public string Message { get => throw null; } - public ModelValidationResult(string memberName, string message) => throw null; } - public class ModelValidatorProviderContext { - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set => throw null; } public ModelValidatorProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, System.Collections.Generic.IList items) => throw null; - public System.Collections.Generic.IList Results { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set { } } public System.Collections.Generic.IReadOnlyList ValidatorMetadata { get => throw null; } + public System.Collections.Generic.IList Results { get => throw null; } } - public struct ValidationEntry { + public ValidationEntry(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model) => throw null; + public ValidationEntry(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, System.Func modelAccessor) => throw null; public string Key { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; } public object Model { get => throw null; } - // Stub generator skipped constructor - public ValidationEntry(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, System.Func modelAccessor) => throw null; - public ValidationEntry(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model) => throw null; } - - public class ValidationStateDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable + public class ValidationStateDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyDictionary, System.Collections.Generic.IReadOnlyCollection> { + public ValidationStateDictionary() => throw null; public void Add(System.Collections.Generic.KeyValuePair item) => throw null; public void Add(object key, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry value) => throw null; public void Clear() => throw null; public bool Contains(System.Collections.Generic.KeyValuePair item) => throw null; public bool ContainsKey(object key) => throw null; public void CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public bool IsReadOnly { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry this[object key] { get => throw null; set => throw null; } - Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry System.Collections.Generic.IDictionary.this[object key] { get => throw null; set => throw null; } - Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry System.Collections.Generic.IReadOnlyDictionary.this[object key] { get => throw null; } - public System.Collections.Generic.ICollection Keys { get => throw null; } - System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; public bool Remove(object key) => throw null; public bool TryGetValue(object key, out Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry value) => throw null; - public ValidationStateDictionary() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry this[object key] { get => throw null; set { } } + Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry System.Collections.Generic.IDictionary.this[object key] { get => throw null; set { } } + Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry System.Collections.Generic.IReadOnlyDictionary.this[object key] { get => throw null; } + public int Count { get => throw null; } + public bool IsReadOnly { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } public System.Collections.Generic.ICollection Values { get => throw null; } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get => throw null; } } - public class ValidationStateEntry { - public string Key { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy Strategy { get => throw null; set => throw null; } - public bool SuppressValidation { get => throw null; set => throw null; } public ValidationStateEntry() => throw null; + public string Key { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set { } } + public bool SuppressValidation { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy Strategy { get => throw null; set { } } } - public class ValidatorItem { - public bool IsReusable { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidator Validator { get => throw null; set => throw null; } public ValidatorItem() => throw null; public ValidatorItem(object validatorMetadata) => throw null; public object ValidatorMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidator Validator { get => throw null; set { } } + public bool IsReusable { get => throw null; set { } } } - } } namespace Routing @@ -1164,34 +1011,31 @@ namespace Routing public class AttributeRouteInfo { public AttributeRouteInfo() => throw null; - public string Name { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - public bool SuppressLinkGeneration { get => throw null; set => throw null; } - public bool SuppressPathMatching { get => throw null; set => throw null; } - public string Template { get => throw null; set => throw null; } + public string Template { get => throw null; set { } } + public int Order { get => throw null; set { } } + public string Name { get => throw null; set { } } + public bool SuppressLinkGeneration { get => throw null; set { } } + public bool SuppressPathMatching { get => throw null; set { } } } - public class UrlActionContext { - public string Action { get => throw null; set => throw null; } - public string Controller { get => throw null; set => throw null; } - public string Fragment { get => throw null; set => throw null; } - public string Host { get => throw null; set => throw null; } - public string Protocol { get => throw null; set => throw null; } public UrlActionContext() => throw null; - public object Values { get => throw null; set => throw null; } + public string Action { get => throw null; set { } } + public string Controller { get => throw null; set { } } + public object Values { get => throw null; set { } } + public string Protocol { get => throw null; set { } } + public string Host { get => throw null; set { } } + public string Fragment { get => throw null; set { } } } - public class UrlRouteContext { - public string Fragment { get => throw null; set => throw null; } - public string Host { get => throw null; set => throw null; } - public string Protocol { get => throw null; set => throw null; } - public string RouteName { get => throw null; set => throw null; } public UrlRouteContext() => throw null; - public object Values { get => throw null; set => throw null; } + public string RouteName { get => throw null; set { } } + public object Values { get => throw null; set { } } + public string Protocol { get => throw null; set { } } + public string Host { get => throw null; set { } } + public string Fragment { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ApiExplorer.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ApiExplorer.cs index 4da9d47995d1e..0aedaaeffc146 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ApiExplorer.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ApiExplorer.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.ApiExplorer, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,45 +8,39 @@ namespace Mvc { namespace ApiExplorer { - public static class ApiDescriptionExtensions + public static partial class ApiDescriptionExtensions { public static T GetProperty(this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription) => throw null; public static void SetProperty(this Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription apiDescription, T value) => throw null; } - public class ApiDescriptionGroup { public ApiDescriptionGroup(string groupName, System.Collections.Generic.IReadOnlyList items) => throw null; public string GroupName { get => throw null; } public System.Collections.Generic.IReadOnlyList Items { get => throw null; } } - public class ApiDescriptionGroupCollection { public ApiDescriptionGroupCollection(System.Collections.Generic.IReadOnlyList items, int version) => throw null; public System.Collections.Generic.IReadOnlyList Items { get => throw null; } public int Version { get => throw null; } } - public class ApiDescriptionGroupCollectionProvider : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProvider { public ApiDescriptionGroupCollectionProvider(Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider actionDescriptorCollectionProvider, System.Collections.Generic.IEnumerable apiDescriptionProviders) => throw null; public Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollection ApiDescriptionGroups { get => throw null; } } - public class DefaultApiDescriptionProvider : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider { public DefaultApiDescriptionProvider(Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper mapper, Microsoft.Extensions.Options.IOptions routeOptions) => throw null; - public void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context) => throw null; public void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context) => throw null; + public void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionProviderContext context) => throw null; public int Order { get => throw null; } } - public interface IApiDescriptionGroupCollectionProvider { Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollection ApiDescriptionGroups { get; } } - } } } @@ -55,16 +48,14 @@ namespace Extensions { namespace DependencyInjection { - public static class EndpointMetadataApiExplorerServiceCollectionExtensions + public static partial class EndpointMetadataApiExplorerServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddEndpointsApiExplorer(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; } - - public static class MvcApiExplorerMvcCoreBuilderExtensions + public static partial class MvcApiExplorerMvcCoreBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddApiExplorer(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Core.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Core.cs index f4223ac690fd9..3261f7f58af90 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Core.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Core.cs @@ -1,1090 +1,983 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public class ControllerActionEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder + public sealed class ControllerActionEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; } - - public static class ControllerEndpointRouteBuilderExtensions + public static partial class ControllerEndpointRouteBuilderExtensions { - public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapAreaControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string name, string areaName, string pattern, object defaults = default(object), object constraints = default(object), object dataTokens = default(object)) => throw null; - public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string name, string pattern, object defaults = default(object), object constraints = default(object), object dataTokens = default(object)) => throw null; public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapControllers(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) => throw null; public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapDefaultControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) => throw null; + public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string name, string pattern, object defaults, object constraints, object dataTokens) => throw null; + public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapAreaControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string name, string areaName, string pattern, object defaults, object constraints, object dataTokens) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller, string area) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller, string area) => throw null; public static void MapDynamicControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; public static void MapDynamicControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; public static void MapDynamicControllerRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state, int order) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller, string area) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller, string area) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller) => throw null; } - - public static class MvcApplicationBuilderExtensions + public static partial class MvcApplicationBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configureRoutes) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvcWithDefaultRoute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Action configureRoutes) => throw null; } - - public static class MvcAreaRouteBuilderExtensions + public static partial class MvcAreaRouteBuilderExtensions { public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints, object dataTokens) => throw null; } - } namespace Mvc { - public class AcceptVerbsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider - { - public AcceptVerbsAttribute(params string[] methods) => throw null; - public AcceptVerbsAttribute(string method) => throw null; - public System.Collections.Generic.IEnumerable HttpMethods { get => throw null; } - public string Name { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } - public string Route { get => throw null; set => throw null; } - string Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Template { get => throw null; } - } - public class AcceptedAtActionResult : Microsoft.AspNetCore.Mvc.ObjectResult { public AcceptedAtActionResult(string actionName, string controllerName, object routeValues, object value) : base(default(object)) => throw null; - public string ActionName { get => throw null; set => throw null; } - public string ControllerName { get => throw null; set => throw null; } public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string ActionName { get => throw null; set { } } + public string ControllerName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class AcceptedAtRouteResult : Microsoft.AspNetCore.Mvc.ObjectResult { public AcceptedAtRouteResult(object routeValues, object value) : base(default(object)) => throw null; public AcceptedAtRouteResult(string routeName, object routeValues, object value) : base(default(object)) => throw null; public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string RouteName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class AcceptedResult : Microsoft.AspNetCore.Mvc.ObjectResult { public AcceptedResult() : base(default(object)) => throw null; - public AcceptedResult(System.Uri locationUri, object value) : base(default(object)) => throw null; public AcceptedResult(string location, object value) : base(default(object)) => throw null; - public string Location { get => throw null; set => throw null; } + public AcceptedResult(System.Uri locationUri, object value) : base(default(object)) => throw null; public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string Location { get => throw null; set { } } + } + public sealed class AcceptVerbsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider + { + public AcceptVerbsAttribute(string method) => throw null; + public AcceptVerbsAttribute(params string[] methods) => throw null; + public System.Collections.Generic.IEnumerable HttpMethods { get => throw null; } + public string Route { get => throw null; set { } } + string Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Template { get => throw null; } + public int Order { get => throw null; set { } } + int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } + public string Name { get => throw null; set { } } } - public class ActionContextAttribute : System.Attribute { public ActionContextAttribute() => throw null; } - - public class ActionNameAttribute : System.Attribute + public sealed class ActionNameAttribute : System.Attribute { public ActionNameAttribute(string name) => throw null; public string Name { get => throw null; } } - public abstract class ActionResult : Microsoft.AspNetCore.Mvc.IActionResult { - protected ActionResult() => throw null; - public virtual void ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public virtual System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public virtual void ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + protected ActionResult() => throw null; } - - public class ActionResult : Microsoft.AspNetCore.Mvc.Infrastructure.IConvertToActionResult + public sealed class ActionResult : Microsoft.AspNetCore.Mvc.Infrastructure.IConvertToActionResult { - public ActionResult(Microsoft.AspNetCore.Mvc.ActionResult result) => throw null; public ActionResult(TValue value) => throw null; + public ActionResult(Microsoft.AspNetCore.Mvc.ActionResult result) => throw null; + public static implicit operator Microsoft.AspNetCore.Mvc.ActionResult(TValue value) => throw null; + public static implicit operator Microsoft.AspNetCore.Mvc.ActionResult(Microsoft.AspNetCore.Mvc.ActionResult result) => throw null; Microsoft.AspNetCore.Mvc.IActionResult Microsoft.AspNetCore.Mvc.Infrastructure.IConvertToActionResult.Convert() => throw null; public Microsoft.AspNetCore.Mvc.ActionResult Result { get => throw null; } public TValue Value { get => throw null; } - public static implicit operator Microsoft.AspNetCore.Mvc.ActionResult(Microsoft.AspNetCore.Mvc.ActionResult result) => throw null; - public static implicit operator Microsoft.AspNetCore.Mvc.ActionResult(TValue value) => throw null; } - public class AntiforgeryValidationFailedResult : Microsoft.AspNetCore.Mvc.BadRequestResult, Microsoft.AspNetCore.Mvc.Core.Infrastructure.IAntiforgeryValidationFailedResult, Microsoft.AspNetCore.Mvc.IActionResult { public AntiforgeryValidationFailedResult() => throw null; } - public class ApiBehaviorOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public ApiBehaviorOptions() => throw null; - public System.Collections.Generic.IDictionary ClientErrorMapping { get => throw null; } - public bool DisableImplicitFromServicesParameters { get => throw null; set => throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public System.Func InvalidModelStateResponseFactory { get => throw null; set => throw null; } - public bool SuppressConsumesConstraintForFormFileParameters { get => throw null; set => throw null; } - public bool SuppressInferBindingSourcesForParameters { get => throw null; set => throw null; } - public bool SuppressMapClientErrors { get => throw null; set => throw null; } - public bool SuppressModelStateInvalidFilter { get => throw null; set => throw null; } + public ApiBehaviorOptions() => throw null; + public System.Func InvalidModelStateResponseFactory { get => throw null; set { } } + public bool SuppressModelStateInvalidFilter { get => throw null; set { } } + public bool SuppressInferBindingSourcesForParameters { get => throw null; set { } } + public bool DisableImplicitFromServicesParameters { get => throw null; set { } } + public bool SuppressConsumesConstraintForFormFileParameters { get => throw null; set { } } + public bool SuppressMapClientErrors { get => throw null; set { } } + public System.Collections.Generic.IDictionary ClientErrorMapping { get => throw null; } } - - public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Infrastructure.IApiBehaviorMetadata + public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Mvc.Infrastructure.IApiBehaviorMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { public ApiControllerAttribute() => throw null; } - - public class ApiConventionMethodAttribute : System.Attribute + public sealed class ApiConventionMethodAttribute : System.Attribute { public ApiConventionMethodAttribute(System.Type conventionType, string methodName) => throw null; public System.Type ConventionType { get => throw null; } } - - public class ApiConventionTypeAttribute : System.Attribute + public sealed class ApiConventionTypeAttribute : System.Attribute { public ApiConventionTypeAttribute(System.Type conventionType) => throw null; public System.Type ConventionType { get => throw null; } } - - public class ApiDescriptionActionData - { - public ApiDescriptionActionData() => throw null; - public string GroupName { get => throw null; set => throw null; } - } - public class ApiExplorerSettingsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupNameProvider, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionVisibilityProvider { public ApiExplorerSettingsAttribute() => throw null; - public string GroupName { get => throw null; set => throw null; } - public bool IgnoreApi { get => throw null; set => throw null; } + public string GroupName { get => throw null; set { } } + public bool IgnoreApi { get => throw null; set { } } + } + public class ApiDescriptionActionData + { + public ApiDescriptionActionData() => throw null; + public string GroupName { get => throw null; set { } } } - public class AreaAttribute : Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute { public AreaAttribute(string areaName) : base(default(string), default(string)) => throw null; } - public class BadRequestObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { - public BadRequestObjectResult(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(object)) => throw null; public BadRequestObjectResult(object error) : base(default(object)) => throw null; + public BadRequestObjectResult(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(object)) => throw null; } - public class BadRequestResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public BadRequestResult() : base(default(int)) => throw null; } - public class BindAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider { public BindAttribute(params string[] include) => throw null; public string[] Include { get => throw null; } + public string Prefix { get => throw null; set { } } string Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider.Name { get => throw null; } - public string Prefix { get => throw null; set => throw null; } public System.Func PropertyFilter { get => throw null; } } - public class BindPropertiesAttribute : System.Attribute { public BindPropertiesAttribute() => throw null; - public bool SupportsGet { get => throw null; set => throw null; } + public bool SupportsGet { get => throw null; set { } } } - - public class BindPropertyAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IRequestPredicateProvider + public class BindPropertyAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IRequestPredicateProvider { public BindPropertyAttribute() => throw null; - public System.Type BinderType { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } + public bool SupportsGet { get => throw null; set { } } + public System.Type BinderType { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set { } } + public string Name { get => throw null; set { } } System.Func Microsoft.AspNetCore.Mvc.ModelBinding.IRequestPredicateProvider.RequestPredicate { get => throw null; } - public bool SupportsGet { get => throw null; set => throw null; } } - public class CacheProfile { public CacheProfile() => throw null; - public int? Duration { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ResponseCacheLocation? Location { get => throw null; set => throw null; } - public bool? NoStore { get => throw null; set => throw null; } - public string VaryByHeader { get => throw null; set => throw null; } - public string[] VaryByQueryKeys { get => throw null; set => throw null; } + public int? Duration { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ResponseCacheLocation? Location { get => throw null; set { } } + public bool? NoStore { get => throw null; set { } } + public string VaryByHeader { get => throw null; set { } } + public string[] VaryByQueryKeys { get => throw null; set { } } } - public class ChallengeResult : Microsoft.AspNetCore.Mvc.ActionResult { - public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set => throw null; } public ChallengeResult() => throw null; - public ChallengeResult(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public ChallengeResult(System.Collections.Generic.IList authenticationSchemes) => throw null; - public ChallengeResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public ChallengeResult(string authenticationScheme) => throw null; + public ChallengeResult(System.Collections.Generic.IList authenticationSchemes) => throw null; + public ChallengeResult(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public ChallengeResult(string authenticationScheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public ChallengeResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } } - public class ClientErrorData { public ClientErrorData() => throw null; - public string Link { get => throw null; set => throw null; } - public string Title { get => throw null; set => throw null; } + public string Link { get => throw null; set { } } + public string Title { get => throw null; set { } } } - - public enum CompatibilityVersion : int + public enum CompatibilityVersion { - Latest = 2147483647, Version_2_0 = 0, Version_2_1 = 1, Version_2_2 = 2, Version_3_0 = 3, + Latest = 2147483647, } - public class ConflictObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { - public ConflictObjectResult(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(object)) => throw null; public ConflictObjectResult(object error) : base(default(object)) => throw null; + public ConflictObjectResult(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(object)) => throw null; } - public class ConflictResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public ConflictResult() : base(default(int)) => throw null; } - - public class ConsumesAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter + public class ConsumesAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestMetadataProvider, Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata { - public bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context) => throw null; public static int ConsumesActionConstraintOrder; - public ConsumesAttribute(System.Type requestType, string contentType, params string[] otherContentTypes) => throw null; public ConsumesAttribute(string contentType, params string[] otherContentTypes) => throw null; - public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set => throw null; } - System.Collections.Generic.IReadOnlyList Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata.ContentTypes { get => throw null; } - public bool IsOptional { get => throw null; set => throw null; } - public void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) => throw null; + public ConsumesAttribute(System.Type requestType, string contentType, params string[] otherContentTypes) => throw null; public void OnResourceExecuting(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext context) => throw null; + public void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) => throw null; + public bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context) => throw null; + public void SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; int Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint.Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set { } } + public bool IsOptional { get => throw null; set { } } System.Type Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata.RequestType { get => throw null; } - public void SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; + System.Collections.Generic.IReadOnlyList Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata.ContentTypes { get => throw null; } } - - public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public string Content { get => throw null; set => throw null; } - public ContentResult() => throw null; - public string ContentType { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public int? StatusCode { get => throw null; set => throw null; } + public ContentResult() => throw null; + public string Content { get => throw null; set { } } + public string ContentType { get => throw null; set { } } + public int? StatusCode { get => throw null; set { } } } - public class ControllerAttribute : System.Attribute { public ControllerAttribute() => throw null; } - public abstract class ControllerBase { - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted() => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(System.Uri uri) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(System.Uri uri, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(string uri) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(string uri, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName, object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName, object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.BadRequestResult BadRequest() => throw null; - public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; - public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(object error) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ConflictResult Conflict() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict(object error) => throw null; + public virtual Microsoft.AspNetCore.Mvc.StatusCodeResult StatusCode(int statusCode) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ObjectResult StatusCode(int statusCode, object value) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - protected ControllerBase() => throw null; - public Microsoft.AspNetCore.Mvc.ControllerContext ControllerContext { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created(System.Uri uri, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created(string uri, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, string controllerName, object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(object routeValues, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(string routeName, object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(string routeName, object routeValues, object value) => throw null; - public static Microsoft.AspNetCore.Mvc.EmptyResult Empty { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect(string localUrl) => throw null; - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanent(string localUrl) => throw null; - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPreserveMethod(string localUrl) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory ModelBinderFactory { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.NoContentResult NoContent() => throw null; - public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound() => throw null; - public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound(object value) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator ObjectValidator { get => throw null; set => throw null; } public virtual Microsoft.AspNetCore.Mvc.OkResult Ok() => throw null; public virtual Microsoft.AspNetCore.Mvc.OkObjectResult Ok(object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ObjectResult Problem(string detail = default(string), string instance = default(string), int? statusCode = default(int?), string title = default(string), string type = default(string)) => throw null; - public Microsoft.AspNetCore.Mvc.Infrastructure.ProblemDetailsFactory ProblemDetailsFactory { get => throw null; set => throw null; } public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanent(string url) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPreserveMethod(string url) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect(string localUrl) => throw null; + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanent(string localUrl) => throw null; + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPreserveMethod(string localUrl) => throw null; + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction() => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName, string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName, string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing) => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized() => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult Unauthorized(object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound() => throw null; + public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound(object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.BadRequestResult BadRequest() => throw null; + public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(object error) => throw null; + public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity() => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(object error) => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ConflictResult Conflict() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict(object error) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ConflictObjectResult Conflict(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ObjectResult Problem(string detail, string instance, int? statusCode, string title, string type) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(string detail, string instance, int? statusCode, string title, string type, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created(string uri, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created(System.Uri uri, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction(string actionName, string controllerName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(string routeName, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute(string routeName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted() => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(System.Uri uri) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(string uri) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(string uri, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedResult Accepted(System.Uri uri, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtActionResult AcceptedAtAction(string actionName, string controllerName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.AcceptedAtRouteResult AcceptedAtRoute(string routeName, object routeValues, object value) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; - public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut() => throw null; public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.StatusCodeResult StatusCode(int statusCode) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ObjectResult StatusCode(int statusCode, object value) => throw null; - public virtual System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix) => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model) where TModel : class => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, System.Func propertyFilter) where TModel : class => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, System.Func propertyFilter) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; + public virtual System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix) => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; public virtual bool TryValidateModel(object model) => throw null; public virtual bool TryValidateModel(object model, string prefix) => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized() => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult Unauthorized(object value) => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity() => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity(object error) => throw null; - public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set => throw null; } + protected ControllerBase() => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } + public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public Microsoft.AspNetCore.Mvc.ControllerContext ControllerContext { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory ModelBinderFactory { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator ObjectValidator { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Infrastructure.ProblemDetailsFactory ProblemDetailsFactory { get => throw null; set { } } public System.Security.Claims.ClaimsPrincipal User { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem(string detail = default(string), string instance = default(string), int? statusCode = default(int?), string title = default(string), string type = default(string), Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary = default(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary)) => throw null; + public static Microsoft.AspNetCore.Mvc.EmptyResult Empty { get => throw null; } } - public class ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext { - public Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor ActionDescriptor { get => throw null; set => throw null; } public ControllerContext() => throw null; public ControllerContext(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public virtual System.Collections.Generic.IList ValueProviderFactories { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor ActionDescriptor { get => throw null; set { } } + public virtual System.Collections.Generic.IList ValueProviderFactories { get => throw null; set { } } } - public class ControllerContextAttribute : System.Attribute { public ControllerContextAttribute() => throw null; } - public class CreatedAtActionResult : Microsoft.AspNetCore.Mvc.ObjectResult { - public string ActionName { get => throw null; set => throw null; } - public string ControllerName { get => throw null; set => throw null; } public CreatedAtActionResult(string actionName, string controllerName, object routeValues, object value) : base(default(object)) => throw null; public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string ActionName { get => throw null; set { } } + public string ControllerName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class CreatedAtRouteResult : Microsoft.AspNetCore.Mvc.ObjectResult { public CreatedAtRouteResult(object routeValues, object value) : base(default(object)) => throw null; public CreatedAtRouteResult(string routeName, object routeValues, object value) : base(default(object)) => throw null; public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string RouteName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } } - public class CreatedResult : Microsoft.AspNetCore.Mvc.ObjectResult { - public CreatedResult(System.Uri location, object value) : base(default(object)) => throw null; public CreatedResult(string location, object value) : base(default(object)) => throw null; - public string Location { get => throw null; set => throw null; } + public CreatedResult(System.Uri location, object value) : base(default(object)) => throw null; public override void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string Location { get => throw null; set { } } } - public static class DefaultApiConventions { - public static void Create(object model) => throw null; - public static void Delete(object id) => throw null; - public static void Edit(object id, object model) => throw null; - public static void Find(object id) => throw null; public static void Get(object id) => throw null; + public static void Find(object id) => throw null; public static void Post(object model) => throw null; + public static void Create(object model) => throw null; public static void Put(object id, object model) => throw null; + public static void Edit(object id, object model) => throw null; public static void Update(object id, object model) => throw null; + public static void Delete(object id) => throw null; } - - public class DisableRequestSizeLimitAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter + public class DisableRequestSizeLimitAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata { public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; public DisableRequestSizeLimitAttribute() => throw null; + public int Order { get => throw null; set { } } public bool IsReusable { get => throw null; } - System.Int64? Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata.MaxRequestBodySize { get => throw null; } - public int Order { get => throw null; set => throw null; } + long? Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata.MaxRequestBodySize { get => throw null; } } - public class EmptyResult : Microsoft.AspNetCore.Mvc.ActionResult { - public EmptyResult() => throw null; public override void ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public EmptyResult() => throw null; } - public class FileContentResult : Microsoft.AspNetCore.Mvc.FileResult { + public FileContentResult(byte[] fileContents, string contentType) : base(default(string)) => throw null; + public FileContentResult(byte[] fileContents, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public FileContentResult(System.Byte[] fileContents, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; - public FileContentResult(System.Byte[] fileContents, string contentType) : base(default(string)) => throw null; - public System.Byte[] FileContents { get => throw null; set => throw null; } + public byte[] FileContents { get => throw null; set { } } } - public abstract class FileResult : Microsoft.AspNetCore.Mvc.ActionResult { - public string ContentType { get => throw null; } - public bool EnableRangeProcessing { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set => throw null; } - public string FileDownloadName { get => throw null; set => throw null; } protected FileResult(string contentType) => throw null; - public System.DateTimeOffset? LastModified { get => throw null; set => throw null; } + public string ContentType { get => throw null; } + public string FileDownloadName { get => throw null; set { } } + public System.DateTimeOffset? LastModified { get => throw null; set { } } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; set { } } + public bool EnableRangeProcessing { get => throw null; set { } } } - public class FileStreamResult : Microsoft.AspNetCore.Mvc.FileResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public System.IO.Stream FileStream { get => throw null; set => throw null; } - public FileStreamResult(System.IO.Stream fileStream, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; public FileStreamResult(System.IO.Stream fileStream, string contentType) : base(default(string)) => throw null; + public FileStreamResult(System.IO.Stream fileStream, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public System.IO.Stream FileStream { get => throw null; set { } } + } + public class MiddlewareFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter + { + public MiddlewareFilterAttribute(System.Type configurationType) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public System.Type ConfigurationType { get => throw null; } + public int Order { get => throw null; set { } } + public bool IsReusable { get => throw null; } } - public class ForbidResult : Microsoft.AspNetCore.Mvc.ActionResult { - public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public ForbidResult() => throw null; - public ForbidResult(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public ForbidResult(System.Collections.Generic.IList authenticationSchemes) => throw null; - public ForbidResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public ForbidResult(string authenticationScheme) => throw null; + public ForbidResult(System.Collections.Generic.IList authenticationSchemes) => throw null; + public ForbidResult(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public ForbidResult(string authenticationScheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } + public ForbidResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } } - public class FormatFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; public FormatFilterAttribute() => throw null; public bool IsReusable { get => throw null; } } - - public class FromBodyAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromBodyMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata + public class FromBodyAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Http.Metadata.IFromBodyMetadata { - bool Microsoft.AspNetCore.Http.Metadata.IFromBodyMetadata.AllowEmpty { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get => throw null; set => throw null; } public FromBodyAttribute() => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get => throw null; set { } } + bool Microsoft.AspNetCore.Http.Metadata.IFromBodyMetadata.AllowEmpty { get => throw null; } } - - public class FromFormAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromFormMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider + public class FromFormAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Http.Metadata.IFromFormMetadata { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public FromFormAttribute() => throw null; - public string Name { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + public string Name { get => throw null; set { } } } - - public class FromHeaderAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromHeaderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider + public class FromHeaderAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Http.Metadata.IFromHeaderMetadata { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public FromHeaderAttribute() => throw null; - public string Name { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + public string Name { get => throw null; set { } } } - - public class FromQueryAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromQueryMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider + public class FromQueryAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Http.Metadata.IFromQueryMetadata { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public FromQueryAttribute() => throw null; - public string Name { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + public string Name { get => throw null; set { } } } - - public class FromRouteAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromRouteMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider + public class FromRouteAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Http.Metadata.IFromRouteMetadata { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public FromRouteAttribute() => throw null; - public string Name { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + public string Name { get => throw null; set { } } } - - public class FromServicesAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IFromServiceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata + public class FromServicesAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Http.Metadata.IFromServiceMetadata { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public FromServicesAttribute() => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } } - public class HttpDeleteAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpDeleteAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpDeleteAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpGetAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpGetAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpGetAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpHeadAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpHeadAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpHeadAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpOptionsAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpOptionsAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpOptionsAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpPatchAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpPatchAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpPatchAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpPostAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpPostAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpPostAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public class HttpPutAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute { public HttpPutAttribute() : base(default(System.Collections.Generic.IEnumerable)) => throw null; public HttpPutAttribute(string template) : base(default(System.Collections.Generic.IEnumerable)) => throw null; } - public interface IDesignTimeMvcBuilderConfiguration { void ConfigureMvc(Microsoft.Extensions.DependencyInjection.IMvcBuilder builder); } - public interface IRequestFormLimitsPolicy : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public interface IRequestSizePolicy : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public class JsonOptions { - public bool AllowInputFormatterExceptionMessages { get => throw null; set => throw null; } public JsonOptions() => throw null; + public bool AllowInputFormatterExceptionMessages { get => throw null; set { } } public System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get => throw null; } } - - public class JsonResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class JsonResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public string ContentType { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public JsonResult(object value) => throw null; public JsonResult(object value, object serializerSettings) => throw null; - public object SerializerSettings { get => throw null; set => throw null; } - public int? StatusCode { get => throw null; set => throw null; } - public object Value { get => throw null; set => throw null; } + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string ContentType { get => throw null; set { } } + public object SerializerSettings { get => throw null; set { } } + public int? StatusCode { get => throw null; set { } } + public object Value { get => throw null; set { } } } - public class LocalRedirectResult : Microsoft.AspNetCore.Mvc.ActionResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public LocalRedirectResult(string localUrl) => throw null; public LocalRedirectResult(string localUrl, bool permanent) => throw null; public LocalRedirectResult(string localUrl, bool permanent, bool preserveMethod) => throw null; - public bool Permanent { get => throw null; set => throw null; } - public bool PreserveMethod { get => throw null; set => throw null; } - public string Url { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } - } - - public class MiddlewareFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter - { - public System.Type ConfigurationType { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; - public bool IsReusable { get => throw null; } - public MiddlewareFilterAttribute(System.Type configurationType) => throw null; - public int Order { get => throw null; set => throw null; } + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public bool Permanent { get => throw null; set { } } + public bool PreserveMethod { get => throw null; set { } } + public string Url { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } } - - public class ModelBinderAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider + public class ModelBinderAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata { - public System.Type BinderType { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set => throw null; } public ModelBinderAttribute() => throw null; public ModelBinderAttribute(System.Type binderType) => throw null; - public string Name { get => throw null; set => throw null; } + public System.Type BinderType { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set { } } + public string Name { get => throw null; set { } } } - public class ModelMetadataTypeAttribute : System.Attribute { - public System.Type MetadataType { get => throw null; } public ModelMetadataTypeAttribute(System.Type type) => throw null; + public System.Type MetadataType { get => throw null; } } - public class MvcOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public bool AllowEmptyInputInBodyModelBinding { get => throw null; set => throw null; } + public MvcOptions() => throw null; + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public bool EnableEndpointRouting { get => throw null; set { } } + public bool AllowEmptyInputInBodyModelBinding { get => throw null; set { } } public System.Collections.Generic.IDictionary CacheProfiles { get => throw null; } public System.Collections.Generic.IList Conventions { get => throw null; } - public bool EnableActionInvokers { get => throw null; set => throw null; } - public bool EnableEndpointRouting { get => throw null; set => throw null; } public Microsoft.AspNetCore.Mvc.Filters.FilterCollection Filters { get => throw null; } public Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings FormatterMappings { get => throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection InputFormatters { get => throw null; } - public int MaxIAsyncEnumerableBufferLimit { get => throw null; set => throw null; } - public int MaxModelBindingCollectionSize { get => throw null; set => throw null; } - public int MaxModelBindingRecursionDepth { get => throw null; set => throw null; } - public int MaxModelValidationErrors { get => throw null; set => throw null; } - public int? MaxValidationDepth { get => throw null; set => throw null; } + public bool SuppressImplicitRequiredAttributeForNonNullableReferenceTypes { get => throw null; set { } } + public bool SuppressInputFormatterBuffering { get => throw null; set { } } + public bool SuppressOutputFormatterBuffering { get => throw null; set { } } + public bool EnableActionInvokers { get => throw null; set { } } + public int MaxModelValidationErrors { get => throw null; set { } } public System.Collections.Generic.IList ModelBinderProviders { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider ModelBindingMessageProvider { get => throw null; } public System.Collections.Generic.IList ModelMetadataDetailsProviders { get => throw null; } public System.Collections.Generic.IList ModelValidatorProviders { get => throw null; } - public MvcOptions() => throw null; public Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection OutputFormatters { get => throw null; } - public bool RequireHttpsPermanent { get => throw null; set => throw null; } - public bool RespectBrowserAcceptHeader { get => throw null; set => throw null; } - public bool ReturnHttpNotAcceptable { get => throw null; set => throw null; } - public int? SslPort { get => throw null; set => throw null; } - public bool SuppressAsyncSuffixInActionNames { get => throw null; set => throw null; } - public bool SuppressImplicitRequiredAttributeForNonNullableReferenceTypes { get => throw null; set => throw null; } - public bool SuppressInputFormatterBuffering { get => throw null; set => throw null; } - public bool SuppressOutputFormatterBuffering { get => throw null; set => throw null; } - public bool ValidateComplexTypesIfChildValidationFails { get => throw null; set => throw null; } + public bool RespectBrowserAcceptHeader { get => throw null; set { } } + public bool ReturnHttpNotAcceptable { get => throw null; set { } } public System.Collections.Generic.IList ValueProviderFactories { get => throw null; } + public int? SslPort { get => throw null; set { } } + public bool RequireHttpsPermanent { get => throw null; set { } } + public int? MaxValidationDepth { get => throw null; set { } } + public bool ValidateComplexTypesIfChildValidationFails { get => throw null; set { } } + public bool SuppressAsyncSuffixInActionNames { get => throw null; set { } } + public int MaxModelBindingCollectionSize { get => throw null; set { } } + public int MaxModelBindingRecursionDepth { get => throw null; set { } } + public int MaxIAsyncEnumerableBufferLimit { get => throw null; set { } } } - public class NoContentResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public NoContentResult() : base(default(int)) => throw null; } - - public class NonActionAttribute : System.Attribute + public sealed class NonActionAttribute : System.Attribute { public NonActionAttribute() => throw null; } - - public class NonControllerAttribute : System.Attribute + public sealed class NonControllerAttribute : System.Attribute { public NonControllerAttribute() => throw null; } - public class NonViewComponentAttribute : System.Attribute { public NonViewComponentAttribute() => throw null; } - public class NotFoundObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { public NotFoundObjectResult(object value) : base(default(object)) => throw null; } - public class NotFoundResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public NotFoundResult() : base(default(int)) => throw null; } - - public class ObjectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class ObjectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set => throw null; } - public System.Type DeclaredType { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection Formatters { get => throw null; set => throw null; } public ObjectResult(object value) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public virtual void OnFormatting(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public int? StatusCode { get => throw null; set => throw null; } - public object Value { get => throw null; set => throw null; } + public object Value { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Formatters.FormatterCollection Formatters { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set { } } + public System.Type DeclaredType { get => throw null; set { } } + public int? StatusCode { get => throw null; set { } } } - public class OkObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { public OkObjectResult(object value) : base(default(object)) => throw null; } - public class OkResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public OkResult() : base(default(int)) => throw null; } - public class PhysicalFileResult : Microsoft.AspNetCore.Mvc.FileResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string FileName { get => throw null; set => throw null; } - public PhysicalFileResult(string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; public PhysicalFileResult(string fileName, string contentType) : base(default(string)) => throw null; + public PhysicalFileResult(string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string FileName { get => throw null; set { } } } - - public class ProducesAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter + public class ProducesAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider { - public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set => throw null; } - public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; - public virtual void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context) => throw null; - public int Order { get => throw null; set => throw null; } public ProducesAttribute(System.Type type) => throw null; public ProducesAttribute(string contentType, params string[] additionalContentTypes) => throw null; + public virtual void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context) => throw null; + public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; public void SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; + public System.Type Type { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection ContentTypes { get => throw null; set { } } public int StatusCode { get => throw null; } - public System.Type Type { get => throw null; set => throw null; } + public int Order { get => throw null; set { } } } - - public class ProducesDefaultResponseTypeAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDefaultResponseMetadataProvider, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata + public sealed class ProducesDefaultResponseTypeAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDefaultResponseMetadataProvider, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { public ProducesDefaultResponseTypeAttribute() => throw null; public ProducesDefaultResponseTypeAttribute(System.Type type) => throw null; void Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; - public int StatusCode { get => throw null; } public System.Type Type { get => throw null; } + public int StatusCode { get => throw null; } } - - public class ProducesErrorResponseTypeAttribute : System.Attribute + public sealed class ProducesErrorResponseTypeAttribute : System.Attribute { public ProducesErrorResponseTypeAttribute(System.Type type) => throw null; public System.Type Type { get => throw null; } } - public class ProducesResponseTypeAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { + public ProducesResponseTypeAttribute(int statusCode) => throw null; public ProducesResponseTypeAttribute(System.Type type, int statusCode) => throw null; public ProducesResponseTypeAttribute(System.Type type, int statusCode, string contentType, params string[] additionalContentTypes) => throw null; - public ProducesResponseTypeAttribute(int statusCode) => throw null; void Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; - public int StatusCode { get => throw null; set => throw null; } - public System.Type Type { get => throw null; set => throw null; } + public System.Type Type { get => throw null; set { } } + public int StatusCode { get => throw null; set { } } } - - public class RedirectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult + public class RedirectResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult, Microsoft.AspNetCore.Mvc.IActionResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public bool Permanent { get => throw null; set => throw null; } - public bool PreserveMethod { get => throw null; set => throw null; } public RedirectResult(string url) => throw null; public RedirectResult(string url, bool permanent) => throw null; public RedirectResult(string url, bool permanent, bool preserveMethod) => throw null; - public string Url { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public bool Permanent { get => throw null; set { } } + public bool PreserveMethod { get => throw null; set { } } + public string Url { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } } - - public class RedirectToActionResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult + public class RedirectToActionResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult, Microsoft.AspNetCore.Mvc.IActionResult { - public string ActionName { get => throw null; set => throw null; } - public string ControllerName { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string Fragment { get => throw null; set => throw null; } - public bool Permanent { get => throw null; set => throw null; } - public bool PreserveMethod { get => throw null; set => throw null; } public RedirectToActionResult(string actionName, string controllerName, object routeValues) => throw null; + public RedirectToActionResult(string actionName, string controllerName, object routeValues, string fragment) => throw null; public RedirectToActionResult(string actionName, string controllerName, object routeValues, bool permanent) => throw null; public RedirectToActionResult(string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod) => throw null; - public RedirectToActionResult(string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; public RedirectToActionResult(string actionName, string controllerName, object routeValues, bool permanent, string fragment) => throw null; - public RedirectToActionResult(string actionName, string controllerName, object routeValues, string fragment) => throw null; - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public RedirectToActionResult(string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string ActionName { get => throw null; set { } } + public string ControllerName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } + public bool Permanent { get => throw null; set { } } + public bool PreserveMethod { get => throw null; set { } } + public string Fragment { get => throw null; set { } } } - - public class RedirectToPageResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult + public class RedirectToPageResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult, Microsoft.AspNetCore.Mvc.IActionResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string Fragment { get => throw null; set => throw null; } - public string Host { get => throw null; set => throw null; } - public string PageHandler { get => throw null; set => throw null; } - public string PageName { get => throw null; set => throw null; } - public bool Permanent { get => throw null; set => throw null; } - public bool PreserveMethod { get => throw null; set => throw null; } - public string Protocol { get => throw null; set => throw null; } public RedirectToPageResult(string pageName) => throw null; - public RedirectToPageResult(string pageName, object routeValues) => throw null; public RedirectToPageResult(string pageName, string pageHandler) => throw null; + public RedirectToPageResult(string pageName, object routeValues) => throw null; public RedirectToPageResult(string pageName, string pageHandler, object routeValues) => throw null; public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent) => throw null; public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent, bool preserveMethod) => throw null; - public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; - public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent, string fragment) => throw null; public RedirectToPageResult(string pageName, string pageHandler, object routeValues, string fragment) => throw null; - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } - } - - public class RedirectToRouteResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult - { + public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent, string fragment) => throw null; + public RedirectToPageResult(string pageName, string pageHandler, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string Fragment { get => throw null; set => throw null; } - public bool Permanent { get => throw null; set => throw null; } - public bool PreserveMethod { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string PageName { get => throw null; set { } } + public string PageHandler { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } + public bool Permanent { get => throw null; set { } } + public bool PreserveMethod { get => throw null; set { } } + public string Fragment { get => throw null; set { } } + public string Protocol { get => throw null; set { } } + public string Host { get => throw null; set { } } + } + public class RedirectToRouteResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.ViewFeatures.IKeepTempDataResult, Microsoft.AspNetCore.Mvc.IActionResult + { public RedirectToRouteResult(object routeValues) => throw null; public RedirectToRouteResult(string routeName, object routeValues) => throw null; public RedirectToRouteResult(string routeName, object routeValues, bool permanent) => throw null; public RedirectToRouteResult(string routeName, object routeValues, bool permanent, bool preserveMethod) => throw null; - public RedirectToRouteResult(string routeName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; - public RedirectToRouteResult(string routeName, object routeValues, bool permanent, string fragment) => throw null; public RedirectToRouteResult(string routeName, object routeValues, string fragment) => throw null; - public string RouteName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set => throw null; } + public RedirectToRouteResult(string routeName, object routeValues, bool permanent, string fragment) => throw null; + public RedirectToRouteResult(string routeName, object routeValues, bool permanent, bool preserveMethod, string fragment) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public Microsoft.AspNetCore.Mvc.IUrlHelper UrlHelper { get => throw null; set { } } + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RouteValues { get => throw null; set { } } + public bool Permanent { get => throw null; set { } } + public bool PreserveMethod { get => throw null; set { } } + public string Fragment { get => throw null; set { } } } - public class RequestFormLimitsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public bool BufferBody { get => throw null; set => throw null; } - public System.Int64 BufferBodyLengthLimit { get => throw null; set => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; - public bool IsReusable { get => throw null; } - public int KeyLengthLimit { get => throw null; set => throw null; } - public int MemoryBufferThreshold { get => throw null; set => throw null; } - public System.Int64 MultipartBodyLengthLimit { get => throw null; set => throw null; } - public int MultipartBoundaryLengthLimit { get => throw null; set => throw null; } - public int MultipartHeadersCountLimit { get => throw null; set => throw null; } - public int MultipartHeadersLengthLimit { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } public RequestFormLimitsAttribute() => throw null; - public int ValueCountLimit { get => throw null; set => throw null; } - public int ValueLengthLimit { get => throw null; set => throw null; } - } - - public class RequestSizeLimitAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter - { + public int Order { get => throw null; set { } } + public bool IsReusable { get => throw null; } + public bool BufferBody { get => throw null; set { } } + public int MemoryBufferThreshold { get => throw null; set { } } + public long BufferBodyLengthLimit { get => throw null; set { } } + public int ValueCountLimit { get => throw null; set { } } + public int KeyLengthLimit { get => throw null; set { } } + public int ValueLengthLimit { get => throw null; set { } } + public int MultipartBoundaryLengthLimit { get => throw null; set { } } + public int MultipartHeadersCountLimit { get => throw null; set { } } + public int MultipartHeadersLengthLimit { get => throw null; set { } } + public long MultipartBodyLengthLimit { get => throw null; set { } } + } + public class RequestSizeLimitAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata + { + public RequestSizeLimitAttribute(long bytes) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public int Order { get => throw null; set { } } public bool IsReusable { get => throw null; } - System.Int64? Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata.MaxRequestBodySize { get => throw null; } - public int Order { get => throw null; set => throw null; } - public RequestSizeLimitAttribute(System.Int64 bytes) => throw null; + long? Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata.MaxRequestBodySize { get => throw null; } } - public class RequireHttpsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - protected virtual void HandleNonHttpsRequest(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext filterContext) => throw null; public virtual void OnAuthorization(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext filterContext) => throw null; - public int Order { get => throw null; set => throw null; } - public bool Permanent { get => throw null; set => throw null; } + protected virtual void HandleNonHttpsRequest(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext filterContext) => throw null; public RequireHttpsAttribute() => throw null; + public bool Permanent { get => throw null; set { } } + public int Order { get => throw null; set { } } } - public class ResponseCacheAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public string CacheProfileName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; - public int Duration { get => throw null; set => throw null; } public Microsoft.AspNetCore.Mvc.CacheProfile GetCacheProfile(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; - public bool IsReusable { get => throw null; } - public Microsoft.AspNetCore.Mvc.ResponseCacheLocation Location { get => throw null; set => throw null; } - public bool NoStore { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; public ResponseCacheAttribute() => throw null; - public string VaryByHeader { get => throw null; set => throw null; } - public string[] VaryByQueryKeys { get => throw null; set => throw null; } + public int Duration { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ResponseCacheLocation Location { get => throw null; set { } } + public bool NoStore { get => throw null; set { } } + public string VaryByHeader { get => throw null; set { } } + public string[] VaryByQueryKeys { get => throw null; set { } } + public string CacheProfileName { get => throw null; set { } } + public int Order { get => throw null; set { } } + public bool IsReusable { get => throw null; } } - - public enum ResponseCacheLocation : int + public enum ResponseCacheLocation { Any = 0, Client = 1, None = 2, } - public class RouteAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider { - public string Name { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } public RouteAttribute(string template) => throw null; public string Template { get => throw null; } + public int Order { get => throw null; set { } } + int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } + public string Name { get => throw null; set { } } } - - public class SerializableError : System.Collections.Generic.Dictionary + public sealed class SerializableError : System.Collections.Generic.Dictionary { public SerializableError() => throw null; public SerializableError(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; } - public class ServiceFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; - public bool IsReusable { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } public ServiceFilterAttribute(System.Type type) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public int Order { get => throw null; set { } } public System.Type ServiceType { get => throw null; } + public bool IsReusable { get => throw null; set { } } } - public class SignInResult : Microsoft.AspNetCore.Mvc.ActionResult { - public string AuthenticationScheme { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } public SignInResult(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public SignInResult(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public SignInResult(string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal) => throw null; + public SignInResult(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public SignInResult(string authenticationScheme, System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string AuthenticationScheme { get => throw null; set { } } + public System.Security.Claims.ClaimsPrincipal Principal { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } } - public class SignOutResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Http.IResult { - public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set => throw null; } - System.Threading.Tasks.Task Microsoft.AspNetCore.Http.IResult.ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set => throw null; } public SignOutResult() => throw null; public SignOutResult(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public SignOutResult(System.Collections.Generic.IList authenticationSchemes) => throw null; - public SignOutResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public SignOutResult(string authenticationScheme) => throw null; + public SignOutResult(System.Collections.Generic.IList authenticationSchemes) => throw null; public SignOutResult(string authenticationScheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public SignOutResult(System.Collections.Generic.IList authenticationSchemes, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + System.Threading.Tasks.Task Microsoft.AspNetCore.Http.IResult.ExecuteAsync(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; + public System.Collections.Generic.IList AuthenticationSchemes { get => throw null; set { } } + public Microsoft.AspNetCore.Authentication.AuthenticationProperties Properties { get => throw null; set { } } } - - public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class StatusCodeResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { + public StatusCodeResult(int statusCode) => throw null; public override void ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public int StatusCode { get => throw null; } int? Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult.StatusCode { get => throw null; } - public StatusCodeResult(int statusCode) => throw null; } - public class TypeFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public object[] Arguments { get => throw null; set => throw null; } + public TypeFilterAttribute(System.Type type) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public object[] Arguments { get => throw null; set { } } public System.Type ImplementationType { get => throw null; } - public bool IsReusable { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - public TypeFilterAttribute(System.Type type) => throw null; + public int Order { get => throw null; set { } } + public bool IsReusable { get => throw null; set { } } } - public class UnauthorizedObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { public UnauthorizedObjectResult(object value) : base(default(object)) => throw null; } - public class UnauthorizedResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public UnauthorizedResult() : base(default(int)) => throw null; } - public class UnprocessableEntityObjectResult : Microsoft.AspNetCore.Mvc.ObjectResult { public UnprocessableEntityObjectResult(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(object)) => throw null; public UnprocessableEntityObjectResult(object error) : base(default(object)) => throw null; } - public class UnprocessableEntityResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public UnprocessableEntityResult() : base(default(int)) => throw null; } - public class UnsupportedMediaTypeResult : Microsoft.AspNetCore.Mvc.StatusCodeResult { public UnsupportedMediaTypeResult() : base(default(int)) => throw null; } - - public static class UrlHelperExtensions + public static partial class UrlHelperExtensions { public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper) => throw null; public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action) => throw null; @@ -1094,375 +987,326 @@ public static class UrlHelperExtensions public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol) => throw null; public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host) => throw null; public static string Action(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host, string fragment) => throw null; - public static string ActionLink(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action = default(string), string controller = default(string), object values = default(object), string protocol = default(string), string host = default(string), string fragment = default(string)) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, object values) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol, string host) => throw null; - public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol, string host, string fragment) => throw null; - public static string PageLink(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName = default(string), string pageHandler = default(string), object values = default(object), string protocol = default(string), string host = default(string), string fragment = default(string)) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, object values) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol, string host) => throw null; public static string RouteUrl(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol, string host, string fragment) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, object values) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol, string host) => throw null; + public static string Page(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol, string host, string fragment) => throw null; + public static string ActionLink(this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string action, string controller, object values, string protocol, string host, string fragment) => throw null; + public static string PageLink(this Microsoft.AspNetCore.Mvc.IUrlHelper urlHelper, string pageName, string pageHandler, object values, string protocol, string host, string fragment) => throw null; } - public class ValidationProblemDetails : Microsoft.AspNetCore.Http.HttpValidationProblemDetails { - public System.Collections.Generic.IDictionary Errors { get => throw null; } public ValidationProblemDetails() => throw null; - public ValidationProblemDetails(System.Collections.Generic.IDictionary errors) => throw null; public ValidationProblemDetails(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; + public ValidationProblemDetails(System.Collections.Generic.IDictionary errors) => throw null; + public System.Collections.Generic.IDictionary Errors { get => throw null; } } - public class VirtualFileResult : Microsoft.AspNetCore.Mvc.FileResult { - public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public string FileName { get => throw null; set => throw null; } - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public VirtualFileResult(string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; public VirtualFileResult(string fileName, string contentType) : base(default(string)) => throw null; + public VirtualFileResult(string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) : base(default(string)) => throw null; + public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; + public string FileName { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } } - namespace ActionConstraints { public abstract class ActionMethodSelectorAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata { public bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context) => throw null; - protected ActionMethodSelectorAttribute() => throw null; public abstract bool IsValidForRequest(Microsoft.AspNetCore.Routing.RouteContext routeContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor action); - public int Order { get => throw null; set => throw null; } + protected ActionMethodSelectorAttribute() => throw null; + public int Order { get => throw null; set { } } } - public class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata { - public virtual bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context) => throw null; - public HttpMethodActionConstraint(System.Collections.Generic.IEnumerable httpMethods) => throw null; public static int HttpMethodConstraintOrder; + public HttpMethodActionConstraint(System.Collections.Generic.IEnumerable httpMethods) => throw null; + public virtual bool Accept(Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context) => throw null; public System.Collections.Generic.IEnumerable HttpMethods { get => throw null; } public int Order { get => throw null; } } - - internal interface IConsumesActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata - { - } - } namespace ApiExplorer { - public class ApiConventionNameMatchAttribute : System.Attribute + public sealed class ApiConventionNameMatchAttribute : System.Attribute { public ApiConventionNameMatchAttribute(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiConventionNameMatchBehavior matchBehavior) => throw null; public Microsoft.AspNetCore.Mvc.ApiExplorer.ApiConventionNameMatchBehavior MatchBehavior { get => throw null; } } - - public enum ApiConventionNameMatchBehavior : int + public enum ApiConventionNameMatchBehavior { Any = 0, Exact = 1, Prefix = 2, Suffix = 3, } - - public class ApiConventionResult + public sealed class ApiConventionResult { public ApiConventionResult(System.Collections.Generic.IReadOnlyList responseMetadataProviders) => throw null; public System.Collections.Generic.IReadOnlyList ResponseMetadataProviders { get => throw null; } } - - public class ApiConventionTypeMatchAttribute : System.Attribute + public sealed class ApiConventionTypeMatchAttribute : System.Attribute { public ApiConventionTypeMatchAttribute(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiConventionTypeMatchBehavior matchBehavior) => throw null; public Microsoft.AspNetCore.Mvc.ApiExplorer.ApiConventionTypeMatchBehavior MatchBehavior { get => throw null; } } - - public enum ApiConventionTypeMatchBehavior : int + public enum ApiConventionTypeMatchBehavior { Any = 0, AssignableFrom = 1, } - public interface IApiDefaultResponseMetadataProvider : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public interface IApiDescriptionGroupNameProvider { string GroupName { get; } } - public interface IApiDescriptionVisibilityProvider { bool IgnoreApi { get; } } - public interface IApiRequestFormatMetadataProvider { System.Collections.Generic.IReadOnlyList GetSupportedContentTypes(string contentType, System.Type objectType); } - public interface IApiRequestMetadataProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { void SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes); } - public interface IApiResponseMetadataProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { void SetContentTypes(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes); - int StatusCode { get; } System.Type Type { get; } + int StatusCode { get; } } - public interface IApiResponseTypeMetadataProvider { System.Collections.Generic.IReadOnlyList GetSupportedContentTypes(string contentType, System.Type objectType); } - } namespace ApplicationModels { - public class ActionModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel + public class ActionModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel { - public System.Reflection.MethodInfo ActionMethod { get => throw null; } - public ActionModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel other) => throw null; public ActionModel(System.Reflection.MethodInfo actionMethod, System.Collections.Generic.IReadOnlyList attributes) => throw null; - public string ActionName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set => throw null; } + public ActionModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel other) => throw null; + public System.Reflection.MethodInfo ActionMethod { get => throw null; } + public string ActionName { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set { } } public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel Controller { get => throw null; set => throw null; } - public string DisplayName { get => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel Controller { get => throw null; set { } } public System.Collections.Generic.IList Filters { get => throw null; } - System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } - string Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.Name { get => throw null; } public System.Collections.Generic.IList Parameters { get => throw null; } - public System.Collections.Generic.IDictionary Properties { get => throw null; } - public Microsoft.AspNetCore.Routing.IOutboundParameterTransformer RouteParameterTransformer { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Routing.IOutboundParameterTransformer RouteParameterTransformer { get => throw null; set { } } public System.Collections.Generic.IDictionary RouteValues { get => throw null; } + public System.Collections.Generic.IDictionary Properties { get => throw null; } + System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } + string Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.Name { get => throw null; } public System.Collections.Generic.IList Selectors { get => throw null; } + public string DisplayName { get => throw null; } } - public class ApiConventionApplicationModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention { public ApiConventionApplicationModelConvention(Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute defaultErrorResponseType) => throw null; public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - public Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute DefaultErrorResponseType { get => throw null; } protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public Microsoft.AspNetCore.Mvc.ProducesErrorResponseTypeAttribute DefaultErrorResponseType { get => throw null; } } - public class ApiExplorerModel { public ApiExplorerModel() => throw null; public ApiExplorerModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel other) => throw null; - public string GroupName { get => throw null; set => throw null; } - public bool? IsVisible { get => throw null; set => throw null; } + public bool? IsVisible { get => throw null; set { } } + public string GroupName { get => throw null; set { } } } - public class ApiVisibilityConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention { - public ApiVisibilityConvention() => throw null; public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public ApiVisibilityConvention() => throw null; } - - public class ApplicationModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel + public class ApplicationModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel { - public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set => throw null; } public ApplicationModel() => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set { } } public System.Collections.Generic.IList Controllers { get => throw null; } public System.Collections.Generic.IList Filters { get => throw null; } public System.Collections.Generic.IDictionary Properties { get => throw null; } } - public class ApplicationModelProviderContext { public ApplicationModelProviderContext(System.Collections.Generic.IEnumerable controllerTypes) => throw null; public System.Collections.Generic.IEnumerable ControllerTypes { get => throw null; } public Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel Result { get => throw null; } } - public class AttributeRouteModel { - public Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider Attribute { get => throw null; } public AttributeRouteModel() => throw null; - public AttributeRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel other) => throw null; public AttributeRouteModel(Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider templateProvider) => throw null; + public AttributeRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel other) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel CombineAttributeRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel left, Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel right) => throw null; public static string CombineTemplates(string prefix, string template) => throw null; - public bool IsAbsoluteTemplate { get => throw null; } public static bool IsOverridePattern(string template) => throw null; - public string Name { get => throw null; set => throw null; } - public int? Order { get => throw null; set => throw null; } public static string ReplaceTokens(string template, System.Collections.Generic.IDictionary values) => throw null; public static string ReplaceTokens(string template, System.Collections.Generic.IDictionary values, Microsoft.AspNetCore.Routing.IOutboundParameterTransformer routeTokenTransformer) => throw null; - public bool SuppressLinkGeneration { get => throw null; set => throw null; } - public bool SuppressPathMatching { get => throw null; set => throw null; } - public string Template { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider Attribute { get => throw null; } + public string Template { get => throw null; set { } } + public int? Order { get => throw null; set { } } + public string Name { get => throw null; set { } } + public bool SuppressLinkGeneration { get => throw null; set { } } + public bool SuppressPathMatching { get => throw null; set { } } + public bool IsAbsoluteTemplate { get => throw null; } } - public class ClientErrorResultFilterConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention { public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - public ClientErrorResultFilterConvention() => throw null; protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public ClientErrorResultFilterConvention() => throw null; } - public class ConsumesConstraintForFormFileParameterConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention { public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - public ConsumesConstraintForFormFileParameterConvention() => throw null; protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public ConsumesConstraintForFormFileParameterConvention() => throw null; } - - public class ControllerModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel + public class ControllerModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IFilterModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IApiExplorerModel { + public ControllerModel(System.Reflection.TypeInfo controllerType, System.Collections.Generic.IReadOnlyList attributes) => throw null; + public ControllerModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel other) => throw null; public System.Collections.Generic.IList Actions { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel Application { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel Application { get => throw null; set { } } public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public ControllerModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel other) => throw null; - public ControllerModel(System.Reflection.TypeInfo controllerType, System.Collections.Generic.IReadOnlyList attributes) => throw null; - public string ControllerName { get => throw null; set => throw null; } - public System.Collections.Generic.IList ControllerProperties { get => throw null; } - public System.Reflection.TypeInfo ControllerType { get => throw null; } - public string DisplayName { get => throw null; } - public System.Collections.Generic.IList Filters { get => throw null; } System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } string Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.Name { get => throw null; } - public System.Collections.Generic.IDictionary Properties { get => throw null; } + public string ControllerName { get => throw null; set { } } + public System.Reflection.TypeInfo ControllerType { get => throw null; } + public System.Collections.Generic.IList ControllerProperties { get => throw null; } + public System.Collections.Generic.IList Filters { get => throw null; } public System.Collections.Generic.IDictionary RouteValues { get => throw null; } + public System.Collections.Generic.IDictionary Properties { get => throw null; } public System.Collections.Generic.IList Selectors { get => throw null; } + public string DisplayName { get => throw null; } } - public interface IActionModelConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action); } - public interface IApiExplorerModel { Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel ApiExplorer { get; set; } } - public interface IApplicationModelConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel application); } - public interface IApplicationModelProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModelProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModelProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModelProviderContext context); int Order { get; } } - public interface IBindingModel { Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get; set; } } - public interface ICommonModel : Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel { System.Collections.Generic.IReadOnlyList Attributes { get; } System.Reflection.MemberInfo MemberInfo { get; } string Name { get; } } - public interface IControllerModelConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel controller); } - public interface IFilterModel { System.Collections.Generic.IList Filters { get; } } - + public class InferParameterBindingInfoConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention + { + public InferParameterBindingInfoConvention(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; + public InferParameterBindingInfoConvention(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.Extensions.DependencyInjection.IServiceProviderIsService serviceProviderIsService) => throw null; + protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + } + public class InvalidModelStateFilterConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention + { + public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; + public InvalidModelStateFilterConvention() => throw null; + } public interface IParameterModelBaseConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase parameter); } - public interface IParameterModelConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModel parameter); } - public interface IPropertyModel { System.Collections.Generic.IDictionary Properties { get; } } - - public class InferParameterBindingInfoConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention - { - public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - public InferParameterBindingInfoConvention(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; - public InferParameterBindingInfoConvention(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.Extensions.DependencyInjection.IServiceProviderIsService serviceProviderIsService) => throw null; - protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - } - - public class InvalidModelStateFilterConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention - { - public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - public InvalidModelStateFilterConvention() => throw null; - protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; - } - public class ParameterModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel { - public Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel Action { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public string DisplayName { get => throw null; } - System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } - public System.Reflection.ParameterInfo ParameterInfo { get => throw null; } public ParameterModel(System.Reflection.ParameterInfo parameterInfo, System.Collections.Generic.IReadOnlyList attributes) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; public ParameterModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; - public string ParameterName { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel Action { get => throw null; set { } } public System.Collections.Generic.IDictionary Properties { get => throw null; } + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } + System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } + public System.Reflection.ParameterInfo ParameterInfo { get => throw null; } + public string ParameterName { get => throw null; set { } } + public string DisplayName { get => throw null; } } - public abstract class ParameterModelBase : Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel { - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - protected ParameterModelBase(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase other) => throw null; protected ParameterModelBase(System.Type parameterType, System.Collections.Generic.IReadOnlyList attributes) => throw null; - public System.Type ParameterType { get => throw null; } + protected ParameterModelBase(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase other) => throw null; + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public System.Collections.Generic.IDictionary Properties { get => throw null; } + public System.Type ParameterType { get => throw null; } + public string Name { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set { } } } - - public class PropertyModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel + public class PropertyModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel { - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel Controller { get => throw null; set => throw null; } + public PropertyModel(System.Reflection.PropertyInfo propertyInfo, System.Collections.Generic.IReadOnlyList attributes) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public PropertyModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel Controller { get => throw null; set { } } System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } public System.Collections.Generic.IDictionary Properties { get => throw null; } + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public System.Reflection.PropertyInfo PropertyInfo { get => throw null; } - public PropertyModel(System.Reflection.PropertyInfo propertyInfo, System.Collections.Generic.IReadOnlyList attributes) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; - public PropertyModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; - public string PropertyName { get => throw null; set => throw null; } + public string PropertyName { get => throw null; set { } } } - public class RouteTokenTransformerConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention { - public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; public RouteTokenTransformerConvention(Microsoft.AspNetCore.Routing.IOutboundParameterTransformer parameterTransformer) => throw null; + public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel action) => throw null; } - public class SelectorModel - { - public System.Collections.Generic.IList ActionConstraints { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel AttributeRouteModel { get => throw null; set => throw null; } - public System.Collections.Generic.IList EndpointMetadata { get => throw null; } + { public SelectorModel() => throw null; public SelectorModel(Microsoft.AspNetCore.Mvc.ApplicationModels.SelectorModel other) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.AttributeRouteModel AttributeRouteModel { get => throw null; set { } } + public System.Collections.Generic.IList ActionConstraints { get => throw null; } + public System.Collections.Generic.IList EndpointMetadata { get => throw null; } } - } namespace ApplicationParts { @@ -1471,83 +1315,70 @@ public abstract class ApplicationPart protected ApplicationPart() => throw null; public abstract string Name { get; } } - - public class ApplicationPartAttribute : System.Attribute + public sealed class ApplicationPartAttribute : System.Attribute { public ApplicationPartAttribute(string assemblyName) => throw null; public string AssemblyName { get => throw null; } } - public abstract class ApplicationPartFactory { - protected ApplicationPartFactory() => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory GetApplicationPartFactory(System.Reflection.Assembly assembly) => throw null; public abstract System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly); + public static Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory GetApplicationPartFactory(System.Reflection.Assembly assembly) => throw null; + protected ApplicationPartFactory() => throw null; } - public class ApplicationPartManager { + public void PopulateFeature(TFeature feature) => throw null; public ApplicationPartManager() => throw null; - public System.Collections.Generic.IList ApplicationParts { get => throw null; } public System.Collections.Generic.IList FeatureProviders { get => throw null; } - public void PopulateFeature(TFeature feature) => throw null; + public System.Collections.Generic.IList ApplicationParts { get => throw null; } } - public class AssemblyPart : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationPartTypeProvider { - public System.Reflection.Assembly Assembly { get => throw null; } public AssemblyPart(System.Reflection.Assembly assembly) => throw null; + public System.Reflection.Assembly Assembly { get => throw null; } public override string Name { get => throw null; } public System.Collections.Generic.IEnumerable Types { get => throw null; } } - public class DefaultApplicationPartFactory : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory { - public DefaultApplicationPartFactory() => throw null; - public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; public static System.Collections.Generic.IEnumerable GetDefaultApplicationParts(System.Reflection.Assembly assembly) => throw null; + public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; + public DefaultApplicationPartFactory() => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationParts.DefaultApplicationPartFactory Instance { get => throw null; } } - public interface IApplicationFeatureProvider { } - public interface IApplicationFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider { void PopulateFeature(System.Collections.Generic.IEnumerable parts, TFeature feature); } - public interface IApplicationPartTypeProvider { System.Collections.Generic.IEnumerable Types { get; } } - public interface ICompilationReferencesProvider { System.Collections.Generic.IEnumerable GetReferencePaths(); } - public class NullApplicationPartFactory : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory { public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; public NullApplicationPartFactory() => throw null; } - - public class ProvideApplicationPartFactoryAttribute : System.Attribute + public sealed class ProvideApplicationPartFactoryAttribute : System.Attribute { - public System.Type GetFactoryType() => throw null; public ProvideApplicationPartFactoryAttribute(System.Type factoryType) => throw null; public ProvideApplicationPartFactoryAttribute(string factoryTypeName) => throw null; + public System.Type GetFactoryType() => throw null; } - - public class RelatedAssemblyAttribute : System.Attribute + public sealed class RelatedAssemblyAttribute : System.Attribute { - public string AssemblyFileName { get => throw null; } - public static System.Collections.Generic.IReadOnlyList GetRelatedAssemblies(System.Reflection.Assembly assembly, bool throwOnError) => throw null; public RelatedAssemblyAttribute(string assemblyFileName) => throw null; + public static System.Collections.Generic.IReadOnlyList GetRelatedAssemblies(System.Reflection.Assembly assembly, bool throwOnError) => throw null; + public string AssemblyFileName { get => throw null; } } - } namespace Authorization { @@ -1555,109 +1386,90 @@ public class AllowAnonymousFilter : Microsoft.AspNetCore.Mvc.Authorization.IAllo { public AllowAnonymousFilter() => throw null; } - - public class AuthorizeFilter : Microsoft.AspNetCore.Mvc.Filters.IAsyncAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata + public class AuthorizeFilter : Microsoft.AspNetCore.Mvc.Filters.IAsyncAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory { - public System.Collections.Generic.IEnumerable AuthorizeData { get => throw null; } public AuthorizeFilter() => throw null; public AuthorizeFilter(Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) => throw null; public AuthorizeFilter(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable authorizeData) => throw null; public AuthorizeFilter(System.Collections.Generic.IEnumerable authorizeData) => throw null; public AuthorizeFilter(string policy) => throw null; - Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider serviceProvider) => throw null; - bool Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.IsReusable { get => throw null; } public virtual System.Threading.Tasks.Task OnAuthorizationAsync(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext context) => throw null; - public Microsoft.AspNetCore.Authorization.AuthorizationPolicy Policy { get => throw null; } + Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.CreateInstance(System.IServiceProvider serviceProvider) => throw null; public Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider PolicyProvider { get => throw null; } + public System.Collections.Generic.IEnumerable AuthorizeData { get => throw null; } + public Microsoft.AspNetCore.Authorization.AuthorizationPolicy Policy { get => throw null; } + bool Microsoft.AspNetCore.Mvc.Filters.IFilterFactory.IsReusable { get => throw null; } } - } namespace Controllers { public class ControllerActionDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor { - public virtual string ActionName { get => throw null; set => throw null; } public ControllerActionDescriptor() => throw null; - public string ControllerName { get => throw null; set => throw null; } - public System.Reflection.TypeInfo ControllerTypeInfo { get => throw null; set => throw null; } - public override string DisplayName { get => throw null; set => throw null; } - public System.Reflection.MethodInfo MethodInfo { get => throw null; set => throw null; } + public string ControllerName { get => throw null; set { } } + public virtual string ActionName { get => throw null; set { } } + public System.Reflection.MethodInfo MethodInfo { get => throw null; set { } } + public System.Reflection.TypeInfo ControllerTypeInfo { get => throw null; set { } } + public override string DisplayName { get => throw null; set { } } } - public class ControllerActivatorProvider : Microsoft.AspNetCore.Mvc.Controllers.IControllerActivatorProvider { public ControllerActivatorProvider(Microsoft.AspNetCore.Mvc.Controllers.IControllerActivator controllerActivator) => throw null; public System.Func CreateActivator(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; - public System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; public System.Action CreateReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; + public System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; } - public class ControllerBoundPropertyDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.Infrastructure.IPropertyInfoParameterDescriptor { public ControllerBoundPropertyDescriptor() => throw null; - public System.Reflection.PropertyInfo PropertyInfo { get => throw null; set => throw null; } + public System.Reflection.PropertyInfo PropertyInfo { get => throw null; set { } } } - public class ControllerFeature { public ControllerFeature() => throw null; public System.Collections.Generic.IList Controllers { get => throw null; } } - - public class ControllerFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider + public class ControllerFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider { - public ControllerFeatureProvider() => throw null; - protected virtual bool IsController(System.Reflection.TypeInfo typeInfo) => throw null; public void PopulateFeature(System.Collections.Generic.IEnumerable parts, Microsoft.AspNetCore.Mvc.Controllers.ControllerFeature feature) => throw null; + protected virtual bool IsController(System.Reflection.TypeInfo typeInfo) => throw null; + public ControllerFeatureProvider() => throw null; } - public class ControllerParameterDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.Infrastructure.IParameterInfoParameterDescriptor { public ControllerParameterDescriptor() => throw null; - public System.Reflection.ParameterInfo ParameterInfo { get => throw null; set => throw null; } + public System.Reflection.ParameterInfo ParameterInfo { get => throw null; set { } } } - public interface IControllerActivator { object Create(Microsoft.AspNetCore.Mvc.ControllerContext context); void Release(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller); - System.Threading.Tasks.ValueTask ReleaseAsync(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller) => throw null; + virtual System.Threading.Tasks.ValueTask ReleaseAsync(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller) => throw null; } - public interface IControllerActivatorProvider { System.Func CreateActivator(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor); - System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; System.Action CreateReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor); + virtual System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; } - public interface IControllerFactory { object CreateController(Microsoft.AspNetCore.Mvc.ControllerContext context); void ReleaseController(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller); - System.Threading.Tasks.ValueTask ReleaseControllerAsync(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller) => throw null; + virtual System.Threading.Tasks.ValueTask ReleaseControllerAsync(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller) => throw null; } - public interface IControllerFactoryProvider { - System.Func CreateAsyncControllerReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; System.Func CreateControllerFactory(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor); System.Action CreateControllerReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor); + virtual System.Func CreateAsyncControllerReleaser(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor) => throw null; } - - internal interface IControllerPropertyActivator - { - void Activate(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller); - System.Action GetActivatorDelegate(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor actionDescriptor); - } - public class ServiceBasedControllerActivator : Microsoft.AspNetCore.Mvc.Controllers.IControllerActivator { public object Create(Microsoft.AspNetCore.Mvc.ControllerContext actionContext) => throw null; public virtual void Release(Microsoft.AspNetCore.Mvc.ControllerContext context, object controller) => throw null; public ServiceBasedControllerActivator() => throw null; } - } namespace Core { @@ -1666,395 +1478,357 @@ namespace Infrastructure public interface IAntiforgeryValidationFailedResult : Microsoft.AspNetCore.Mvc.IActionResult { } - } } namespace Diagnostics { - public class AfterActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public abstract class EventData : System.Collections.Generic.IReadOnlyList>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection> { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } - protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + protected static string EventNamespace; + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + protected EventData() => throw null; + protected abstract int Count { get; } + protected abstract System.Collections.Generic.KeyValuePair this[int index] { get; } + int System.Collections.Generic.IReadOnlyCollection>.Count { get => throw null; } + System.Collections.Generic.KeyValuePair System.Collections.Generic.IReadOnlyList>.this[int index] { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public bool MoveNext() => throw null; + public void Dispose() => throw null; + void System.Collections.IEnumerator.Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - - public class AfterActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { get => throw null; } - public AfterActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { get => throw null; } - public AfterActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeAuthorizationFilterOnAuthorizationEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { get => throw null; } - public AfterActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext AuthorizationContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } - protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - } - - public class AfterActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public AfterActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } } - - public class AfterAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; public AfterAuthorizationFilterOnAuthorizationEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext AuthorizationContext { get => throw null; } - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public AfterControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, object controller, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; - public System.Collections.Generic.IReadOnlyDictionary Arguments { get => throw null; } - public object Controller { get => throw null; } + public static string EventName; + public BeforeResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } } - - public class AfterExceptionFilterOnExceptionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterExceptionFilterOnExceptionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeResourceFilterOnResourceExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } } - - public class AfterResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; public AfterResourceFilterOnResourceExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } } - - public class AfterResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } } - - public class AfterResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterResultFilterOnResultExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } } - - public class AfterResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeExceptionFilterOnException : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeExceptionFilterOnException(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } } - - public class AfterResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterExceptionFilterOnExceptionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterExceptionFilterOnExceptionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } } - - public class BeforeActionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeActionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } } - - public class BeforeActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { get => throw null; } - public BeforeActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { get => throw null; } - public BeforeActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeActionFilterOnActionExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterActionFilterOnActionExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterActionFilterOnActionExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext ActionExecutingContext { get => throw null; } - public BeforeActionFilterOnActionExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext actionExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public BeforeActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; + public static string EventName; + public BeforeActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } } - - public class BeforeAuthorizationFilterOnAuthorizationEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterActionFilterOnActionExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterActionFilterOnActionExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext actionExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext AuthorizationContext { get => throw null; } - public BeforeAuthorizationFilterOnAuthorizationEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext authorizationContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext ActionExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary actionArguments, object controller) => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } public System.Collections.Generic.IReadOnlyDictionary ActionArguments { get => throw null; } + public object Controller { get => throw null; } + protected override sealed int Count { get => throw null; } + protected override sealed System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } + } + public sealed class AfterControllerActionMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public static string EventName; + public AfterControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, object controller, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public BeforeControllerActionMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary actionArguments, object controller) => throw null; + public System.Collections.Generic.IReadOnlyDictionary Arguments { get => throw null; } public object Controller { get => throw null; } + public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeExceptionFilterOnException : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeExceptionFilterOnException(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ExceptionContext exceptionContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.ExceptionContext ExceptionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeResourceFilterOnResourceExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeResourceFilterOnResourceExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext resourceExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext ResourceExecutedContext { get => throw null; } } - - public class BeforeResourceFilterOnResourceExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeResourceFilterOnResourceExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } } - - public class BeforeResourceFilterOnResourceExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeResourceFilterOnResourceExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext resourceExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext ResourceExecutingContext { get => throw null; } } - - public class BeforeResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; public BeforeResultFilterOnResultExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } } - - public class BeforeResultFilterOnResultExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterResultFilterOnResultExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterResultFilterOnResultExecutedEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext resultExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeResultFilterOnResultExecutingEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext ResultExecutedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } } - - public class BeforeResultFilterOnResultExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeResultFilterOnResultExecutionEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext resultExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public static string EventName; + public BeforeActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Filter { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext ResultExecutingContext { get => throw null; } } - - public abstract class EventData : System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyList>, System.Collections.IEnumerable + public sealed class AfterActionResultEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public bool MoveNext() => throw null; - void System.Collections.IEnumerator.Reset() => throw null; - } - - - protected abstract int Count { get; } - int System.Collections.Generic.IReadOnlyCollection>.Count { get => throw null; } - protected EventData() => throw null; - protected const string EventNamespace = default; - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - protected abstract System.Collections.Generic.KeyValuePair this[int index] { get; } - System.Collections.Generic.KeyValuePair System.Collections.Generic.IReadOnlyList>.this[int index] { get => throw null; } + public static string EventName; + public AfterActionResultEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } + protected override int Count { get => throw null; } + protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - } namespace Filters { - public abstract class ActionFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter + public abstract class ActionFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - protected ActionFilterAttribute() => throw null; - public virtual void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; public virtual void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context) => throw null; + public virtual void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; public virtual System.Threading.Tasks.Task OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next) => throw null; - public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; public virtual void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context) => throw null; + public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; public virtual System.Threading.Tasks.Task OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate next) => throw null; - public int Order { get => throw null; set => throw null; } + protected ActionFilterAttribute() => throw null; + public int Order { get => throw null; set { } } } - - public abstract class ExceptionFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IAsyncExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter + public abstract class ExceptionFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IAsyncExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - protected ExceptionFilterAttribute() => throw null; - public virtual void OnException(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context) => throw null; public virtual System.Threading.Tasks.Task OnExceptionAsync(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context) => throw null; - public int Order { get => throw null; set => throw null; } + public virtual void OnException(Microsoft.AspNetCore.Mvc.Filters.ExceptionContext context) => throw null; + protected ExceptionFilterAttribute() => throw null; + public int Order { get => throw null; set { } } } - public class FilterCollection : System.Collections.ObjectModel.Collection { - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(System.Type filterType) => throw null; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(System.Type filterType, int order) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add() where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(System.Type filterType) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(int order) where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService(System.Type filterType) => throw null; - public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService(System.Type filterType, int order) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata Add(System.Type filterType, int order) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService() where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService(System.Type filterType) => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService(int order) where TFilterType : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata => throw null; + public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata AddService(System.Type filterType, int order) => throw null; public FilterCollection() => throw null; } - public static class FilterScope { - public static int Action; - public static int Controller; public static int First; public static int Global; + public static int Controller; + public static int Action; public static int Last; } - - public abstract class ResultFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.Filters.IResultFilter + public abstract class ResultFilterAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IResultFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IAsyncResultFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; public virtual void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context) => throw null; + public virtual void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; public virtual System.Threading.Tasks.Task OnResultExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ResultExecutionDelegate next) => throw null; - public int Order { get => throw null; set => throw null; } protected ResultFilterAttribute() => throw null; + public int Order { get => throw null; set { } } } - } namespace Formatters { @@ -2062,733 +1836,627 @@ public class FormatFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Mi { public FormatFilter(Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public virtual string GetFormat(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) => throw null; public void OnResourceExecuting(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext context) => throw null; - public void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; + public void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) => throw null; public void OnResultExecuting(Microsoft.AspNetCore.Mvc.Filters.ResultExecutingContext context) => throw null; + public void OnResultExecuted(Microsoft.AspNetCore.Mvc.Filters.ResultExecutedContext context) => throw null; } - public class FormatterMappings { + public void SetMediaTypeMappingForFormat(string format, string contentType) => throw null; + public void SetMediaTypeMappingForFormat(string format, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; + public string GetMediaTypeMappingForFormat(string format) => throw null; public bool ClearMediaTypeMappingForFormat(string format) => throw null; public FormatterMappings() => throw null; - public string GetMediaTypeMappingForFormat(string format) => throw null; - public void SetMediaTypeMappingForFormat(string format, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; - public void SetMediaTypeMappingForFormat(string format, string contentType) => throw null; } - public class HttpNoContentOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter { public bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; - public HttpNoContentOutputFormatter() => throw null; - public bool TreatNullValueAsNoContent { get => throw null; set => throw null; } public System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; + public HttpNoContentOutputFormatter() => throw null; + public bool TreatNullValueAsNoContent { get => throw null; set { } } } - - internal interface IFormatFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata - { - string GetFormat(Microsoft.AspNetCore.Mvc.ActionContext context); - } - - public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter + public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider { + protected virtual object GetDefaultValueForType(System.Type modelType) => throw null; public virtual bool CanRead(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context) => throw null; protected virtual bool CanReadType(System.Type type) => throw null; - protected virtual object GetDefaultValueForType(System.Type modelType) => throw null; - public virtual System.Collections.Generic.IReadOnlyList GetSupportedContentTypes(string contentType, System.Type objectType) => throw null; - protected InputFormatter() => throw null; public virtual System.Threading.Tasks.Task ReadAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context) => throw null; public abstract System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context); + public virtual System.Collections.Generic.IReadOnlyList GetSupportedContentTypes(string contentType, System.Type objectType) => throw null; + protected InputFormatter() => throw null; public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection SupportedMediaTypes { get => throw null; } } - public struct MediaType { - public Microsoft.Extensions.Primitives.StringSegment Charset { get => throw null; } - public static Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality(string mediaType, int start) => throw null; - public System.Text.Encoding Encoding { get => throw null; } - public static System.Text.Encoding GetEncoding(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; - public static System.Text.Encoding GetEncoding(string mediaType) => throw null; - public Microsoft.Extensions.Primitives.StringSegment GetParameter(Microsoft.Extensions.Primitives.StringSegment parameterName) => throw null; - public Microsoft.Extensions.Primitives.StringSegment GetParameter(string parameterName) => throw null; - public bool HasWildcard { get => throw null; } - public bool IsSubsetOf(Microsoft.AspNetCore.Mvc.Formatters.MediaType set) => throw null; - public bool MatchesAllSubTypes { get => throw null; } - public bool MatchesAllSubTypesWithoutSuffix { get => throw null; } - public bool MatchesAllTypes { get => throw null; } - // Stub generator skipped constructor - public MediaType(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; public MediaType(string mediaType) => throw null; + public MediaType(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; public MediaType(string mediaType, int offset, int? length) => throw null; - public static string ReplaceEncoding(Microsoft.Extensions.Primitives.StringSegment mediaType, System.Text.Encoding encoding) => throw null; + public bool IsSubsetOf(Microsoft.AspNetCore.Mvc.Formatters.MediaType set) => throw null; + public Microsoft.Extensions.Primitives.StringSegment GetParameter(string parameterName) => throw null; + public Microsoft.Extensions.Primitives.StringSegment GetParameter(Microsoft.Extensions.Primitives.StringSegment parameterName) => throw null; public static string ReplaceEncoding(string mediaType, System.Text.Encoding encoding) => throw null; + public static string ReplaceEncoding(Microsoft.Extensions.Primitives.StringSegment mediaType, System.Text.Encoding encoding) => throw null; + public static System.Text.Encoding GetEncoding(string mediaType) => throw null; + public static System.Text.Encoding GetEncoding(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; + public static Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality CreateMediaTypeSegmentWithQuality(string mediaType, int start) => throw null; + public Microsoft.Extensions.Primitives.StringSegment Type { get => throw null; } + public bool MatchesAllTypes { get => throw null; } public Microsoft.Extensions.Primitives.StringSegment SubType { get => throw null; } - public Microsoft.Extensions.Primitives.StringSegment SubTypeSuffix { get => throw null; } public Microsoft.Extensions.Primitives.StringSegment SubTypeWithoutSuffix { get => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Type { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment SubTypeSuffix { get => throw null; } + public bool MatchesAllSubTypes { get => throw null; } + public bool MatchesAllSubTypesWithoutSuffix { get => throw null; } + public System.Text.Encoding Encoding { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Charset { get => throw null; } + public bool HasWildcard { get => throw null; } } - public class MediaTypeCollection : System.Collections.ObjectModel.Collection { public void Add(Microsoft.Net.Http.Headers.MediaTypeHeaderValue item) => throw null; public void Insert(int index, Microsoft.Net.Http.Headers.MediaTypeHeaderValue item) => throw null; - public MediaTypeCollection() => throw null; public bool Remove(Microsoft.Net.Http.Headers.MediaTypeHeaderValue item) => throw null; + public MediaTypeCollection() => throw null; } - public struct MediaTypeSegmentWithQuality { - public Microsoft.Extensions.Primitives.StringSegment MediaType { get => throw null; } - // Stub generator skipped constructor public MediaTypeSegmentWithQuality(Microsoft.Extensions.Primitives.StringSegment mediaType, double quality) => throw null; - public double Quality { get => throw null; } public override string ToString() => throw null; + public Microsoft.Extensions.Primitives.StringSegment MediaType { get => throw null; } + public double Quality { get => throw null; } } - - public abstract class OutputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter + public abstract class OutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider { - public virtual bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; protected virtual bool CanWriteType(System.Type type) => throw null; public virtual System.Collections.Generic.IReadOnlyList GetSupportedContentTypes(string contentType, System.Type objectType) => throw null; - protected OutputFormatter() => throw null; - public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection SupportedMediaTypes { get => throw null; } + public virtual bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; public virtual System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; - public abstract System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context); public virtual void WriteResponseHeaders(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; + public abstract System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context); + protected OutputFormatter() => throw null; + public Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection SupportedMediaTypes { get => throw null; } } - public class StreamOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter { public bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; - public StreamOutputFormatter() => throw null; public System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; + public StreamOutputFormatter() => throw null; } - public class StringOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter { - public override bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; public StringOutputFormatter() => throw null; + public override bool CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context) => throw null; public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding encoding) => throw null; } - public class SystemTextJsonInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy { - Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy.ExceptionPolicy { get => throw null; } - public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; - public System.Text.Json.JsonSerializerOptions SerializerOptions { get => throw null; } public SystemTextJsonInputFormatter(Microsoft.AspNetCore.Mvc.JsonOptions options, Microsoft.Extensions.Logging.ILogger logger) => throw null; + public override sealed System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; + public System.Text.Json.JsonSerializerOptions SerializerOptions { get => throw null; } + Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy.ExceptionPolicy { get => throw null; } } - public class SystemTextJsonOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter { - public System.Text.Json.JsonSerializerOptions SerializerOptions { get => throw null; } public SystemTextJsonOutputFormatter(System.Text.Json.JsonSerializerOptions jsonSerializerOptions) => throw null; - public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; + public override sealed System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; + public System.Text.Json.JsonSerializerOptions SerializerOptions { get => throw null; } } - public abstract class TextInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.InputFormatter { + protected static System.Text.Encoding UTF8EncodingWithoutBOM; + protected static System.Text.Encoding UTF16EncodingLittleEndian; public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context) => throw null; public abstract System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding); protected System.Text.Encoding SelectCharacterEncoding(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context) => throw null; - public System.Collections.Generic.IList SupportedEncodings { get => throw null; } protected TextInputFormatter() => throw null; - protected static System.Text.Encoding UTF16EncodingLittleEndian; - protected static System.Text.Encoding UTF8EncodingWithoutBOM; + public System.Collections.Generic.IList SupportedEncodings { get => throw null; } } - public abstract class TextOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatter { - public virtual System.Text.Encoding SelectCharacterEncoding(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; - public System.Collections.Generic.IList SupportedEncodings { get => throw null; } protected TextOutputFormatter() => throw null; + public virtual System.Text.Encoding SelectCharacterEncoding(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; public override System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; - public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; + public override sealed System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context) => throw null; public abstract System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding); + public System.Collections.Generic.IList SupportedEncodings { get => throw null; } } - } namespace Infrastructure { public class ActionContextAccessor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionContextAccessor { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set => throw null; } public ActionContextAccessor() => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set { } } } - public class ActionDescriptorCollection { public ActionDescriptorCollection(System.Collections.Generic.IReadOnlyList items, int version) => throw null; public System.Collections.Generic.IReadOnlyList Items { get => throw null; } public int Version { get => throw null; } } - public abstract class ActionDescriptorCollectionProvider : Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider { + public abstract Microsoft.Extensions.Primitives.IChangeToken GetChangeToken(); protected ActionDescriptorCollectionProvider() => throw null; public abstract Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection ActionDescriptors { get; } - public abstract Microsoft.Extensions.Primitives.IChangeToken GetChangeToken(); } - - public class ActionResultObjectValueAttribute : System.Attribute + public sealed class ActionResultObjectValueAttribute : System.Attribute { public ActionResultObjectValueAttribute() => throw null; } - - public class ActionResultStatusCodeAttribute : System.Attribute + public sealed class ActionResultStatusCodeAttribute : System.Attribute { public ActionResultStatusCodeAttribute() => throw null; } - public class AmbiguousActionException : System.InvalidOperationException { - protected AmbiguousActionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public AmbiguousActionException(string message) => throw null; + protected AmbiguousActionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; } - public class CompatibilitySwitch : Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch where TValue : struct { public CompatibilitySwitch(string name) => throw null; public CompatibilitySwitch(string name, TValue initialValue) => throw null; public bool IsValueSet { get => throw null; } public string Name { get => throw null; } - public TValue Value { get => throw null; set => throw null; } - object Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch.Value { get => throw null; set => throw null; } + public TValue Value { get => throw null; set { } } + object Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch.Value { get => throw null; set { } } } - public abstract class ConfigureCompatibilityOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class, System.Collections.Generic.IEnumerable { protected ConfigureCompatibilityOptions(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions compatibilityOptions) => throw null; - protected abstract System.Collections.Generic.IReadOnlyDictionary DefaultValues { get; } public virtual void PostConfigure(string name, TOptions options) => throw null; + protected abstract System.Collections.Generic.IReadOnlyDictionary DefaultValues { get; } protected Microsoft.AspNetCore.Mvc.CompatibilityVersion Version { get => throw null; } } - public class ContentResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { public ContentResultExecutor(Microsoft.Extensions.Logging.ILogger logger, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory httpResponseStreamWriterFactory) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ContentResult result) => throw null; } - public class DefaultOutputFormatterSelector : Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector { public DefaultOutputFormatterSelector(Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public override Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter SelectFormatter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context, System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection contentTypes) => throw null; } - - public class DefaultStatusCodeAttribute : System.Attribute + public sealed class DefaultStatusCodeAttribute : System.Attribute { public DefaultStatusCodeAttribute(int statusCode) => throw null; public int StatusCode { get => throw null; } } - public class FileContentResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileContentResult result) => throw null; public FileContentResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; - protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileContentResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, System.Int64 rangeLength) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileContentResult result) => throw null; + protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileContentResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength) => throw null; } - public class FileResultExecutorBase { - protected const int BufferSize = default; - protected static Microsoft.Extensions.Logging.ILogger CreateLogger(Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; + protected static int BufferSize; public FileResultExecutorBase(Microsoft.Extensions.Logging.ILogger logger) => throw null; + protected virtual (Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength, bool serveBody) SetHeadersAndLog(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileResult result, long? fileLength, bool enableRangeProcessing, System.DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue etag) => throw null; + protected static Microsoft.Extensions.Logging.ILogger CreateLogger(Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; + protected static System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Http.HttpContext context, System.IO.Stream fileStream, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength) => throw null; protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - protected virtual (Microsoft.Net.Http.Headers.RangeItemHeaderValue, System.Int64, bool) SetHeadersAndLog(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileResult result, System.Int64? fileLength, bool enableRangeProcessing, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Microsoft.Net.Http.Headers.EntityTagHeaderValue etag = default(Microsoft.Net.Http.Headers.EntityTagHeaderValue)) => throw null; - protected static System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Http.HttpContext context, System.IO.Stream fileStream, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, System.Int64 rangeLength) => throw null; } - public class FileStreamResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileStreamResult result) => throw null; public FileStreamResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; - protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileStreamResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, System.Int64 rangeLength) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileStreamResult result) => throw null; + protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileStreamResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength) => throw null; } - public interface IActionContextAccessor { Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get; set; } } - public interface IActionDescriptorChangeProvider { Microsoft.Extensions.Primitives.IChangeToken GetChangeToken(); } - public interface IActionDescriptorCollectionProvider { Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection ActionDescriptors { get; } } - public interface IActionInvokerFactory { Microsoft.AspNetCore.Mvc.Abstractions.IActionInvoker CreateInvoker(Microsoft.AspNetCore.Mvc.ActionContext actionContext); } - public interface IActionResultExecutor where TResult : Microsoft.AspNetCore.Mvc.IActionResult { System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, TResult result); } - public interface IActionResultTypeMapper { - Microsoft.AspNetCore.Mvc.IActionResult Convert(object value, System.Type returnType); System.Type GetResultDataType(System.Type returnType); + Microsoft.AspNetCore.Mvc.IActionResult Convert(object value, System.Type returnType); } - public interface IActionSelector { - Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor SelectBestCandidate(Microsoft.AspNetCore.Routing.RouteContext context, System.Collections.Generic.IReadOnlyList candidates); System.Collections.Generic.IReadOnlyList SelectCandidates(Microsoft.AspNetCore.Routing.RouteContext context); + Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor SelectBestCandidate(Microsoft.AspNetCore.Routing.RouteContext context, System.Collections.Generic.IReadOnlyList candidates); } - public interface IApiBehaviorMetadata : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - - public interface IClientErrorActionResult : Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public interface IClientErrorActionResult : Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { } - public interface IClientErrorFactory { Microsoft.AspNetCore.Mvc.IActionResult GetClientError(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult clientError); } - public interface ICompatibilitySwitch { bool IsValueSet { get; } string Name { get; } object Value { get; set; } } - public interface IConvertToActionResult { Microsoft.AspNetCore.Mvc.IActionResult Convert(); } - public interface IHttpRequestStreamReaderFactory { System.IO.TextReader CreateReader(System.IO.Stream stream, System.Text.Encoding encoding); } - public interface IHttpResponseStreamWriterFactory { System.IO.TextWriter CreateWriter(System.IO.Stream stream, System.Text.Encoding encoding); } - public interface IParameterInfoParameterDescriptor { System.Reflection.ParameterInfo ParameterInfo { get; } } - public interface IPropertyInfoParameterDescriptor { System.Reflection.PropertyInfo PropertyInfo { get; } } - public interface IStatusCodeActionResult : Microsoft.AspNetCore.Mvc.IActionResult { int? StatusCode { get; } } - public class LocalRedirectResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.LocalRedirectResult result) => throw null; public LocalRedirectResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.LocalRedirectResult result) => throw null; } - public class ModelStateInvalidFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public bool IsReusable { get => throw null; } public ModelStateInvalidFilter(Microsoft.AspNetCore.Mvc.ApiBehaviorOptions apiBehaviorOptions, Microsoft.Extensions.Logging.ILogger logger) => throw null; public void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; public void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context) => throw null; public int Order { get => throw null; } + public bool IsReusable { get => throw null; } } - public class MvcCompatibilityOptions { - public Microsoft.AspNetCore.Mvc.CompatibilityVersion CompatibilityVersion { get => throw null; set => throw null; } public MvcCompatibilityOptions() => throw null; + public Microsoft.AspNetCore.Mvc.CompatibilityVersion CompatibilityVersion { get => throw null; set { } } } - public class ObjectResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { + public ObjectResultExecutor(Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector formatterSelector, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions mvcOptions) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ObjectResult result) => throw null; - protected Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector FormatterSelector { get => throw null; } protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - public ObjectResultExecutor(Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector formatterSelector, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions mvcOptions) => throw null; + protected Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector FormatterSelector { get => throw null; } protected System.Func WriterFactory { get => throw null; } } - public abstract class OutputFormatterSelector { - protected OutputFormatterSelector() => throw null; public abstract Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter SelectFormatter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext context, System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection mediaTypes); + protected OutputFormatterSelector() => throw null; } - public class PhysicalFileResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { + public PhysicalFileResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PhysicalFileResult result) => throw null; + protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PhysicalFileResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength) => throw null; + protected virtual System.IO.Stream GetFileStream(string path) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Infrastructure.PhysicalFileResultExecutor.FileMetadata GetFileInfo(string path) => throw null; protected class FileMetadata { - public bool Exists { get => throw null; set => throw null; } public FileMetadata() => throw null; - public System.DateTimeOffset LastModified { get => throw null; set => throw null; } - public System.Int64 Length { get => throw null; set => throw null; } + public bool Exists { get => throw null; set { } } + public long Length { get => throw null; set { } } + public System.DateTimeOffset LastModified { get => throw null; set { } } } - - - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PhysicalFileResult result) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Infrastructure.PhysicalFileResultExecutor.FileMetadata GetFileInfo(string path) => throw null; - protected virtual System.IO.Stream GetFileStream(string path) => throw null; - public PhysicalFileResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; - protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PhysicalFileResult result, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, System.Int64 rangeLength) => throw null; } - public abstract class ProblemDetailsFactory { - public abstract Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails(Microsoft.AspNetCore.Http.HttpContext httpContext, int? statusCode = default(int?), string title = default(string), string type = default(string), string detail = default(string), string instance = default(string)); - public abstract Microsoft.AspNetCore.Mvc.ValidationProblemDetails CreateValidationProblemDetails(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary, int? statusCode = default(int?), string title = default(string), string type = default(string), string detail = default(string), string instance = default(string)); + public abstract Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails(Microsoft.AspNetCore.Http.HttpContext httpContext, int? statusCode, string title, string type, string detail, string instance); + public abstract Microsoft.AspNetCore.Mvc.ValidationProblemDetails CreateValidationProblemDetails(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary, int? statusCode, string title, string type, string detail, string instance); protected ProblemDetailsFactory() => throw null; } - public class RedirectResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectResult result) => throw null; public RedirectResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectResult result) => throw null; } - public class RedirectToActionResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToActionResult result) => throw null; public RedirectToActionResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToActionResult result) => throw null; } - public class RedirectToPageResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToPageResult result) => throw null; public RedirectToPageResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToPageResult result) => throw null; } - public class RedirectToRouteResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToRouteResult result) => throw null; public RedirectToRouteResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.RedirectToRouteResult result) => throw null; } - public class VirtualFileResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { + public VirtualFileResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.VirtualFileResult result) => throw null; + protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.VirtualFileResult result, Microsoft.Extensions.FileProviders.IFileInfo fileInfo, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength) => throw null; protected virtual System.IO.Stream GetFileStream(Microsoft.Extensions.FileProviders.IFileInfo fileInfo) => throw null; - public VirtualFileResultExecutor(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment) : base(default(Microsoft.Extensions.Logging.ILogger)) => throw null; - protected virtual System.Threading.Tasks.Task WriteFileAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.VirtualFileResult result, Microsoft.Extensions.FileProviders.IFileInfo fileInfo, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, System.Int64 rangeLength) => throw null; } - } namespace ModelBinding { - public class BindNeverAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute - { - public BindNeverAttribute() : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior)) => throw null; - } - - public class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute - { - public BindRequiredAttribute() : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior)) => throw null; - } - - public enum BindingBehavior : int + public enum BindingBehavior { - Never = 1, Optional = 0, + Never = 1, Required = 2, } - public class BindingBehaviorAttribute : System.Attribute { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior Behavior { get => throw null; } public BindingBehaviorAttribute(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior behavior) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior Behavior { get => throw null; } } - public abstract class BindingSourceValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { - protected Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public BindingSourceValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; public abstract bool ContainsPrefix(string prefix); - public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key); + public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; + protected Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } + } + public sealed class BindNeverAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute + { + public BindNeverAttribute() : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior)) => throw null; } - - public class CompositeValueProvider : System.Collections.ObjectModel.Collection, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IKeyRewriterValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider + public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute + { + public BindRequiredAttribute() : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehavior)) => throw null; + } + public class CompositeValueProvider : System.Collections.ObjectModel.Collection, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IKeyRewriterValueProvider { public CompositeValueProvider() => throw null; public CompositeValueProvider(System.Collections.Generic.IList valueProviders) => throw null; - public virtual bool ContainsPrefix(string prefix) => throw null; - public static System.Threading.Tasks.Task CreateAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList factories) => throw null; public static System.Threading.Tasks.Task CreateAsync(Microsoft.AspNetCore.Mvc.ControllerContext controllerContext) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter() => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; - public virtual System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; + public static System.Threading.Tasks.Task CreateAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IList factories) => throw null; + public virtual bool ContainsPrefix(string prefix) => throw null; public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; + public virtual System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; protected override void InsertItem(int index, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider item) => throw null; protected override void SetItem(int index, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider item) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter() => throw null; } - public class DefaultModelBindingContext : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext { - public override Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set => throw null; } - public override string BinderModelName { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set => throw null; } public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext CreateBindingContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo, string modelName) => throw null; - public DefaultModelBindingContext() => throw null; - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope() => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, string fieldName, string modelName, object model) => throw null; + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.NestedScope EnterNestedScope() => throw null; protected override void ExitNestedScope() => throw null; - public override string FieldName { get => throw null; set => throw null; } - public override bool IsTopLevelObject { get => throw null; set => throw null; } - public override object Model { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set => throw null; } - public override string ModelName { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider OriginalValueProvider { get => throw null; set => throw null; } - public override System.Func PropertyFilter { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Result { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get => throw null; set => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider ValueProvider { get => throw null; set => throw null; } - } - + public DefaultModelBindingContext() => throw null; + public override Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; set { } } + public override string FieldName { get => throw null; set { } } + public override object Model { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; set { } } + public override string ModelName { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; set { } } + public override string BinderModelName { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set { } } + public override bool IsTopLevelObject { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider OriginalValueProvider { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider ValueProvider { get => throw null; set { } } + public override System.Func PropertyFilter { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult Result { get => throw null; set { } } + } public class DefaultPropertyFilterProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider where TModel : class { public DefaultPropertyFilterProvider() => throw null; public virtual string Prefix { get => throw null; } - public virtual System.Func PropertyFilter { get => throw null; } public virtual System.Collections.Generic.IEnumerable>> PropertyIncludeExpressions { get => throw null; } + public virtual System.Func PropertyFilter { get => throw null; } } - public class EmptyModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider { public EmptyModelMetadataProvider() : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider)) => throw null; } - - public class FormFileValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider + public sealed class FormFileValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { - public bool ContainsPrefix(string prefix) => throw null; public FormFileValueProvider(Microsoft.AspNetCore.Http.IFormFileCollection files) => throw null; + public bool ContainsPrefix(string prefix) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; } - - public class FormFileValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory + public sealed class FormFileValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public FormFileValueProviderFactory() => throw null; } - public class FormValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { - public override bool ContainsPrefix(string prefix) => throw null; - public System.Globalization.CultureInfo Culture { get => throw null; } public FormValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Http.IFormCollection values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; + public override bool ContainsPrefix(string prefix) => throw null; public virtual System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; + public System.Globalization.CultureInfo Culture { get => throw null; } protected Microsoft.AspNetCore.Mvc.ModelBinding.PrefixContainer PrefixContainer { get => throw null; } } - public class FormValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public FormValueProviderFactory() => throw null; } - public interface IBindingSourceValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource); } - public interface ICollectionModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { bool CanCreateInstance(System.Type targetType); } - public interface IEnumerableValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix); } - public interface IKeyRewriterValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter(); } - public interface IModelBinderFactory { Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext context); } - public class JQueryFormValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.JQueryValueProvider { - public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; public JQueryFormValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, System.Collections.Generic.IDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource), default(System.Collections.Generic.IDictionary), default(System.Globalization.CultureInfo)) => throw null; + public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; } - public class JQueryFormValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public JQueryFormValueProviderFactory() => throw null; } - public class JQueryQueryStringValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.JQueryValueProvider { public JQueryQueryStringValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, System.Collections.Generic.IDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource), default(System.Collections.Generic.IDictionary), default(System.Globalization.CultureInfo)) => throw null; } - public class JQueryQueryStringValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public JQueryQueryStringValueProviderFactory() => throw null; } - - public abstract class JQueryValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IKeyRewriterValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider + public abstract class JQueryValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IKeyRewriterValueProvider { + protected JQueryValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, System.Collections.Generic.IDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; public override bool ContainsPrefix(string prefix) => throw null; - public System.Globalization.CultureInfo Culture { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter() => throw null; public System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; - protected JQueryValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, System.Collections.Generic.IDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider Filter() => throw null; + public System.Globalization.CultureInfo Culture { get => throw null; } protected Microsoft.AspNetCore.Mvc.ModelBinding.PrefixContainer PrefixContainer { get => throw null; } } - public class ModelAttributes { - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter(System.Reflection.ParameterInfo parameterInfo) => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter(System.Reflection.ParameterInfo parameterInfo, System.Type modelType) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForProperty(System.Type type, System.Reflection.PropertyInfo property) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForProperty(System.Type containerType, System.Reflection.PropertyInfo property, System.Type modelType) => throw null; public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForType(System.Type type) => throw null; - public System.Collections.Generic.IReadOnlyList ParameterAttributes { get => throw null; } + public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter(System.Reflection.ParameterInfo parameterInfo) => throw null; + public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter(System.Reflection.ParameterInfo parameterInfo, System.Type modelType) => throw null; + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public System.Collections.Generic.IReadOnlyList PropertyAttributes { get => throw null; } + public System.Collections.Generic.IReadOnlyList ParameterAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList TypeAttributes { get => throw null; } } - public class ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory { - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext context) => throw null; public ModelBinderFactory(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions options, System.IServiceProvider serviceProvider) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext context) => throw null; } - public class ModelBinderFactoryContext { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set => throw null; } - public object CacheToken { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set => throw null; } public ModelBinderFactoryContext() => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo BindingInfo { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set { } } + public object CacheToken { get => throw null; set { } } } - - public static class ModelBinderProviderExtensions + public static partial class ModelBinderProviderExtensions { - public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; public static void RemoveType(this System.Collections.Generic.IList list) where TModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider => throw null; + public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; } - - public static class ModelMetadataProviderExtensions + public static partial class ModelMetadataProviderExtensions { public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForProperty(this Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, System.Type containerType, string propertyName) => throw null; } - public static class ModelNames { public static string CreateIndexModelName(string parentName, int index) => throw null; public static string CreateIndexModelName(string parentName, string index) => throw null; public static string CreatePropertyModelName(string prefix, string propertyName) => throw null; } - public abstract class ObjectModelValidator : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator { - public abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor GetValidationVisitor(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState); public ObjectModelValidator(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, System.Collections.Generic.IList validatorProviders) => throw null; public virtual void Validate(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model) => throw null; public virtual void Validate(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; public virtual void Validate(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object container) => throw null; + public abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor GetValidationVisitor(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState); } - public class ParameterBinder { + public ParameterBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator, Microsoft.Extensions.Options.IOptions mvcOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public virtual System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object value) => throw null; public virtual System.Threading.Tasks.ValueTask BindModelAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object value, object container) => throw null; protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - public ParameterBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory modelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator validator, Microsoft.Extensions.Options.IOptions mvcOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; } - public class PrefixContainer { + public PrefixContainer(System.Collections.Generic.ICollection values) => throw null; public bool ContainsPrefix(string prefix) => throw null; public System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; - public PrefixContainer(System.Collections.Generic.ICollection values) => throw null; } - public class QueryStringValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IEnumerableValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider { + public QueryStringValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Http.IQueryCollection values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; public override bool ContainsPrefix(string prefix) => throw null; - public System.Globalization.CultureInfo Culture { get => throw null; } public virtual System.Collections.Generic.IDictionary GetKeysFromPrefix(string prefix) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; + public System.Globalization.CultureInfo Culture { get => throw null; } protected Microsoft.AspNetCore.Mvc.ModelBinding.PrefixContainer PrefixContainer { get => throw null; } - public QueryStringValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Http.IQueryCollection values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; } - public class QueryStringValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public QueryStringValueProviderFactory() => throw null; } - public class RouteValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceValueProvider { + public RouteValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; + public RouteValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; public override bool ContainsPrefix(string key) => throw null; - protected System.Globalization.CultureInfo Culture { get => throw null; } public override Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult GetValue(string key) => throw null; protected Microsoft.AspNetCore.Mvc.ModelBinding.PrefixContainer PrefixContainer { get => throw null; } - public RouteValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; - public RouteValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Globalization.CultureInfo culture) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource)) => throw null; + protected System.Globalization.CultureInfo Culture { get => throw null; } } - public class RouteValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory { public System.Threading.Tasks.Task CreateValueProviderAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderFactoryContext context) => throw null; public RouteValueProviderFactory() => throw null; } - - public class SuppressChildValidationMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider + public class SuppressChildValidationMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { - public void CreateValidationMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext context) => throw null; - public string FullTypeName { get => throw null; } public SuppressChildValidationMetadataProvider(System.Type type) => throw null; public SuppressChildValidationMetadataProvider(string fullTypeName) => throw null; + public void CreateValidationMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext context) => throw null; public System.Type Type { get => throw null; } + public string FullTypeName { get => throw null; } } - public class UnsupportedContentTypeException : System.Exception { public UnsupportedContentTypeException(string message) => throw null; } - public class UnsupportedContentTypeFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; public void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context) => throw null; - public int Order { get => throw null; set => throw null; } + public void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; public UnsupportedContentTypeFilter() => throw null; + public int Order { get => throw null; set { } } } - - public static class ValueProviderFactoryExtensions + public static partial class ValueProviderFactoryExtensions { - public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; public static void RemoveType(this System.Collections.Generic.IList list) where TValueProviderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IValueProviderFactory => throw null; + public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; } - namespace Binders { public class ArrayModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder @@ -2797,37 +2465,32 @@ public class ArrayModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding. public ArrayModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; public ArrayModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; public override bool CanCreateInstance(System.Type targetType) => throw null; + protected override object CreateEmptyCollection(System.Type targetType) => throw null; protected override object ConvertToCollectionType(System.Type targetType, System.Collections.Generic.IEnumerable collection) => throw null; protected override void CopyToModel(object target, System.Collections.Generic.IEnumerable sourceCollection) => throw null; - protected override object CreateEmptyCollection(System.Type targetType) => throw null; } - public class ArrayModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public ArrayModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public ArrayModelBinderProvider() => throw null; } - public class BinderTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public BinderTypeModelBinder(System.Type binderType) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class BinderTypeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public BinderTypeModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public BinderTypeModelBinderProvider() => throw null; } - public class BodyModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public BodyModelBinder(System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory) => throw null; public BodyModelBinder(System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public BodyModelBinder(System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class BodyModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public BodyModelBinderProvider(System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory) => throw null; @@ -2835,334 +2498,292 @@ public class BodyModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IMo public BodyModelBinderProvider(System.Collections.Generic.IList formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; } - public class ByteArrayModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public ByteArrayModelBinder(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class ByteArrayModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public ByteArrayModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public ByteArrayModelBinderProvider() => throw null; } - public class CancellationTokenModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public CancellationTokenModelBinder() => throw null; } - public class CancellationTokenModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public CancellationTokenModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public CancellationTokenModelBinderProvider() => throw null; } - public class CollectionModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ICollectionModelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - protected void AddErrorIfBindingRequired(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - public virtual System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - public virtual bool CanCreateInstance(System.Type targetType) => throw null; public CollectionModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public CollectionModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes) => throw null; public CollectionModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions) => throw null; - protected virtual object ConvertToCollectionType(System.Type targetType, System.Collections.Generic.IEnumerable collection) => throw null; - protected virtual void CopyToModel(object target, System.Collections.Generic.IEnumerable sourceCollection) => throw null; + public virtual System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; + public virtual bool CanCreateInstance(System.Type targetType) => throw null; + protected void AddErrorIfBindingRequired(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; protected virtual object CreateEmptyCollection(System.Type targetType) => throw null; protected object CreateInstance(System.Type targetType) => throw null; + protected virtual object ConvertToCollectionType(System.Type targetType, System.Collections.Generic.IEnumerable collection) => throw null; + protected virtual void CopyToModel(object target, System.Collections.Generic.IEnumerable sourceCollection) => throw null; protected Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder ElementBinder { get => throw null; } protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } } - public class CollectionModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public CollectionModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public CollectionModelBinderProvider() => throw null; } - - public class ComplexObjectModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder + public sealed class ComplexObjectModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class ComplexObjectModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public ComplexObjectModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public ComplexObjectModelBinderProvider() => throw null; } - public class ComplexTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - protected virtual System.Threading.Tasks.Task BindProperty(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - protected virtual bool CanBindProperty(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata propertyMetadata) => throw null; public ComplexTypeModelBinder(System.Collections.Generic.IDictionary propertyBinders, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public ComplexTypeModelBinder(System.Collections.Generic.IDictionary propertyBinders, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; + protected virtual bool CanBindProperty(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata propertyMetadata) => throw null; + protected virtual System.Threading.Tasks.Task BindProperty(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; protected virtual object CreateModel(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; protected virtual void SetProperty(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, string modelName, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata propertyMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult result) => throw null; } - public class ComplexTypeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public ComplexTypeModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public ComplexTypeModelBinderProvider() => throw null; } - public class DateTimeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public DateTimeModelBinder(System.Globalization.DateTimeStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class DateTimeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public DateTimeModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public DateTimeModelBinderProvider() => throw null; } - public class DecimalModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public DecimalModelBinder(System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class DictionaryModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder> { - public override System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - public override bool CanCreateInstance(System.Type targetType) => throw null; - protected override object ConvertToCollectionType(System.Type targetType, System.Collections.Generic.IEnumerable> collection) => throw null; - protected override object CreateEmptyCollection(System.Type targetType) => throw null; public DictionaryModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; public DictionaryModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; public DictionaryModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; + public override System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; + protected override object ConvertToCollectionType(System.Type targetType, System.Collections.Generic.IEnumerable> collection) => throw null; + protected override object CreateEmptyCollection(System.Type targetType) => throw null; + public override bool CanCreateInstance(System.Type targetType) => throw null; } - public class DictionaryModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public DictionaryModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public DictionaryModelBinderProvider() => throw null; } - public class DoubleModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public DoubleModelBinder(System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class EnumTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinder { - protected override void CheckModel(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult, object model) => throw null; public EnumTypeModelBinder(bool suppressBindingUndefinedValueToEnumType, System.Type modelType, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(System.Type), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; + protected override void CheckModel(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult, object model) => throw null; } - public class EnumTypeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public EnumTypeModelBinderProvider(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; } - - public class FloatModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder - { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; - public FloatModelBinder(System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - } - public class FloatingPointTypeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public FloatingPointTypeModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public FloatingPointTypeModelBinderProvider() => throw null; } - - public class FormCollectionModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder + public class FloatModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { + public FloatModelBinder(System.Globalization.NumberStyles supportedStyles, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; + } + public class FormCollectionModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder + { public FormCollectionModelBinder(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class FormCollectionModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public FormCollectionModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public FormCollectionModelBinderProvider() => throw null; } - public class FormFileModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public FormFileModelBinder(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class FormFileModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { - public FormFileModelBinderProvider() => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; + public FormFileModelBinderProvider() => throw null; } - public class HeaderModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public HeaderModelBinder(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public HeaderModelBinder(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder innerModelBinder) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class HeaderModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; public HeaderModelBinderProvider() => throw null; } - public class KeyValuePairModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { - public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public KeyValuePairModelBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; } - public class KeyValuePairModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; public KeyValuePairModelBinderProvider() => throw null; } - public class ServicesModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; public ServicesModelBinder() => throw null; } - public class ServicesModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; public ServicesModelBinderProvider() => throw null; } - public class SimpleTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder { + public SimpleTypeModelBinder(System.Type type, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext) => throw null; protected virtual void CheckModel(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult, object model) => throw null; - public SimpleTypeModelBinder(System.Type type, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; } - public class SimpleTypeModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; public SimpleTypeModelBinderProvider() => throw null; } - - public class TryParseModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider + public sealed class TryParseModelBinderProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider { public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context) => throw null; public TryParseModelBinderProvider() => throw null; } - } namespace Metadata { public class BindingMetadata { - public string BinderModelName { get => throw null; set => throw null; } - public System.Type BinderType { get => throw null; set => throw null; } public BindingMetadata() => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set => throw null; } - public System.Reflection.ConstructorInfo BoundConstructor { get => throw null; set => throw null; } - public bool IsBindingAllowed { get => throw null; set => throw null; } - public bool IsBindingRequired { get => throw null; set => throw null; } - public bool? IsReadOnly { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider ModelBindingMessageProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get => throw null; set => throw null; } - } - + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; set { } } + public string BinderModelName { get => throw null; set { } } + public System.Type BinderType { get => throw null; set { } } + public bool IsBindingAllowed { get => throw null; set { } } + public bool IsBindingRequired { get => throw null; set { } } + public bool? IsReadOnly { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider ModelBindingMessageProvider { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get => throw null; set { } } + public System.Reflection.ConstructorInfo BoundConstructor { get => throw null; set { } } + } public class BindingMetadataProviderContext { - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadata BindingMetadata { get => throw null; } public BindingMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Key { get => throw null; } public System.Collections.Generic.IReadOnlyList ParameterAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList PropertyAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList TypeAttributes { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadata BindingMetadata { get => throw null; } } - public class BindingSourceMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IBindingMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { - public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } public BindingSourceMetadataProvider(System.Type type, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource) => throw null; public void CreateBindingMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext context) => throw null; public System.Type Type { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } } - public class DefaultMetadataDetails { - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadata BindingMetadata { get => throw null; set => throw null; } - public System.Func BoundConstructorInvoker { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata[] BoundConstructorParameters { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; set => throw null; } public DefaultMetadataDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata DisplayMetadata { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Key { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes ModelAttributes { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata[] Properties { get => throw null; set => throw null; } - public System.Func PropertyGetter { get => throw null; set => throw null; } - public System.Action PropertySetter { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata ValidationMetadata { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadata BindingMetadata { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata DisplayMetadata { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Key { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata[] Properties { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata[] BoundConstructorParameters { get => throw null; set { } } + public System.Func PropertyGetter { get => throw null; set { } } + public System.Action PropertySetter { get => throw null; set { } } + public System.Func BoundConstructorInvoker { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata ValidationMetadata { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; set { } } } - public class DefaultModelBindingMessageProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelBindingMessageProvider { - public override System.Func AttemptedValueIsInvalidAccessor { get => throw null; } public DefaultModelBindingMessageProvider() => throw null; public DefaultModelBindingMessageProvider(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider originalProvider) => throw null; - public override System.Func MissingBindRequiredValueAccessor { get => throw null; } - public override System.Func MissingKeyOrValueAccessor { get => throw null; } - public override System.Func MissingRequestBodyRequiredValueAccessor { get => throw null; } - public override System.Func NonPropertyAttemptedValueIsInvalidAccessor { get => throw null; } - public override System.Func NonPropertyUnknownValueIsInvalidAccessor { get => throw null; } - public override System.Func NonPropertyValueMustBeANumberAccessor { get => throw null; } - public void SetAttemptedValueIsInvalidAccessor(System.Func attemptedValueIsInvalidAccessor) => throw null; public void SetMissingBindRequiredValueAccessor(System.Func missingBindRequiredValueAccessor) => throw null; public void SetMissingKeyOrValueAccessor(System.Func missingKeyOrValueAccessor) => throw null; public void SetMissingRequestBodyRequiredValueAccessor(System.Func missingRequestBodyRequiredValueAccessor) => throw null; + public void SetValueMustNotBeNullAccessor(System.Func valueMustNotBeNullAccessor) => throw null; + public void SetAttemptedValueIsInvalidAccessor(System.Func attemptedValueIsInvalidAccessor) => throw null; public void SetNonPropertyAttemptedValueIsInvalidAccessor(System.Func nonPropertyAttemptedValueIsInvalidAccessor) => throw null; - public void SetNonPropertyUnknownValueIsInvalidAccessor(System.Func nonPropertyUnknownValueIsInvalidAccessor) => throw null; - public void SetNonPropertyValueMustBeANumberAccessor(System.Func nonPropertyValueMustBeANumberAccessor) => throw null; public void SetUnknownValueIsInvalidAccessor(System.Func unknownValueIsInvalidAccessor) => throw null; + public void SetNonPropertyUnknownValueIsInvalidAccessor(System.Func nonPropertyUnknownValueIsInvalidAccessor) => throw null; public void SetValueIsInvalidAccessor(System.Func valueIsInvalidAccessor) => throw null; public void SetValueMustBeANumberAccessor(System.Func valueMustBeANumberAccessor) => throw null; - public void SetValueMustNotBeNullAccessor(System.Func valueMustNotBeNullAccessor) => throw null; + public void SetNonPropertyValueMustBeANumberAccessor(System.Func nonPropertyValueMustBeANumberAccessor) => throw null; + public override System.Func MissingBindRequiredValueAccessor { get => throw null; } + public override System.Func MissingKeyOrValueAccessor { get => throw null; } + public override System.Func MissingRequestBodyRequiredValueAccessor { get => throw null; } + public override System.Func ValueMustNotBeNullAccessor { get => throw null; } + public override System.Func AttemptedValueIsInvalidAccessor { get => throw null; } + public override System.Func NonPropertyAttemptedValueIsInvalidAccessor { get => throw null; } public override System.Func UnknownValueIsInvalidAccessor { get => throw null; } + public override System.Func NonPropertyUnknownValueIsInvalidAccessor { get => throw null; } public override System.Func ValueIsInvalidAccessor { get => throw null; } public override System.Func ValueMustBeANumberAccessor { get => throw null; } - public override System.Func ValueMustNotBeNullAccessor { get => throw null; } + public override System.Func NonPropertyValueMustBeANumberAccessor { get => throw null; } } - public class DefaultModelMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata { - public override System.Collections.Generic.IReadOnlyDictionary AdditionalValues { get => throw null; } + public DefaultModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails details) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity)) => throw null; + public DefaultModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails details, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider modelBindingMessageProvider) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity)) => throw null; + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType) => throw null; + public override System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes Attributes { get => throw null; } - public override string BinderModelName { get => throw null; } - public override System.Type BinderType { get => throw null; } + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadata BindingMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata DisplayMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata ValidationMetadata { get => throw null; } + public override System.Collections.Generic.IReadOnlyDictionary AdditionalValues { get => throw null; } public override Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata BoundConstructor { get => throw null; } - public override System.Func BoundConstructorInvoker { get => throw null; } - public override System.Collections.Generic.IReadOnlyList BoundConstructorParameters { get => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ContainerMetadata { get => throw null; } + public override string BinderModelName { get => throw null; } + public override System.Type BinderType { get => throw null; } public override bool ConvertEmptyStringToNull { get => throw null; } public override string DataTypeName { get => throw null; } - public DefaultModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails details) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity)) => throw null; - public DefaultModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails details, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider modelBindingMessageProvider) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity)) => throw null; public override string Description { get => throw null; } public override string DisplayFormatString { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata DisplayMetadata { get => throw null; } public override string DisplayName { get => throw null; } public override string EditFormatString { get => throw null; } public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ElementMetadata { get => throw null; } public override System.Collections.Generic.IEnumerable> EnumGroupedDisplayNamesAndValues { get => throw null; } public override System.Collections.Generic.IReadOnlyDictionary EnumNamesAndValues { get => throw null; } - public override System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType) => throw null; public override bool HasNonDefaultEditFormat { get => throw null; } - public override bool? HasValidators { get => throw null; } public override bool HideSurroundingHtml { get => throw null; } public override bool HtmlEncode { get => throw null; } public override bool IsBindingAllowed { get => throw null; } @@ -3176,408 +2797,365 @@ public class DefaultModelMetadata : Microsoft.AspNetCore.Mvc.ModelBinding.ModelM public override int Order { get => throw null; } public override string Placeholder { get => throw null; } public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelPropertyCollection Properties { get => throw null; } + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata BoundConstructor { get => throw null; } + public override System.Collections.Generic.IReadOnlyList BoundConstructorParameters { get => throw null; } public override Microsoft.AspNetCore.Mvc.ModelBinding.IPropertyFilterProvider PropertyFilterProvider { get => throw null; } - public override System.Func PropertyGetter { get => throw null; } - public override System.Action PropertySetter { get => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; } public override bool ShowForDisplay { get => throw null; } public override bool ShowForEdit { get => throw null; } public override string SimpleDisplayProperty { get => throw null; } public override string TemplateHint { get => throw null; } + public override Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; } public override bool ValidateChildren { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata ValidationMetadata { get => throw null; } + public override bool? HasValidators { get => throw null; } public override System.Collections.Generic.IReadOnlyList ValidatorMetadata { get => throw null; } + public override System.Func PropertyGetter { get => throw null; } + public override System.Action PropertySetter { get => throw null; } + public override System.Func BoundConstructorInvoker { get => throw null; } } - public class DefaultModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadataProvider { - protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata CreateModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails entry) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails CreateParameterDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails[] CreatePropertyDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails CreateTypeDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; public DefaultModelMetadataProvider(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider) => throw null; public DefaultModelMetadataProvider(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; - protected Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider DetailsProvider { get => throw null; } - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor(System.Reflection.ConstructorInfo constructorInfo, System.Type modelType) => throw null; + public override System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter(System.Reflection.ParameterInfo parameter) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter(System.Reflection.ParameterInfo parameter, System.Type modelType) => throw null; - public override System.Collections.Generic.IEnumerable GetMetadataForProperties(System.Type modelType) => throw null; - public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForProperty(System.Reflection.PropertyInfo propertyInfo, System.Type modelType) => throw null; public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType(System.Type modelType) => throw null; + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForProperty(System.Reflection.PropertyInfo propertyInfo, System.Type modelType) => throw null; + public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor(System.Reflection.ConstructorInfo constructorInfo, System.Type modelType) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata CreateModelMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails entry) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails[] CreatePropertyDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails CreateTypeDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultMetadataDetails CreateParameterDetails(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key) => throw null; + protected Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider DetailsProvider { get => throw null; } protected Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider ModelBindingMessageProvider { get => throw null; } } - public class DisplayMetadata { - public System.Collections.Generic.IDictionary AdditionalValues { get => throw null; } - public bool ConvertEmptyStringToNull { get => throw null; set => throw null; } - public string DataTypeName { get => throw null; set => throw null; } - public System.Func Description { get => throw null; set => throw null; } - public string DisplayFormatString { get => throw null; set => throw null; } - public System.Func DisplayFormatStringProvider { get => throw null; set => throw null; } public DisplayMetadata() => throw null; - public System.Func DisplayName { get => throw null; set => throw null; } - public string EditFormatString { get => throw null; set => throw null; } - public System.Func EditFormatStringProvider { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable> EnumGroupedDisplayNamesAndValues { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyDictionary EnumNamesAndValues { get => throw null; set => throw null; } - public bool HasNonDefaultEditFormat { get => throw null; set => throw null; } - public bool HideSurroundingHtml { get => throw null; set => throw null; } - public bool HtmlEncode { get => throw null; set => throw null; } - public bool IsEnum { get => throw null; set => throw null; } - public bool IsFlagsEnum { get => throw null; set => throw null; } - public string NullDisplayText { get => throw null; set => throw null; } - public System.Func NullDisplayTextProvider { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - public System.Func Placeholder { get => throw null; set => throw null; } - public bool ShowForDisplay { get => throw null; set => throw null; } - public bool ShowForEdit { get => throw null; set => throw null; } - public string SimpleDisplayProperty { get => throw null; set => throw null; } - public string TemplateHint { get => throw null; set => throw null; } - } - + public System.Collections.Generic.IDictionary AdditionalValues { get => throw null; } + public bool ConvertEmptyStringToNull { get => throw null; set { } } + public string DataTypeName { get => throw null; set { } } + public System.Func Description { get => throw null; set { } } + public string DisplayFormatString { get => throw null; set { } } + public System.Func DisplayFormatStringProvider { get => throw null; set { } } + public System.Func DisplayName { get => throw null; set { } } + public string EditFormatString { get => throw null; set { } } + public System.Func EditFormatStringProvider { get => throw null; set { } } + public System.Collections.Generic.IEnumerable> EnumGroupedDisplayNamesAndValues { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyDictionary EnumNamesAndValues { get => throw null; set { } } + public bool HasNonDefaultEditFormat { get => throw null; set { } } + public bool HideSurroundingHtml { get => throw null; set { } } + public bool HtmlEncode { get => throw null; set { } } + public bool IsEnum { get => throw null; set { } } + public bool IsFlagsEnum { get => throw null; set { } } + public string NullDisplayText { get => throw null; set { } } + public System.Func NullDisplayTextProvider { get => throw null; set { } } + public int Order { get => throw null; set { } } + public System.Func Placeholder { get => throw null; set { } } + public bool ShowForDisplay { get => throw null; set { } } + public bool ShowForEdit { get => throw null; set { } } + public string SimpleDisplayProperty { get => throw null; set { } } + public string TemplateHint { get => throw null; set { } } + } public class DisplayMetadataProviderContext { + public DisplayMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadata DisplayMetadata { get => throw null; } - public DisplayMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Key { get => throw null; } public System.Collections.Generic.IReadOnlyList PropertyAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList TypeAttributes { get => throw null; } } - public class ExcludeBindingMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IBindingMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { - public void CreateBindingMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext context) => throw null; public ExcludeBindingMetadataProvider(System.Type type) => throw null; + public void CreateBindingMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext context) => throw null; } - public interface IBindingMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { void CreateBindingMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext context); } - - public interface ICompositeMetadataDetailsProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IBindingMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider + public interface ICompositeMetadataDetailsProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IBindingMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider { } - public interface IDisplayMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { void CreateDisplayMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext context); } - public interface IMetadataDetailsProvider { } - public interface IValidationMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider { void CreateValidationMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext context); } - - public static class MetadataDetailsProviderExtensions + public static partial class MetadataDetailsProviderExtensions { - public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; public static void RemoveType(this System.Collections.Generic.IList list) where TMetadataDetailsProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider => throw null; + public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; } - - public class SystemTextJsonValidationMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider + public sealed class SystemTextJsonValidationMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IDisplayMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IMetadataDetailsProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IValidationMetadataProvider { - public void CreateDisplayMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext context) => throw null; - public void CreateValidationMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext context) => throw null; public SystemTextJsonValidationMetadataProvider() => throw null; public SystemTextJsonValidationMetadataProvider(System.Text.Json.JsonNamingPolicy namingPolicy) => throw null; + public void CreateDisplayMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DisplayMetadataProviderContext context) => throw null; + public void CreateValidationMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadataProviderContext context) => throw null; } - public class ValidationMetadata { - public bool? HasValidators { get => throw null; set => throw null; } - public bool? IsRequired { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; set => throw null; } - public bool? ValidateChildren { get => throw null; set => throw null; } public ValidationMetadata() => throw null; - public string ValidationModelName { get => throw null; set => throw null; } + public bool? IsRequired { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter PropertyValidationFilter { get => throw null; set { } } + public bool? ValidateChildren { get => throw null; set { } } public System.Collections.Generic.IList ValidatorMetadata { get => throw null; } + public bool? HasValidators { get => throw null; set { } } + public string ValidationModelName { get => throw null; set { } } } - public class ValidationMetadataProviderContext { + public ValidationMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity Key { get => throw null; } public System.Collections.Generic.IReadOnlyList ParameterAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList PropertyAttributes { get => throw null; } public System.Collections.Generic.IReadOnlyList TypeAttributes { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ValidationMetadata ValidationMetadata { get => throw null; } - public ValidationMetadataProviderContext(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes attributes) => throw null; } - } namespace Validation { public class ClientValidatorCache { - public ClientValidatorCache() => throw null; public System.Collections.Generic.IReadOnlyList GetValidators(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidatorProvider validatorProvider) => throw null; + public ClientValidatorCache() => throw null; } - public class CompositeClientModelValidatorProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidatorProvider { public CompositeClientModelValidatorProvider(System.Collections.Generic.IEnumerable providers) => throw null; public void CreateValidators(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorProviderContext context) => throw null; public System.Collections.Generic.IReadOnlyList ValidatorProviders { get => throw null; } } - public class CompositeModelValidatorProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider { public CompositeModelValidatorProvider(System.Collections.Generic.IList providers) => throw null; public void CreateValidators(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidatorProviderContext context) => throw null; public System.Collections.Generic.IList ValidatorProviders { get => throw null; } } - public interface IMetadataBasedModelValidatorProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider { bool HasValidators(System.Type modelType, System.Collections.Generic.IList validatorMetadata); } - public interface IObjectModelValidator { void Validate(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model); } - - public static class ModelValidatorProviderExtensions + public static partial class ModelValidatorProviderExtensions { - public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; public static void RemoveType(this System.Collections.Generic.IList list) where TModelValidatorProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider => throw null; + public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; } - - public class ValidateNeverAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter + public sealed class ValidateNeverAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IPropertyValidationFilter { public bool ShouldValidateEntry(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry entry, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry parentEntry) => throw null; public ValidateNeverAttribute() => throw null; } - public class ValidationVisitor { - protected struct StateManager : System.IDisposable - { - public void Dispose() => throw null; - public static Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.StateManager Recurse(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, string key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy strategy) => throw null; - // Stub generator skipped constructor - public StateManager(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, object newModel) => throw null; - } - - - protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache Cache { get => throw null; } - protected object Container { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ActionContext Context { get => throw null; } - protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry GetValidationEntry(object model) => throw null; - protected string Key { get => throw null; set => throw null; } - public int? MaxValidationDepth { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } - protected object Model { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } - protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy Strategy { get => throw null; set => throw null; } - protected virtual void SuppressValidation(string key) => throw null; + public ValidationVisitor(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState) => throw null; public bool Validate(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model) => throw null; public virtual bool Validate(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model, bool alwaysValidateAtTopLevel) => throw null; public virtual bool Validate(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model, bool alwaysValidateAtTopLevel, object container) => throw null; - public bool ValidateComplexTypesIfChildValidationFails { get => throw null; set => throw null; } protected virtual bool ValidateNode() => throw null; - protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get => throw null; } - public ValidationVisitor(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState) => throw null; - protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider ValidatorProvider { get => throw null; } protected virtual bool Visit(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model) => throw null; - protected virtual bool VisitChildren(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy strategy) => throw null; protected virtual bool VisitComplexType(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy defaultStrategy) => throw null; protected virtual bool VisitSimpleType() => throw null; + protected virtual bool VisitChildren(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy strategy) => throw null; + protected virtual void SuppressValidation(string key) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateEntry GetValidationEntry(object model) => throw null; + protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider ValidatorProvider { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache Cache { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ActionContext Context { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get => throw null; } + protected object Container { get => throw null; set { } } + protected string Key { get => throw null; set { } } + protected object Model { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy Strategy { get => throw null; set { } } + public int? MaxValidationDepth { get => throw null; set { } } + public bool ValidateComplexTypesIfChildValidationFails { get => throw null; set { } } + protected struct StateManager : System.IDisposable + { + public static Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.StateManager Recurse(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, string key, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy strategy) => throw null; + public StateManager(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, object newModel) => throw null; + public void Dispose() => throw null; + } } - public class ValidatorCache { public System.Collections.Generic.IReadOnlyList GetValidators(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider) => throw null; public ValidatorCache() => throw null; } - } } namespace Routing { public abstract class DynamicRouteValueTransformer { - protected DynamicRouteValueTransformer() => throw null; - public virtual System.Threading.Tasks.ValueTask> FilterAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Collections.Generic.IReadOnlyList endpoints) => throw null; - public object State { get => throw null; set => throw null; } public abstract System.Threading.Tasks.ValueTask TransformAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary values); + public virtual System.Threading.Tasks.ValueTask> FilterAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Collections.Generic.IReadOnlyList endpoints) => throw null; + protected DynamicRouteValueTransformer() => throw null; + public object State { get => throw null; set { } } } - public abstract class HttpMethodAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider { public HttpMethodAttribute(System.Collections.Generic.IEnumerable httpMethods) => throw null; public HttpMethodAttribute(System.Collections.Generic.IEnumerable httpMethods, string template) => throw null; public System.Collections.Generic.IEnumerable HttpMethods { get => throw null; } - public string Name { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } - int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } public string Template { get => throw null; } + public int Order { get => throw null; set { } } + int? Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider.Order { get => throw null; } + public string Name { get => throw null; set { } } } - public interface IActionHttpMethodProvider { System.Collections.Generic.IEnumerable HttpMethods { get; } } - public interface IRouteTemplateProvider { - string Name { get; } - int? Order { get; } string Template { get; } + int? Order { get; } + string Name { get; } } - public interface IRouteValueProvider { string RouteKey { get; } string RouteValue { get; } } - public interface IUrlHelperFactory { Microsoft.AspNetCore.Mvc.IUrlHelper GetUrlHelper(Microsoft.AspNetCore.Mvc.ActionContext context); } - - public class KnownRouteValueConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint + public class KnownRouteValueConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy { public KnownRouteValueConstraint(Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider actionDescriptorCollectionProvider) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; } - public abstract class RouteValueAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Routing.IRouteValueProvider { + protected RouteValueAttribute(string routeKey, string routeValue) => throw null; public string RouteKey { get => throw null; } public string RouteValue { get => throw null; } - protected RouteValueAttribute(string routeKey, string routeValue) => throw null; } - public class UrlHelper : Microsoft.AspNetCore.Mvc.Routing.UrlHelperBase { + public UrlHelper(Microsoft.AspNetCore.Mvc.ActionContext actionContext) : base(default(Microsoft.AspNetCore.Mvc.ActionContext)) => throw null; public override string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext) => throw null; - protected virtual string GenerateUrl(string protocol, string host, Microsoft.AspNetCore.Routing.VirtualPathData pathData, string fragment) => throw null; + public override string RouteUrl(Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext) => throw null; protected virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPathData(string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + protected virtual string GenerateUrl(string protocol, string host, Microsoft.AspNetCore.Routing.VirtualPathData pathData, string fragment) => throw null; protected Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } - public override string RouteUrl(Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext) => throw null; protected Microsoft.AspNetCore.Routing.IRouter Router { get => throw null; } - public UrlHelper(Microsoft.AspNetCore.Mvc.ActionContext actionContext) : base(default(Microsoft.AspNetCore.Mvc.ActionContext)) => throw null; } - public abstract class UrlHelperBase : Microsoft.AspNetCore.Mvc.IUrlHelper { - public abstract string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext); - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - protected Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; } - public virtual string Content(string contentPath) => throw null; - protected string GenerateUrl(string protocol, string host, string path) => throw null; - protected string GenerateUrl(string protocol, string host, string virtualPath, string fragment) => throw null; - protected Microsoft.AspNetCore.Routing.RouteValueDictionary GetValuesDictionary(object values) => throw null; + protected UrlHelperBase(Microsoft.AspNetCore.Mvc.ActionContext actionContext) => throw null; public virtual bool IsLocalUrl(string url) => throw null; + public virtual string Content(string contentPath) => throw null; public virtual string Link(string routeName, object values) => throw null; + public abstract string Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext); public abstract string RouteUrl(Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext); - protected UrlHelperBase(Microsoft.AspNetCore.Mvc.ActionContext actionContext) => throw null; + protected Microsoft.AspNetCore.Routing.RouteValueDictionary GetValuesDictionary(object values) => throw null; + protected string GenerateUrl(string protocol, string host, string virtualPath, string fragment) => throw null; + protected string GenerateUrl(string protocol, string host, string path) => throw null; + protected Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; } + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } } - public class UrlHelperFactory : Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory { public Microsoft.AspNetCore.Mvc.IUrlHelper GetUrlHelper(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; public UrlHelperFactory() => throw null; } - } namespace ViewFeatures { public interface IKeepTempDataResult : Microsoft.AspNetCore.Mvc.IActionResult { } - } } namespace Routing { - public static class ControllerLinkGeneratorExtensions + public static partial class ControllerLinkGeneratorExtensions { - public static string GetPathByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string action = default(string), string controller = default(string), object values = default(object), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string action, string controller, object values = default(object), Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string action = default(string), string controller = default(string), object values = default(object), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string action, string controller, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; + public static string GetPathByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string action, string controller, object values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string action, string controller, object values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string action, string controller, object values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByAction(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string action, string controller, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; } - - public static class PageLinkGeneratorExtensions + public static partial class PageLinkGeneratorExtensions { - public static string GetPathByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string page = default(string), string handler = default(string), object values = default(object), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string page, string handler = default(string), object values = default(object), Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string page = default(string), string handler = default(string), object values = default(object), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string page, string handler, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; + public static string GetPathByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string page, string handler, object values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string page, string handler, object values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string page, string handler, object values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByPage(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string page, string handler, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class ApplicationModelConventionExtensions + public static partial class ApplicationModelConventionExtensions { - public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention actionModelConvention) => throw null; + public static void RemoveType(this System.Collections.Generic.IList list) where TApplicationModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention => throw null; + public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IControllerModelConvention controllerModelConvention) => throw null; - public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention parameterModelConvention) => throw null; + public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention actionModelConvention) => throw null; public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelConvention parameterModelConvention) => throw null; - public static void RemoveType(this System.Collections.Generic.IList list, System.Type type) => throw null; - public static void RemoveType(this System.Collections.Generic.IList list) where TApplicationModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IApplicationModelConvention => throw null; + public static void Add(this System.Collections.Generic.IList conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention parameterModelConvention) => throw null; } - public interface IMvcBuilder { - Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager PartManager { get; } Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } + Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager PartManager { get; } } - public interface IMvcCoreBuilder { - Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager PartManager { get; } Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } + Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager PartManager { get; } } - - public static class MvcCoreMvcBuilderExtensions + public static partial class MvcCoreMvcBuilderExtensions { - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddApplicationPart(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Reflection.Assembly assembly) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllersAsServices(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddJsonOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder ConfigureApiBehaviorOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddJsonOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action configure) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddApplicationPart(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Reflection.Assembly assembly) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder ConfigureApplicationPartManager(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllersAsServices(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder SetCompatibilityVersion(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.CompatibilityVersion version) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder ConfigureApiBehaviorOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; } - - public static class MvcCoreMvcCoreBuilderExtensions + public static partial class MvcCoreMvcCoreBuilderExtensions { - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddApplicationPart(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Reflection.Assembly assembly) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddJsonOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action configure) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddAuthorization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddControllersAsServices(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddFormatterMappings(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddJsonOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action configure) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureApiBehaviorOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddApplicationPart(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Reflection.Assembly assembly) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureApplicationPartManager(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureApiBehaviorOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder SetCompatibilityVersion(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.CompatibilityVersion version) => throw null; } - - public static class MvcCoreServiceCollectionExtensions + public static partial class MvcCoreServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Cors.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Cors.cs index d261e299d2576..60c237b60c8ab 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Cors.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Cors.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Cors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -14,14 +13,9 @@ public class CorsAuthorizationFilter : Microsoft.AspNetCore.Mvc.Filters.IAsyncAu public CorsAuthorizationFilter(Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider) => throw null; public CorsAuthorizationFilter(Microsoft.AspNetCore.Cors.Infrastructure.ICorsService corsService, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider policyProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public System.Threading.Tasks.Task OnAuthorizationAsync(Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext context) => throw null; + public string PolicyName { get => throw null; set { } } public int Order { get => throw null; } - public string PolicyName { get => throw null; set => throw null; } } - - internal interface ICorsAuthorizationFilter : Microsoft.AspNetCore.Mvc.Filters.IAsyncAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter - { - } - } } } @@ -29,13 +23,12 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcCorsMvcCoreBuilderExtensions + public static partial class MvcCorsMvcCoreBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCors(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCors(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureCors(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.DataAnnotations.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.DataAnnotations.cs index a280c4ccc0953..4a3362309c7f2 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.DataAnnotations.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.DataAnnotations.cs @@ -1,18 +1,16 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.DataAnnotations, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Mvc { - public class HiddenInputAttribute : System.Attribute + public sealed class HiddenInputAttribute : System.Attribute { - public bool DisplayValue { get => throw null; set => throw null; } public HiddenInputAttribute() => throw null; + public bool DisplayValue { get => throw null; set { } } } - namespace DataAnnotations { public abstract class AttributeAdapterBase : Microsoft.AspNetCore.Mvc.DataAnnotations.ValidationAttributeAdapter, Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator where TAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute @@ -20,17 +18,14 @@ public abstract class AttributeAdapterBase : Microsoft.AspNetCore.Mv public AttributeAdapterBase(TAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) : base(default(TAttribute), default(Microsoft.Extensions.Localization.IStringLocalizer)) => throw null; public abstract string GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase validationContext); } - public interface IAttributeAdapter : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator { string GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase validationContext); } - public interface IValidationAttributeAdapterProvider { Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter GetAttributeAdapter(System.ComponentModel.DataAnnotations.ValidationAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer); } - public class MvcDataAnnotationsLocalizationOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { public System.Func DataAnnotationLocalizerProvider; @@ -38,35 +33,30 @@ public class MvcDataAnnotationsLocalizationOptions : System.Collections.Generic. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public MvcDataAnnotationsLocalizationOptions() => throw null; } - - public class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase + public sealed class RequiredAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase { + public RequiredAttributeAdapter(System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) : base(default(System.ComponentModel.DataAnnotations.RequiredAttribute), default(Microsoft.Extensions.Localization.IStringLocalizer)) => throw null; public override void AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; public override string GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase validationContext) => throw null; - public RequiredAttributeAdapter(System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) : base(default(System.ComponentModel.DataAnnotations.RequiredAttribute), default(Microsoft.Extensions.Localization.IStringLocalizer)) => throw null; } - public abstract class ValidationAttributeAdapter : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator where TAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute { + public ValidationAttributeAdapter(TAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) => throw null; public abstract void AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context); - public TAttribute Attribute { get => throw null; } - protected virtual string GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, params object[] arguments) => throw null; protected static bool MergeAttribute(System.Collections.Generic.IDictionary attributes, string key, string value) => throw null; - public ValidationAttributeAdapter(TAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) => throw null; + protected virtual string GetErrorMessage(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, params object[] arguments) => throw null; + public TAttribute Attribute { get => throw null; } } - public class ValidationAttributeAdapterProvider : Microsoft.AspNetCore.Mvc.DataAnnotations.IValidationAttributeAdapterProvider { public Microsoft.AspNetCore.Mvc.DataAnnotations.IAttributeAdapter GetAttributeAdapter(System.ComponentModel.DataAnnotations.ValidationAttribute attribute, Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) => throw null; public ValidationAttributeAdapterProvider() => throw null; } - public abstract class ValidationProviderAttribute : System.Attribute { public abstract System.Collections.Generic.IEnumerable GetValidationAttributes(); protected ValidationProviderAttribute() => throw null; } - } } } @@ -74,19 +64,17 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcDataAnnotationsMvcBuilderExtensions + public static partial class MvcDataAnnotationsMvcBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddDataAnnotationsLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddDataAnnotationsLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; } - - public static class MvcDataAnnotationsMvcCoreBuilderExtensions + public static partial class MvcDataAnnotationsMvcCoreBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotations(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotationsLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotationsLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Json.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Json.cs new file mode 100644 index 0000000000000..8436e1dea120e --- /dev/null +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Json.cs @@ -0,0 +1,2 @@ +// This file contains auto-generated code. +// Generated from `Microsoft.AspNetCore.Mvc.Formatters.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Xml.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Xml.cs index 3072a22a4da44..5a312ae103570 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Xml.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Formatters.Xml.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Formatters.Xml, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,186 +10,167 @@ namespace Formatters { public class XmlDataContractSerializerInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy { + public XmlDataContractSerializerInputFormatter(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; + public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; protected override bool CanReadType(System.Type type) => throw null; - protected virtual System.Runtime.Serialization.DataContractSerializer CreateSerializer(System.Type type) => throw null; protected virtual System.Xml.XmlReader CreateXmlReader(System.IO.Stream readStream, System.Text.Encoding encoding) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get => throw null; } - protected virtual System.Runtime.Serialization.DataContractSerializer GetCachedSerializer(System.Type type) => throw null; protected virtual System.Type GetSerializableType(System.Type declaredType) => throw null; - public int MaxDepth { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; - public System.Runtime.Serialization.DataContractSerializerSettings SerializerSettings { get => throw null; set => throw null; } + protected virtual System.Runtime.Serialization.DataContractSerializer CreateSerializer(System.Type type) => throw null; + protected virtual System.Runtime.Serialization.DataContractSerializer GetCachedSerializer(System.Type type) => throw null; public System.Collections.Generic.IList WrapperProviderFactories { get => throw null; } - public XmlDataContractSerializerInputFormatter(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; + public int MaxDepth { get => throw null; set { } } public System.Xml.XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas { get => throw null; } + public System.Runtime.Serialization.DataContractSerializerSettings SerializerSettings { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get => throw null; } } - public class XmlDataContractSerializerOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter { + public XmlDataContractSerializerOutputFormatter() => throw null; + public XmlDataContractSerializerOutputFormatter(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public XmlDataContractSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings) => throw null; + public XmlDataContractSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + protected virtual System.Type GetSerializableType(System.Type type) => throw null; protected override bool CanWriteType(System.Type type) => throw null; protected virtual System.Runtime.Serialization.DataContractSerializer CreateSerializer(System.Type type) => throw null; - public virtual System.Xml.XmlWriter CreateXmlWriter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; public virtual System.Xml.XmlWriter CreateXmlWriter(System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; + public virtual System.Xml.XmlWriter CreateXmlWriter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; + public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; protected virtual System.Runtime.Serialization.DataContractSerializer GetCachedSerializer(System.Type type) => throw null; - protected virtual System.Type GetSerializableType(System.Type type) => throw null; - public System.Runtime.Serialization.DataContractSerializerSettings SerializerSettings { get => throw null; set => throw null; } public System.Collections.Generic.IList WrapperProviderFactories { get => throw null; } - public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; public System.Xml.XmlWriterSettings WriterSettings { get => throw null; } - public XmlDataContractSerializerOutputFormatter() => throw null; - public XmlDataContractSerializerOutputFormatter(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public XmlDataContractSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings) => throw null; - public XmlDataContractSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Runtime.Serialization.DataContractSerializerSettings SerializerSettings { get => throw null; set { } } } - public class XmlSerializerInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy { + public XmlSerializerInputFormatter(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; + public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; protected override bool CanReadType(System.Type type) => throw null; - protected virtual System.Xml.Serialization.XmlSerializer CreateSerializer(System.Type type) => throw null; - protected virtual System.Xml.XmlReader CreateXmlReader(System.IO.Stream readStream, System.Text.Encoding encoding) => throw null; + protected virtual System.Type GetSerializableType(System.Type declaredType) => throw null; protected virtual System.Xml.XmlReader CreateXmlReader(System.IO.Stream readStream, System.Text.Encoding encoding, System.Type type) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get => throw null; } + protected virtual System.Xml.XmlReader CreateXmlReader(System.IO.Stream readStream, System.Text.Encoding encoding) => throw null; + protected virtual System.Xml.Serialization.XmlSerializer CreateSerializer(System.Type type) => throw null; protected virtual System.Xml.Serialization.XmlSerializer GetCachedSerializer(System.Type type) => throw null; - protected virtual System.Type GetSerializableType(System.Type declaredType) => throw null; - public int MaxDepth { get => throw null; set => throw null; } - public override System.Threading.Tasks.Task ReadRequestBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding) => throw null; public System.Collections.Generic.IList WrapperProviderFactories { get => throw null; } + public int MaxDepth { get => throw null; set { } } public System.Xml.XmlDictionaryReaderQuotas XmlDictionaryReaderQuotas { get => throw null; } - public XmlSerializerInputFormatter(Microsoft.AspNetCore.Mvc.MvcOptions options) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get => throw null; } } - public class XmlSerializerOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter { + public XmlSerializerOutputFormatter() => throw null; + public XmlSerializerOutputFormatter(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public XmlSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings) => throw null; + public XmlSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + protected virtual System.Type GetSerializableType(System.Type type) => throw null; protected override bool CanWriteType(System.Type type) => throw null; protected virtual System.Xml.Serialization.XmlSerializer CreateSerializer(System.Type type) => throw null; - public virtual System.Xml.XmlWriter CreateXmlWriter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; public virtual System.Xml.XmlWriter CreateXmlWriter(System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; - protected virtual System.Xml.Serialization.XmlSerializer GetCachedSerializer(System.Type type) => throw null; - protected virtual System.Type GetSerializableType(System.Type type) => throw null; + public virtual System.Xml.XmlWriter CreateXmlWriter(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.IO.TextWriter writer, System.Xml.XmlWriterSettings xmlWriterSettings) => throw null; + public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; protected virtual void Serialize(System.Xml.Serialization.XmlSerializer xmlSerializer, System.Xml.XmlWriter xmlWriter, object value) => throw null; + protected virtual System.Xml.Serialization.XmlSerializer GetCachedSerializer(System.Type type) => throw null; public System.Collections.Generic.IList WrapperProviderFactories { get => throw null; } - public override System.Threading.Tasks.Task WriteResponseBodyAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding) => throw null; public System.Xml.XmlWriterSettings WriterSettings { get => throw null; } - public XmlSerializerOutputFormatter() => throw null; - public XmlSerializerOutputFormatter(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public XmlSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings) => throw null; - public XmlSerializerOutputFormatter(System.Xml.XmlWriterSettings writerSettings, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; } - namespace Xml { public class DelegatingEnumerable : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public void Add(object item) => throw null; public DelegatingEnumerable() => throw null; public DelegatingEnumerable(System.Collections.Generic.IEnumerable source, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider elementWrapperProvider) => throw null; public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; + public void Add(object item) => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; } - public class DelegatingEnumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable { - public TWrapped Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } public DelegatingEnumerator(System.Collections.Generic.IEnumerator inner, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider wrapperProvider) => throw null; public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; + public TWrapped Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - public class EnumerableWrapperProvider : Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider { public EnumerableWrapperProvider(System.Type sourceEnumerableOfT, Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider elementWrapperProvider) => throw null; public object Wrap(object original) => throw null; public System.Type WrappingType { get => throw null; } } - public class EnumerableWrapperProviderFactory : Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProviderFactory { public EnumerableWrapperProviderFactory(System.Collections.Generic.IEnumerable wrapperProviderFactories) => throw null; public Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetProvider(Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext context) => throw null; } - public interface IUnwrappable { object Unwrap(System.Type declaredType); } - public interface IWrapperProvider { object Wrap(object original); System.Type WrappingType { get; } } - public interface IWrapperProviderFactory { Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetProvider(Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext context); } - public class MvcXmlOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public MvcXmlOptions() => throw null; } - - public class ProblemDetailsWrapper : Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable, System.Xml.Serialization.IXmlSerializable + public class ProblemDetailsWrapper : System.Xml.Serialization.IXmlSerializable, Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable { protected static string EmptyKey; - public System.Xml.Schema.XmlSchema GetSchema() => throw null; public ProblemDetailsWrapper() => throw null; public ProblemDetailsWrapper(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails) => throw null; - protected virtual void ReadValue(System.Xml.XmlReader reader, string name) => throw null; + public System.Xml.Schema.XmlSchema GetSchema() => throw null; public virtual void ReadXml(System.Xml.XmlReader reader) => throw null; - object Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable.Unwrap(System.Type declaredType) => throw null; + protected virtual void ReadValue(System.Xml.XmlReader reader, string name) => throw null; public virtual void WriteXml(System.Xml.XmlWriter writer) => throw null; + object Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable.Unwrap(System.Type declaredType) => throw null; } - - public class SerializableErrorWrapper : Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable, System.Xml.Serialization.IXmlSerializable + public sealed class SerializableErrorWrapper : System.Xml.Serialization.IXmlSerializable, Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable { - public System.Xml.Schema.XmlSchema GetSchema() => throw null; - public void ReadXml(System.Xml.XmlReader reader) => throw null; - public Microsoft.AspNetCore.Mvc.SerializableError SerializableError { get => throw null; } public SerializableErrorWrapper() => throw null; public SerializableErrorWrapper(Microsoft.AspNetCore.Mvc.SerializableError error) => throw null; - public object Unwrap(System.Type declaredType) => throw null; + public System.Xml.Schema.XmlSchema GetSchema() => throw null; + public void ReadXml(System.Xml.XmlReader reader) => throw null; public void WriteXml(System.Xml.XmlWriter writer) => throw null; + public object Unwrap(System.Type declaredType) => throw null; + public Microsoft.AspNetCore.Mvc.SerializableError SerializableError { get => throw null; } } - public class SerializableErrorWrapperProvider : Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider { - public SerializableErrorWrapperProvider() => throw null; public object Wrap(object original) => throw null; + public SerializableErrorWrapperProvider() => throw null; public System.Type WrappingType { get => throw null; } } - public class SerializableErrorWrapperProviderFactory : Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProviderFactory { public Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetProvider(Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext context) => throw null; public SerializableErrorWrapperProviderFactory() => throw null; } - public class ValidationProblemDetailsWrapper : Microsoft.AspNetCore.Mvc.Formatters.Xml.ProblemDetailsWrapper, Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable { - protected override void ReadValue(System.Xml.XmlReader reader, string name) => throw null; - object Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable.Unwrap(System.Type declaredType) => throw null; public ValidationProblemDetailsWrapper() => throw null; public ValidationProblemDetailsWrapper(Microsoft.AspNetCore.Mvc.ValidationProblemDetails problemDetails) => throw null; + protected override void ReadValue(System.Xml.XmlReader reader, string name) => throw null; public override void WriteXml(System.Xml.XmlWriter writer) => throw null; + object Microsoft.AspNetCore.Mvc.Formatters.Xml.IUnwrappable.Unwrap(System.Type declaredType) => throw null; } - public class WrapperProviderContext { + public WrapperProviderContext(System.Type declaredType, bool isSerialization) => throw null; public System.Type DeclaredType { get => throw null; } public bool IsSerialization { get => throw null; } - public WrapperProviderContext(System.Type declaredType, bool isSerialization) => throw null; } - - public static class WrapperProviderFactoriesExtensions + public static partial class WrapperProviderFactoriesExtensions { public static Microsoft.AspNetCore.Mvc.Formatters.Xml.IWrapperProvider GetWrapperProvider(this System.Collections.Generic.IEnumerable wrapperProviderFactories, Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext wrapperProviderContext) => throw null; } - } } namespace ModelBinding @@ -202,7 +182,6 @@ public class DataMemberRequiredBindingMetadataProvider : Microsoft.AspNetCore.Mv public void CreateBindingMetadata(Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingMetadataProviderContext context) => throw null; public DataMemberRequiredBindingMetadataProvider() => throw null; } - } } } @@ -211,24 +190,22 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcXmlMvcBuilderExtensions + public static partial class MvcXmlMvcBuilderExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlDataContractSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlDataContractSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddXmlSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; } - - public static class MvcXmlMvcCoreBuilderExtensions + public static partial class MvcXmlMvcCoreBuilderExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlDataContractSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlDataContractSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlOptions(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddXmlSerializerFormatters(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Localization.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Localization.cs index 2e1d41380f9cb..36f34bd48dccd 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Localization.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Localization.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Localization, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,85 +10,75 @@ namespace Localization { public class HtmlLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer { - public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; + public HtmlLocalizer(Microsoft.Extensions.Localization.IStringLocalizer localizer) => throw null; public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name) => throw null; public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments) => throw null; - public HtmlLocalizer(Microsoft.Extensions.Localization.IStringLocalizer localizer) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get => throw null; } + public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; protected virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString ToHtmlString(Microsoft.Extensions.Localization.LocalizedString result) => throw null; protected virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString ToHtmlString(Microsoft.Extensions.Localization.LocalizedString result, object[] arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get => throw null; } } - - public class HtmlLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer, Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer + public class HtmlLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer, Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer { - public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; + public HtmlLocalizer(Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory factory) => throw null; public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name) => throw null; public virtual Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments) => throw null; - public HtmlLocalizer(Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory factory) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get => throw null; } + public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get => throw null; } } - - public static class HtmlLocalizerExtensions + public static partial class HtmlLocalizerExtensions { - public static System.Collections.Generic.IEnumerable GetAllStrings(this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer) => throw null; public static Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString GetHtml(this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer, string name) => throw null; public static Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString GetHtml(this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer, string name, params object[] arguments) => throw null; + public static System.Collections.Generic.IEnumerable GetAllStrings(this Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer htmlLocalizer) => throw null; } - public class HtmlLocalizerFactory : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory { + public HtmlLocalizerFactory(Microsoft.Extensions.Localization.IStringLocalizerFactory localizerFactory) => throw null; public virtual Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Create(System.Type resourceSource) => throw null; public virtual Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Create(string baseName, string location) => throw null; - public HtmlLocalizerFactory(Microsoft.Extensions.Localization.IStringLocalizerFactory localizerFactory) => throw null; } - public interface IHtmlLocalizer { - System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures); Microsoft.Extensions.Localization.LocalizedString GetString(string name); Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] arguments); - Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get; } + System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures); Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name] { get; } + Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string name, params object[] arguments] { get; } } - public interface IHtmlLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer { } - public interface IHtmlLocalizerFactory { Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Create(System.Type resourceSource); Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer Create(string baseName, string location); } - public interface IViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer { } - public class LocalizedHtmlString : Microsoft.AspNetCore.Html.IHtmlContent { - public bool IsResourceNotFound { get => throw null; } public LocalizedHtmlString(string name, string value) => throw null; public LocalizedHtmlString(string name, string value, bool isResourceNotFound) => throw null; public LocalizedHtmlString(string name, string value, bool isResourceNotFound, params object[] arguments) => throw null; + public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public string Name { get => throw null; } public string Value { get => throw null; } - public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public bool IsResourceNotFound { get => throw null; } } - - public class ViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer, Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer, Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware + public class ViewLocalizer : Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer, Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizer, Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware { - public void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; - public System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; + public ViewLocalizer(Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory localizerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment) => throw null; public Microsoft.Extensions.Localization.LocalizedString GetString(string name) => throw null; public Microsoft.Extensions.Localization.LocalizedString GetString(string name, params object[] values) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string key, params object[] arguments] { get => throw null; } + public System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; + public void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string key] { get => throw null; } - public ViewLocalizer(Microsoft.AspNetCore.Mvc.Localization.IHtmlLocalizerFactory localizerFactory, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Localization.LocalizedHtmlString this[string key, params object[] arguments] { get => throw null; } } - } } } @@ -97,38 +86,36 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcLocalizationMvcBuilderExtensions + public static partial class MvcLocalizationMvcBuilderExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; } - - public static class MvcLocalizationMvcCoreBuilderExtensions + public static partial class MvcLocalizationMvcCoreBuilderExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, System.Action dataAnnotationsLocalizationOptionsSetupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Razor.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Razor.cs index eba7a1fa50ff4..32baa18d6b46c 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Razor.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.Razor.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.Razor, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,283 +10,248 @@ namespace ApplicationParts { public class CompiledRazorAssemblyApplicationPartFactory : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory { - public CompiledRazorAssemblyApplicationPartFactory() => throw null; - public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; public static System.Collections.Generic.IEnumerable GetDefaultApplicationParts(System.Reflection.Assembly assembly) => throw null; + public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; + public CompiledRazorAssemblyApplicationPartFactory() => throw null; } - public class CompiledRazorAssemblyPart : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart, Microsoft.AspNetCore.Mvc.ApplicationParts.IRazorCompiledItemProvider { - public System.Reflection.Assembly Assembly { get => throw null; } - System.Collections.Generic.IEnumerable Microsoft.AspNetCore.Mvc.ApplicationParts.IRazorCompiledItemProvider.CompiledItems { get => throw null; } public CompiledRazorAssemblyPart(System.Reflection.Assembly assembly) => throw null; + public System.Reflection.Assembly Assembly { get => throw null; } public override string Name { get => throw null; } + System.Collections.Generic.IEnumerable Microsoft.AspNetCore.Mvc.ApplicationParts.IRazorCompiledItemProvider.CompiledItems { get => throw null; } } - - public class ConsolidatedAssemblyApplicationPartFactory : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory + public sealed class ConsolidatedAssemblyApplicationPartFactory : Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory { - public ConsolidatedAssemblyApplicationPartFactory() => throw null; public override System.Collections.Generic.IEnumerable GetApplicationParts(System.Reflection.Assembly assembly) => throw null; + public ConsolidatedAssemblyApplicationPartFactory() => throw null; } - public interface IRazorCompiledItemProvider { System.Collections.Generic.IEnumerable CompiledItems { get; } } - } namespace Diagnostics { - public class AfterViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; + public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } } - - public class BeforeViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterViewPageEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; + public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeViewPageEventData(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } } - } namespace Razor { public class HelperResult : Microsoft.AspNetCore.Html.IHtmlContent { public HelperResult(System.Func asyncAction) => throw null; - public System.Func WriteAction { get => throw null; } public virtual void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public System.Func WriteAction { get => throw null; } } - - internal interface IModelTypeProvider - { - } - public interface IRazorPage { - Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get; set; } - void EnsureRenderedBodyOrSections(); System.Threading.Tasks.Task ExecuteAsync(); + void EnsureRenderedBodyOrSections(); + Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; } + Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get; set; } bool IsLayoutBeingRendered { get; set; } - string Layout { get; set; } string Path { get; set; } + string Layout { get; set; } System.Collections.Generic.IDictionary PreviousSectionWriters { get; set; } System.Collections.Generic.IDictionary SectionWriters { get; } - Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; } } - public interface IRazorPageActivator { void Activate(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context); } - public interface IRazorPageFactoryProvider { Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult CreateFactory(string relativePath); } - public interface IRazorViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine { Microsoft.AspNetCore.Mvc.Razor.RazorPageResult FindPage(Microsoft.AspNetCore.Mvc.ActionContext context, string pageName); - string GetAbsolutePath(string executingFilePath, string pagePath); Microsoft.AspNetCore.Mvc.Razor.RazorPageResult GetPage(string executingFilePath, string pagePath); + string GetAbsolutePath(string executingFilePath, string pagePath); } - public interface ITagHelperActivator { TTagHelper Create(Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper; } - public interface ITagHelperFactory { TTagHelper CreateTagHelper(Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper; } - public interface ITagHelperInitializer where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper { void Initialize(TTagHelper helper, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context); } - public interface IViewLocationExpander { - System.Collections.Generic.IEnumerable ExpandViewLocations(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable viewLocations); void PopulateValues(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context); + System.Collections.Generic.IEnumerable ExpandViewLocations(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable viewLocations); } - public class LanguageViewLocationExpander : Microsoft.AspNetCore.Mvc.Razor.IViewLocationExpander { - public virtual System.Collections.Generic.IEnumerable ExpandViewLocations(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable viewLocations) => throw null; public LanguageViewLocationExpander() => throw null; public LanguageViewLocationExpander(Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format) => throw null; public void PopulateValues(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context) => throw null; + public virtual System.Collections.Generic.IEnumerable ExpandViewLocations(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable viewLocations) => throw null; } - - public enum LanguageViewLocationExpanderFormat : int + public enum LanguageViewLocationExpanderFormat { SubFolder = 0, Suffix = 1, } - public abstract class RazorPage : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase { - public override void BeginContext(int position, int length, bool isLiteral) => throw null; - public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } - public override void DefineSection(string name, Microsoft.AspNetCore.Mvc.Razor.RenderAsyncDelegate section) => throw null; - public override void EndContext() => throw null; - public override void EnsureRenderedBodyOrSections() => throw null; + protected virtual Microsoft.AspNetCore.Html.IHtmlContent RenderBody() => throw null; public void IgnoreBody() => throw null; - public void IgnoreSection(string sectionName) => throw null; + public override void DefineSection(string name, Microsoft.AspNetCore.Mvc.Razor.RenderAsyncDelegate section) => throw null; public bool IsSectionDefined(string name) => throw null; - protected RazorPage() => throw null; - protected virtual Microsoft.AspNetCore.Html.IHtmlContent RenderBody() => throw null; public Microsoft.AspNetCore.Html.HtmlString RenderSection(string name) => throw null; public Microsoft.AspNetCore.Html.HtmlString RenderSection(string name, bool required) => throw null; public System.Threading.Tasks.Task RenderSectionAsync(string name) => throw null; public System.Threading.Tasks.Task RenderSectionAsync(string name, bool required) => throw null; + public void IgnoreSection(string sectionName) => throw null; + public override void EnsureRenderedBodyOrSections() => throw null; + public override void BeginContext(int position, int length, bool isLiteral) => throw null; + public override void EndContext() => throw null; + protected RazorPage() => throw null; + public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } } - public abstract class RazorPage : Microsoft.AspNetCore.Mvc.Razor.RazorPage { - public TModel Model { get => throw null; } protected RazorPage() => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } + public TModel Model { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } } - public class RazorPageActivator : Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator { - public void Activate(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) => throw null; public RazorPageActivator(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper jsonHelper, System.Diagnostics.DiagnosticSource diagnosticSource, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider modelExpressionProvider) => throw null; + public void Activate(Microsoft.AspNetCore.Mvc.Razor.IRazorPage page, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) => throw null; } - public abstract class RazorPageBase : Microsoft.AspNetCore.Mvc.Razor.IRazorPage { - public void AddHtmlAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral) => throw null; - public void BeginAddHtmlAttributeValues(Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext executionContext, string attributeName, int attributeValuesCount, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle attributeValueStyle) => throw null; - public abstract void BeginContext(int position, int length, bool isLiteral); - public virtual void BeginWriteAttribute(string name, string prefix, int prefixOffset, string suffix, int suffixOffset, int attributeValuesCount) => throw null; - public void BeginWriteTagHelperAttribute() => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get => throw null; set => throw null; } + public abstract System.Threading.Tasks.Task ExecuteAsync(); + public string InvalidTagHelperIndexerAssignment(string attributeName, string tagHelperTypeName, string propertyName) => throw null; public TTagHelper CreateTagHelper() where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper => throw null; + public void StartTagHelperWritingScope(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent EndTagHelperWritingScope() => throw null; + public void BeginWriteTagHelperAttribute() => throw null; + public string EndWriteTagHelperAttribute() => throw null; + protected virtual void PushWriter(System.IO.TextWriter writer) => throw null; + protected virtual System.IO.TextWriter PopWriter() => throw null; + public virtual string Href(string contentPath) => throw null; protected void DefineSection(string name, System.Func section) => throw null; public virtual void DefineSection(string name, Microsoft.AspNetCore.Mvc.Razor.RenderAsyncDelegate section) => throw null; - public System.Diagnostics.DiagnosticSource DiagnosticSource { get => throw null; set => throw null; } + public virtual void Write(object value) => throw null; + public virtual void Write(string value) => throw null; + public virtual void WriteLiteral(object value) => throw null; + public virtual void WriteLiteral(string value) => throw null; + public virtual void BeginWriteAttribute(string name, string prefix, int prefixOffset, string suffix, int suffixOffset, int attributeValuesCount) => throw null; + public void WriteAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral) => throw null; + public virtual void EndWriteAttribute() => throw null; + public void BeginAddHtmlAttributeValues(Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext executionContext, string attributeName, int attributeValuesCount, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle attributeValueStyle) => throw null; + public void AddHtmlAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral) => throw null; public void EndAddHtmlAttributeValues(Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext executionContext) => throw null; + public virtual System.Threading.Tasks.Task FlushAsync() => throw null; + public virtual Microsoft.AspNetCore.Html.HtmlString SetAntiforgeryCookieAndHeader() => throw null; + public abstract void BeginContext(int position, int length, bool isLiteral); public abstract void EndContext(); - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent EndTagHelperWritingScope() => throw null; - public virtual void EndWriteAttribute() => throw null; - public string EndWriteTagHelperAttribute() => throw null; public abstract void EnsureRenderedBodyOrSections(); - public abstract System.Threading.Tasks.Task ExecuteAsync(); - public virtual System.Threading.Tasks.Task FlushAsync() => throw null; - public virtual string Href(string contentPath) => throw null; - public System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; set => throw null; } - public string InvalidTagHelperIndexerAssignment(string attributeName, string tagHelperTypeName, string propertyName) => throw null; - public bool IsLayoutBeingRendered { get => throw null; set => throw null; } - public string Layout { get => throw null; set => throw null; } - public virtual System.IO.TextWriter Output { get => throw null; } - public string Path { get => throw null; set => throw null; } - protected internal virtual System.IO.TextWriter PopWriter() => throw null; - public System.Collections.Generic.IDictionary PreviousSectionWriters { get => throw null; set => throw null; } - protected internal virtual void PushWriter(System.IO.TextWriter writer) => throw null; protected RazorPageBase() => throw null; + public virtual Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public string Layout { get => throw null; set { } } + public virtual System.IO.TextWriter Output { get => throw null; } + public string Path { get => throw null; set { } } public System.Collections.Generic.IDictionary SectionWriters { get => throw null; } - public virtual Microsoft.AspNetCore.Html.HtmlString SetAntiforgeryCookieAndHeader() => throw null; - public void StartTagHelperWritingScope(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } - public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } public dynamic ViewBag { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } - public virtual void Write(object value) => throw null; - public virtual void Write(string value) => throw null; - public void WriteAttributeValue(string prefix, int prefixOffset, object value, int valueOffset, int valueLength, bool isLiteral) => throw null; - public virtual void WriteLiteral(object value) => throw null; - public virtual void WriteLiteral(string value) => throw null; + public bool IsLayoutBeingRendered { get => throw null; set { } } + public Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get => throw null; set { } } + public System.Collections.Generic.IDictionary PreviousSectionWriters { get => throw null; set { } } + public System.Diagnostics.DiagnosticSource DiagnosticSource { get => throw null; set { } } + public System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; set { } } + public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } } - public struct RazorPageFactoryResult { - public System.Func RazorPageFactory { get => throw null; } - // Stub generator skipped constructor public RazorPageFactoryResult(Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor viewDescriptor, System.Func razorPageFactory) => throw null; - public bool Success { get => throw null; } + public System.Func RazorPageFactory { get => throw null; } public Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor ViewDescriptor { get => throw null; } + public bool Success { get => throw null; } } - public struct RazorPageResult { + public RazorPageResult(string name, Microsoft.AspNetCore.Mvc.Razor.IRazorPage page) => throw null; + public RazorPageResult(string name, System.Collections.Generic.IEnumerable searchedLocations) => throw null; public string Name { get => throw null; } public Microsoft.AspNetCore.Mvc.Razor.IRazorPage Page { get => throw null; } - // Stub generator skipped constructor - public RazorPageResult(string name, System.Collections.Generic.IEnumerable searchedLocations) => throw null; - public RazorPageResult(string name, Microsoft.AspNetCore.Mvc.Razor.IRazorPage page) => throw null; public System.Collections.Generic.IEnumerable SearchedLocations { get => throw null; } } - public class RazorView : Microsoft.AspNetCore.Mvc.ViewEngines.IView { - public string Path { get => throw null; } - public Microsoft.AspNetCore.Mvc.Razor.IRazorPage RazorPage { get => throw null; } public RazorView(Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine viewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Collections.Generic.IReadOnlyList viewStartPages, Microsoft.AspNetCore.Mvc.Razor.IRazorPage razorPage, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; public virtual System.Threading.Tasks.Task RenderAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) => throw null; + public string Path { get => throw null; } + public Microsoft.AspNetCore.Mvc.Razor.IRazorPage RazorPage { get => throw null; } public System.Collections.Generic.IReadOnlyList ViewStartPages { get => throw null; } } - public class RazorViewEngine : Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine, Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine { - public Microsoft.AspNetCore.Mvc.Razor.RazorPageResult FindPage(Microsoft.AspNetCore.Mvc.ActionContext context, string pageName) => throw null; - public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage) => throw null; - public string GetAbsolutePath(string executingFilePath, string pagePath) => throw null; + public static string ViewExtension; + public RazorViewEngine(Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; public static string GetNormalizedRouteValue(Microsoft.AspNetCore.Mvc.ActionContext context, string key) => throw null; + public Microsoft.AspNetCore.Mvc.Razor.RazorPageResult FindPage(Microsoft.AspNetCore.Mvc.ActionContext context, string pageName) => throw null; public Microsoft.AspNetCore.Mvc.Razor.RazorPageResult GetPage(string executingFilePath, string pagePath) => throw null; + public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage) => throw null; public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult GetView(string executingFilePath, string viewPath, bool isMainPage) => throw null; - public RazorViewEngine(Microsoft.AspNetCore.Mvc.Razor.IRazorPageFactoryProvider pageFactory, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator pageActivator, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; - public static string ViewExtension; - protected internal Microsoft.Extensions.Caching.Memory.IMemoryCache ViewLookupCache { get => throw null; } + public string GetAbsolutePath(string executingFilePath, string pagePath) => throw null; + protected Microsoft.Extensions.Caching.Memory.IMemoryCache ViewLookupCache { get => throw null; } } - public class RazorViewEngineOptions { - public System.Collections.Generic.IList AreaPageViewLocationFormats { get => throw null; } - public System.Collections.Generic.IList AreaViewLocationFormats { get => throw null; } - public System.Collections.Generic.IList PageViewLocationFormats { get => throw null; } public RazorViewEngineOptions() => throw null; public System.Collections.Generic.IList ViewLocationExpanders { get => throw null; } public System.Collections.Generic.IList ViewLocationFormats { get => throw null; } + public System.Collections.Generic.IList AreaViewLocationFormats { get => throw null; } + public System.Collections.Generic.IList PageViewLocationFormats { get => throw null; } + public System.Collections.Generic.IList AreaPageViewLocationFormats { get => throw null; } } - public delegate System.Threading.Tasks.Task RenderAsyncDelegate(); - public class TagHelperInitializer : Microsoft.AspNetCore.Mvc.Razor.ITagHelperInitializer where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper { - public void Initialize(TTagHelper helper, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) => throw null; public TagHelperInitializer(System.Action action) => throw null; + public void Initialize(TTagHelper helper, Microsoft.AspNetCore.Mvc.Rendering.ViewContext context) => throw null; } - public class ViewLocationExpanderContext { + public ViewLocationExpanderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, string viewName, string controllerName, string areaName, string pageName, bool isMainPage) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public string AreaName { get => throw null; } + public string ViewName { get => throw null; } public string ControllerName { get => throw null; } - public bool IsMainPage { get => throw null; } public string PageName { get => throw null; } - public System.Collections.Generic.IDictionary Values { get => throw null; set => throw null; } - public ViewLocationExpanderContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, string viewName, string controllerName, string areaName, string pageName, bool isMainPage) => throw null; - public string ViewName { get => throw null; } + public string AreaName { get => throw null; } + public bool IsMainPage { get => throw null; } + public System.Collections.Generic.IDictionary Values { get => throw null; set { } } } - namespace Compilation { public class CompiledViewDescriptor @@ -295,45 +259,39 @@ public class CompiledViewDescriptor public CompiledViewDescriptor() => throw null; public CompiledViewDescriptor(Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem item) => throw null; public CompiledViewDescriptor(Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem item, Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute attribute) => throw null; - public System.Collections.Generic.IList ExpirationTokens { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem Item { get => throw null; set => throw null; } - public string RelativePath { get => throw null; set => throw null; } + public string RelativePath { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute ViewAttribute { get => throw null; set { } } + public System.Collections.Generic.IList ExpirationTokens { get => throw null; set { } } + public Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem Item { get => throw null; set { } } public System.Type Type { get => throw null; } - public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute ViewAttribute { get => throw null; set => throw null; } } - public interface IViewCompiler { System.Threading.Tasks.Task CompileAsync(string relativePath); } - public interface IViewCompilerProvider { Microsoft.AspNetCore.Mvc.Razor.Compilation.IViewCompiler GetCompiler(); } - public class RazorViewAttribute : System.Attribute { - public string Path { get => throw null; } public RazorViewAttribute(string path, System.Type viewType) => throw null; + public string Path { get => throw null; } public System.Type ViewType { get => throw null; } } - public class ViewsFeature { - public System.Collections.Generic.IList ViewDescriptors { get => throw null; } public ViewsFeature() => throw null; + public System.Collections.Generic.IList ViewDescriptors { get => throw null; } } - } namespace Infrastructure { - public class TagHelperMemoryCacheProvider + public sealed class TagHelperMemoryCacheProvider { - public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; set => throw null; } public TagHelperMemoryCacheProvider() => throw null; + public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } } - } namespace Internal { @@ -341,7 +299,6 @@ public class RazorInjectAttribute : System.Attribute { public RazorInjectAttribute() => throw null; } - } namespace TagHelpers { @@ -349,58 +306,50 @@ public class BodyTagHelper : Microsoft.AspNetCore.Mvc.Razor.TagHelpers.TagHelper { public BodyTagHelper(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager manager, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; } - public class HeadTagHelper : Microsoft.AspNetCore.Mvc.Razor.TagHelpers.TagHelperComponentTagHelper { public HeadTagHelper(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager manager, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) : base(default(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager), default(Microsoft.Extensions.Logging.ILoggerFactory)) => throw null; } - public interface ITagHelperComponentManager { System.Collections.Generic.ICollection Components { get; } } - public interface ITagHelperComponentPropertyActivator { void Activate(Microsoft.AspNetCore.Mvc.Rendering.ViewContext context, Microsoft.AspNetCore.Razor.TagHelpers.ITagHelperComponent tagHelperComponent); } - public abstract class TagHelperComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { + public TagHelperComponentTagHelper(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager manager, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public override void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentPropertyActivator PropertyActivator { get => throw null; set => throw null; } - public TagHelperComponentTagHelper(Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentManager manager, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Razor.TagHelpers.ITagHelperComponentPropertyActivator PropertyActivator { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } } - public class TagHelperFeature { public TagHelperFeature() => throw null; public System.Collections.Generic.IList TagHelpers { get => throw null; } } - - public class TagHelperFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider + public class TagHelperFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider { + public void PopulateFeature(System.Collections.Generic.IEnumerable parts, Microsoft.AspNetCore.Mvc.Razor.TagHelpers.TagHelperFeature feature) => throw null; protected virtual bool IncludePart(Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart part) => throw null; protected virtual bool IncludeType(System.Reflection.TypeInfo type) => throw null; - public void PopulateFeature(System.Collections.Generic.IEnumerable parts, Microsoft.AspNetCore.Mvc.Razor.TagHelpers.TagHelperFeature feature) => throw null; public TagHelperFeatureProvider() => throw null; } - public class UrlResolutionTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - protected System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; } - public override int Order { get => throw null; } + public UrlResolutionTagHelper(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; protected void ProcessUrlAttribute(string attributeName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - protected bool TryResolveUrl(string url, out Microsoft.AspNetCore.Html.IHtmlContent resolvedUrl) => throw null; protected bool TryResolveUrl(string url, out string resolvedUrl) => throw null; + protected bool TryResolveUrl(string url, out Microsoft.AspNetCore.Html.IHtmlContent resolvedUrl) => throw null; + public override int Order { get => throw null; } protected Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory UrlHelperFactory { get => throw null; } - public UrlResolutionTagHelper(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + protected System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } } - } } } @@ -409,21 +358,19 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcRazorMvcBuilderExtensions + public static partial class MvcRazorMvcBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddTagHelpersAsServices(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder InitializeTagHelper(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action initialize) where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper => throw null; } - - public static class MvcRazorMvcCoreBuilderExtensions + public static partial class MvcRazorMvcCoreBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorViewEngine(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorViewEngine(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddTagHelpersAsServices(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder InitializeTagHelper(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action initialize) where TTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.RazorPages.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.RazorPages.cs index b1967712e1c1f..779e407043d63 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.RazorPages.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.RazorPages.cs @@ -1,30 +1,27 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.RazorPages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public class PageActionEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder + public sealed class PageActionEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; } - - public static class RazorPagesEndpointRouteBuilderExtensions + public static partial class RazorPagesEndpointRouteBuilderExtensions { + public static Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder MapRazorPages(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string page) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string page) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string page, string area) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string page, string area) => throw null; public static void MapDynamicPageRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; public static void MapDynamicPageRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; public static void MapDynamicPageRoute(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, object state, int order) where TTransformer : Microsoft.AspNetCore.Mvc.Routing.DynamicRouteValueTransformer => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string page, string area) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string page, string area) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string page) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToPage(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string page) => throw null; - public static Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder MapRazorPages(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints) => throw null; } - } namespace Mvc { @@ -34,7 +31,6 @@ public interface IPageApplicationModelConvention : Microsoft.AspNetCore.Mvc.Appl { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel model); } - public interface IPageApplicationModelPartsProvider { Microsoft.AspNetCore.Mvc.ApplicationModels.PageHandlerModel CreateHandlerModel(System.Reflection.MethodInfo method); @@ -42,337 +38,303 @@ public interface IPageApplicationModelPartsProvider Microsoft.AspNetCore.Mvc.ApplicationModels.PagePropertyModel CreatePropertyModel(System.Reflection.PropertyInfo property); bool IsHandler(System.Reflection.MethodInfo methodInfo); } - public interface IPageApplicationModelProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModelProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModelProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModelProviderContext context); int Order { get; } } - public interface IPageConvention { } - public interface IPageHandlerModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageHandlerModel model); } - public interface IPageRouteModelConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention { void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel model); } - public interface IPageRouteModelProvider { - void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModelProviderContext context); void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModelProviderContext context); + void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModelProviderContext context); int Order { get; } } - public class PageApplicationModel { - public Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor ActionDescriptor { get => throw null; } - public string AreaName { get => throw null; } - public System.Reflection.TypeInfo DeclaredModelType { get => throw null; } - public System.Collections.Generic.IList EndpointMetadata { get => throw null; } - public System.Collections.Generic.IList Filters { get => throw null; } - public System.Collections.Generic.IList HandlerMethods { get => throw null; } - public System.Collections.Generic.IList HandlerProperties { get => throw null; } - public System.Reflection.TypeInfo HandlerType { get => throw null; } - public System.Collections.Generic.IReadOnlyList HandlerTypeAttributes { get => throw null; } - public System.Reflection.TypeInfo ModelType { get => throw null; set => throw null; } public PageApplicationModel(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor, System.Reflection.TypeInfo handlerType, System.Collections.Generic.IReadOnlyList handlerAttributes) => throw null; public PageApplicationModel(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor, System.Reflection.TypeInfo declaredModelType, System.Reflection.TypeInfo handlerType, System.Collections.Generic.IReadOnlyList handlerAttributes) => throw null; public PageApplicationModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel other) => throw null; - public System.Reflection.TypeInfo PageType { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary Properties { get => throw null; } + public Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor ActionDescriptor { get => throw null; } public string RelativePath { get => throw null; } - public string RouteTemplate { get => throw null; } public string ViewEnginePath { get => throw null; } + public string AreaName { get => throw null; } + public string RouteTemplate { get => throw null; } + public System.Collections.Generic.IList Filters { get => throw null; } + public System.Collections.Generic.IDictionary Properties { get => throw null; } + public System.Reflection.TypeInfo PageType { get => throw null; set { } } + public System.Reflection.TypeInfo DeclaredModelType { get => throw null; } + public System.Reflection.TypeInfo ModelType { get => throw null; set { } } + public System.Reflection.TypeInfo HandlerType { get => throw null; } + public System.Collections.Generic.IReadOnlyList HandlerTypeAttributes { get => throw null; } + public System.Collections.Generic.IList HandlerMethods { get => throw null; } + public System.Collections.Generic.IList HandlerProperties { get => throw null; } + public System.Collections.Generic.IList EndpointMetadata { get => throw null; } } - public class PageApplicationModelProviderContext { - public Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor ActionDescriptor { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel PageApplicationModel { get => throw null; set => throw null; } public PageApplicationModelProviderContext(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor descriptor, System.Reflection.TypeInfo pageTypeInfo) => throw null; + public Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor ActionDescriptor { get => throw null; } public System.Reflection.TypeInfo PageType { get => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel PageApplicationModel { get => throw null; set { } } } - public class PageConventionCollection : System.Collections.ObjectModel.Collection { - public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddAreaFolderApplicationModelConvention(string areaName, string folderPath, System.Action action) => throw null; - public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddAreaFolderRouteModelConvention(string areaName, string folderPath, System.Action action) => throw null; + public PageConventionCollection() => throw null; + public PageConventionCollection(System.Collections.Generic.IList conventions) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddPageApplicationModelConvention(string pageName, System.Action action) => throw null; public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddAreaPageApplicationModelConvention(string areaName, string pageName, System.Action action) => throw null; - public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddAreaPageRouteModelConvention(string areaName, string pageName, System.Action action) => throw null; public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddFolderApplicationModelConvention(string folderPath, System.Action action) => throw null; - public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddFolderRouteModelConvention(string folderPath, System.Action action) => throw null; - public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddPageApplicationModelConvention(string pageName, System.Action action) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention AddAreaFolderApplicationModelConvention(string areaName, string folderPath, System.Action action) => throw null; public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddPageRouteModelConvention(string pageName, System.Action action) => throw null; - public PageConventionCollection() => throw null; - public PageConventionCollection(System.Collections.Generic.IList conventions) => throw null; - public void RemoveType(System.Type pageConventionType) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddAreaPageRouteModelConvention(string areaName, string pageName, System.Action action) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddFolderRouteModelConvention(string folderPath, System.Action action) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention AddAreaFolderRouteModelConvention(string areaName, string folderPath, System.Action action) => throw null; public void RemoveType() where TPageConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention => throw null; + public void RemoveType(System.Type pageConventionType) => throw null; } - public class PageHandlerModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel { - public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } - public string HandlerName { get => throw null; set => throw null; } - public string HttpMethod { get => throw null; set => throw null; } - System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } - public System.Reflection.MethodInfo MethodInfo { get => throw null; } - public string Name { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel Page { get => throw null; set => throw null; } public PageHandlerModel(System.Reflection.MethodInfo handlerMethod, System.Collections.Generic.IReadOnlyList attributes) => throw null; public PageHandlerModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageHandlerModel other) => throw null; + public System.Reflection.MethodInfo MethodInfo { get => throw null; } + public string HttpMethod { get => throw null; set { } } + public string HandlerName { get => throw null; set { } } + public string Name { get => throw null; set { } } public System.Collections.Generic.IList Parameters { get => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel Page { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyList Attributes { get => throw null; } public System.Collections.Generic.IDictionary Properties { get => throw null; } + System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } } - - public class PageParameterModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel + public class PageParameterModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IBindingModel { - public Microsoft.AspNetCore.Mvc.ApplicationModels.PageHandlerModel Handler { get => throw null; set => throw null; } - System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } - public PageParameterModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageParameterModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; public PageParameterModel(System.Reflection.ParameterInfo parameterInfo, System.Collections.Generic.IReadOnlyList attributes) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public PageParameterModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageParameterModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.PageHandlerModel Handler { get => throw null; set { } } + System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } public System.Reflection.ParameterInfo ParameterInfo { get => throw null; } - public string ParameterName { get => throw null; set => throw null; } + public string ParameterName { get => throw null; set { } } } - public class PagePropertyModel : Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase, Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel, Microsoft.AspNetCore.Mvc.ApplicationModels.IPropertyModel { - System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } - public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel Page { get => throw null; set => throw null; } - public PagePropertyModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PagePropertyModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; public PagePropertyModel(System.Reflection.PropertyInfo propertyInfo, System.Collections.Generic.IReadOnlyList attributes) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public PagePropertyModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PagePropertyModel other) : base(default(Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModelBase)) => throw null; + public Microsoft.AspNetCore.Mvc.ApplicationModels.PageApplicationModel Page { get => throw null; set { } } + System.Reflection.MemberInfo Microsoft.AspNetCore.Mvc.ApplicationModels.ICommonModel.MemberInfo { get => throw null; } public System.Reflection.PropertyInfo PropertyInfo { get => throw null; } - public string PropertyName { get => throw null; set => throw null; } + public string PropertyName { get => throw null; set { } } } - - public class PageRouteMetadata + public sealed class PageRouteMetadata { - public string PageRoute { get => throw null; } public PageRouteMetadata(string pageRoute, string routeTemplate) => throw null; + public string PageRoute { get => throw null; } public string RouteTemplate { get => throw null; } } - public class PageRouteModel { - public string AreaName { get => throw null; } - public PageRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel other) => throw null; public PageRouteModel(string relativePath, string viewEnginePath) => throw null; public PageRouteModel(string relativePath, string viewEnginePath, string areaName) => throw null; - public System.Collections.Generic.IDictionary Properties { get => throw null; } + public PageRouteModel(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel other) => throw null; public string RelativePath { get => throw null; } - public Microsoft.AspNetCore.Routing.IOutboundParameterTransformer RouteParameterTransformer { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary RouteValues { get => throw null; } - public System.Collections.Generic.IList Selectors { get => throw null; } public string ViewEnginePath { get => throw null; } + public string AreaName { get => throw null; } + public System.Collections.Generic.IDictionary Properties { get => throw null; } + public System.Collections.Generic.IList Selectors { get => throw null; } + public System.Collections.Generic.IDictionary RouteValues { get => throw null; } + public Microsoft.AspNetCore.Routing.IOutboundParameterTransformer RouteParameterTransformer { get => throw null; set { } } } - public class PageRouteModelProviderContext { public PageRouteModelProviderContext() => throw null; public System.Collections.Generic.IList RouteModels { get => throw null; } } - - public class PageRouteTransformerConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention, Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention + public class PageRouteTransformerConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IPageRouteModelConvention, Microsoft.AspNetCore.Mvc.ApplicationModels.IPageConvention { - public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel model) => throw null; public PageRouteTransformerConvention(Microsoft.AspNetCore.Routing.IOutboundParameterTransformer parameterTransformer) => throw null; + public void Apply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel model) => throw null; protected virtual bool ShouldApply(Microsoft.AspNetCore.Mvc.ApplicationModels.PageRouteModel action) => throw null; } - } namespace Diagnostics { - public class AfterHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public AfterHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; public System.Collections.Generic.IReadOnlyDictionary Arguments { get => throw null; } - protected override int Count { get => throw null; } - public const string EventName = default; public Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethodDescriptor { get => throw null; } public object Instance { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } } - - public class AfterPageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public AfterPageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; + public static string EventName; + public AfterHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance, Microsoft.AspNetCore.Mvc.IActionResult result) => throw null; + public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } + public System.Collections.Generic.IReadOnlyDictionary Arguments { get => throw null; } + public Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethodDescriptor { get => throw null; } + public object Instance { get => throw null; } + public Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterPageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforePageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforePageFilterOnPageHandlerExecutionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutionContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public AfterPageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutionContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterPageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterPageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; public AfterPageFilterOnPageHandlerExecutionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } + public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterPageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforePageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforePageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public AfterPageFilterOnPageHandlerSelectedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterPageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterPageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterPageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public AfterPageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforeHandlerMethodEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforePageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - public System.Collections.Generic.IReadOnlyDictionary Arguments { get => throw null; } - public BeforeHandlerMethodEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, System.Collections.Generic.IReadOnlyDictionary arguments, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethodDescriptor, object instance) => throw null; + public static string EventName; + public BeforePageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; + public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethodDescriptor { get => throw null; } - public object Instance { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforePageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterPageFilterOnPageHandlerExecutedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterPageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public BeforePageFilterOnPageHandlerExecutedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext handlerExecutedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext HandlerExecutedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforePageFilterOnPageHandlerExecutingEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforePageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforePageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public BeforePageFilterOnPageHandlerExecutingEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutingContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutingContext { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforePageFilterOnPageHandlerExecutionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterPageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterPageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public BeforePageFilterOnPageHandlerExecutionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext handlerExecutionContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; + public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } - public Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext HandlerExecutionContext { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforePageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforePageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; public BeforePageFilterOnPageHandlerSelectedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } + public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class BeforePageFilterOnPageHandlerSelectionEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterPageFilterOnPageHandlerSelectedEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public AfterPageFilterOnPageHandlerSelectedEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IPageFilter filter) => throw null; public Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public BeforePageFilterOnPageHandlerSelectionEventData(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext handlerSelectedContext, Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter filter) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - public Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter Filter { get => throw null; } public Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext HandlerSelectedContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.Filters.IPageFilter Filter { get => throw null; } + protected override int Count { get => throw null; } protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - } namespace Filters { public interface IAsyncPageFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { - System.Threading.Tasks.Task OnPageHandlerExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutionDelegate next); System.Threading.Tasks.Task OnPageHandlerSelectionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context); + System.Threading.Tasks.Task OnPageHandlerExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutionDelegate next); } - public interface IPageFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { - void OnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext context); - void OnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context); void OnPageHandlerSelected(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context); + void OnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context); + void OnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext context); } - public class PageHandlerExecutedContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { + public PageHandlerExecutedContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethod, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; public virtual Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } - public virtual bool Canceled { get => throw null; set => throw null; } - public virtual System.Exception Exception { get => throw null; set => throw null; } - public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set => throw null; } - public virtual bool ExceptionHandled { get => throw null; set => throw null; } + public virtual bool Canceled { get => throw null; set { } } public virtual object HandlerInstance { get => throw null; } public virtual Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethod { get => throw null; } - public PageHandlerExecutedContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethod, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual System.Exception Exception { get => throw null; set { } } + public virtual System.Runtime.ExceptionServices.ExceptionDispatchInfo ExceptionDispatchInfo { get => throw null; set { } } + public virtual bool ExceptionHandled { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } } - public class PageHandlerExecutingContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { + public PageHandlerExecutingContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethod, System.Collections.Generic.IDictionary handlerArguments, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; public virtual Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set { } } public virtual System.Collections.Generic.IDictionary HandlerArguments { get => throw null; } - public virtual object HandlerInstance { get => throw null; } public virtual Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethod { get => throw null; } - public PageHandlerExecutingContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor handlerMethod, System.Collections.Generic.IDictionary handlerArguments, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.IActionResult Result { get => throw null; set => throw null; } + public virtual object HandlerInstance { get => throw null; } } - public delegate System.Threading.Tasks.Task PageHandlerExecutionDelegate(); - public class PageHandlerSelectedContext : Microsoft.AspNetCore.Mvc.Filters.FilterContext { + public PageHandlerSelectedContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; public virtual Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethod { get => throw null; set { } } public virtual object HandlerInstance { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor HandlerMethod { get => throw null; set => throw null; } - public PageHandlerSelectedContext(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, System.Collections.Generic.IList filters, object handlerInstance) : base(default(Microsoft.AspNetCore.Mvc.ActionContext), default(System.Collections.Generic.IList)) => throw null; } - } namespace RazorPages { @@ -380,438 +342,410 @@ public class CompiledPageActionDescriptor : Microsoft.AspNetCore.Mvc.RazorPages. { public CompiledPageActionDescriptor() => throw null; public CompiledPageActionDescriptor(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor) => throw null; - public System.Reflection.TypeInfo DeclaredModelTypeInfo { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set => throw null; } - public System.Collections.Generic.IList HandlerMethods { get => throw null; set => throw null; } - public System.Reflection.TypeInfo HandlerTypeInfo { get => throw null; set => throw null; } - public System.Reflection.TypeInfo ModelTypeInfo { get => throw null; set => throw null; } - public System.Reflection.TypeInfo PageTypeInfo { get => throw null; set => throw null; } - } - + public System.Collections.Generic.IList HandlerMethods { get => throw null; set { } } + public System.Reflection.TypeInfo HandlerTypeInfo { get => throw null; set { } } + public System.Reflection.TypeInfo DeclaredModelTypeInfo { get => throw null; set { } } + public System.Reflection.TypeInfo ModelTypeInfo { get => throw null; set { } } + public System.Reflection.TypeInfo PageTypeInfo { get => throw null; set { } } + public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; set { } } + } public interface IPageActivatorProvider { System.Func CreateActivator(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); - System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; System.Action CreateReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + virtual System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; } - public interface IPageFactoryProvider { - System.Func CreateAsyncPageDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; - System.Action CreatePageDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); System.Func CreatePageFactory(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + System.Action CreatePageDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + virtual System.Func CreateAsyncPageDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; } - public interface IPageModelActivatorProvider { System.Func CreateActivator(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); - System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; System.Action CreateReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + virtual System.Func CreateAsyncReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; } - public interface IPageModelFactoryProvider { - System.Func CreateAsyncModelDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; - System.Action CreateModelDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); System.Func CreateModelFactory(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + System.Action CreateModelDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor); + virtual System.Func CreateAsyncModelDisposer(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; } - public class NonHandlerAttribute : System.Attribute { public NonHandlerAttribute() => throw null; } - public abstract class Page : Microsoft.AspNetCore.Mvc.RazorPages.PageBase { protected Page() => throw null; } - public class PageActionDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor { - public string AreaName { get => throw null; set => throw null; } - public override string DisplayName { get => throw null; set => throw null; } public PageActionDescriptor() => throw null; public PageActionDescriptor(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor other) => throw null; - public string RelativePath { get => throw null; set => throw null; } - public string ViewEnginePath { get => throw null; set => throw null; } + public string RelativePath { get => throw null; set { } } + public string ViewEnginePath { get => throw null; set { } } + public string AreaName { get => throw null; set { } } + public override string DisplayName { get => throw null; set { } } } - public abstract class PageBase : Microsoft.AspNetCore.Mvc.Razor.RazorPageBase { + public override void EnsureRenderedBodyOrSections() => throw null; + public override void BeginContext(int position, int length, bool isLiteral) => throw null; + public override void EndContext() => throw null; public virtual Microsoft.AspNetCore.Mvc.BadRequestResult BadRequest() => throw null; - public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(object error) => throw null; - public override void BeginContext(int position, int length, bool isLiteral) => throw null; + public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public override void EndContext() => throw null; - public override void EnsureRenderedBodyOrSections() => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanent(string localUrl) => throw null; - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPreserveMethod(string localUrl) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound() => throw null; public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound(object value) => throw null; public virtual Microsoft.AspNetCore.Mvc.RazorPages.PageResult Page() => throw null; - protected PageBase() => throw null; - public Microsoft.AspNetCore.Mvc.RazorPages.PageContext PageContext { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object model) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanent(string url) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPreserveMethod(string url) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage() => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName = default(string), string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName = default(string), string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme) => throw null; - public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.StatusCodeResult StatusCode(int statusCode) => throw null; public virtual Microsoft.AspNetCore.Mvc.ObjectResult StatusCode(int statusCode, object value) => throw null; - public virtual System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix) => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; + public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized() => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object model) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName, object arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model) where TModel : class => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, System.Func propertyFilter) where TModel : class => throw null; public virtual System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; - public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, System.Func propertyFilter) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; + public virtual System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix) => throw null; + public System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string prefix, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; public virtual bool TryValidateModel(object model) => throw null; public virtual bool TryValidateModel(object model, string prefix) => throw null; - public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName, object arguments) => throw null; - public override Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + protected PageBase() => throw null; + public Microsoft.AspNetCore.Mvc.RazorPages.PageContext PageContext { get => throw null; set { } } + public override Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } + public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set { } } } - public class PageContext : Microsoft.AspNetCore.Mvc.ActionContext { - public virtual Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; set => throw null; } public PageContext() => throw null; public PageContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext) => throw null; - public virtual System.Collections.Generic.IList ValueProviderFactories { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } - public virtual System.Collections.Generic.IList> ViewStartFactories { get => throw null; set => throw null; } + public virtual Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor ActionDescriptor { get => throw null; set { } } + public virtual System.Collections.Generic.IList ValueProviderFactories { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public virtual System.Collections.Generic.IList> ViewStartFactories { get => throw null; set { } } } - public class PageContextAttribute : System.Attribute { public PageContextAttribute() => throw null; } - public abstract class PageModel : Microsoft.AspNetCore.Mvc.Filters.IAsyncPageFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IPageFilter { + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, System.Func propertyFilter) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string name) => throw null; + protected System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; public virtual Microsoft.AspNetCore.Mvc.BadRequestResult BadRequest() => throw null; - public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(object error) => throw null; + public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest(Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge(params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, string contentType, System.Text.Encoding contentEncoding) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(System.Byte[] fileContents, string contentType, string fileDownloadName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ContentResult Content(string content, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType) => throw null; + public virtual Microsoft.AspNetCore.Mvc.FileContentResult File(byte[] fileContents, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.FileStreamResult File(System.IO.Stream fileStream, string contentType, string fileDownloadName) => throw null; public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.VirtualFileResult File(string virtualPath, string contentType, string fileDownloadName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ForbidResult Forbid(params string[] authenticationSchemes) => throw null; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanent(string localUrl) => throw null; - public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPreserveMethod(string localUrl) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod(string localUrl) => throw null; public virtual Microsoft.AspNetCore.Mvc.NotFoundResult NotFound() => throw null; public virtual Microsoft.AspNetCore.Mvc.NotFoundObjectResult NotFound(object value) => throw null; - public virtual void OnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext context) => throw null; - public virtual void OnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context) => throw null; - public virtual System.Threading.Tasks.Task OnPageHandlerExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutionDelegate next) => throw null; - public virtual void OnPageHandlerSelected(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context) => throw null; - public virtual System.Threading.Tasks.Task OnPageHandlerSelectionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context) => throw null; public virtual Microsoft.AspNetCore.Mvc.RazorPages.PageResult Page() => throw null; - public Microsoft.AspNetCore.Mvc.RazorPages.PageContext PageContext { get => throw null; set => throw null; } - protected PageModel() => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object model) => throw null; public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile(string physicalPath, string contentType, string fileDownloadName) => throw null; - protected internal Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string url) => throw null; + protected Microsoft.AspNetCore.Mvc.RedirectResult Redirect(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanent(string url) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPreserveMethod(string url) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod(string url) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToAction(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent(string actionName, string controllerName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPreserveMethod(string actionName = default(string), string controllerName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanentPreserveMethod(string actionName, string controllerName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage() => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, object routeValues) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName = default(string), string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName = default(string), string pageHandler = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, string fragment) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePreserveMethod(string routeName = default(string), object routeValues = default(object), string fragment = default(string)) => throw null; - public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; + public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanentPreserveMethod(string pageName, string pageHandler, object routeValues, string fragment) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme) => throw null; - public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignInResult SignIn(System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme) => throw null; public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(params string[] authenticationSchemes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.SignOutResult SignOut(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes) => throw null; public virtual Microsoft.AspNetCore.Mvc.StatusCodeResult StatusCode(int statusCode) => throw null; public virtual Microsoft.AspNetCore.Mvc.ObjectResult StatusCode(int statusCode, object value) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string name) => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(object model, System.Type modelType, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, System.Func propertyFilter) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, System.Func propertyFilter) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; - protected internal System.Threading.Tasks.Task TryUpdateModelAsync(TModel model, string name, params System.Linq.Expressions.Expression>[] includeExpressions) where TModel : class => throw null; - public virtual bool TryValidateModel(object model) => throw null; - public virtual bool TryValidateModel(object model, string name) => throw null; public virtual Microsoft.AspNetCore.Mvc.UnauthorizedResult Unauthorized() => throw null; - public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set => throw null; } - public System.Security.Claims.ClaimsPrincipal User { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult Partial(string viewName, object model) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName, object arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; + public virtual bool TryValidateModel(object model) => throw null; + public virtual bool TryValidateModel(object model, string name) => throw null; + public virtual void OnPageHandlerSelected(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context) => throw null; + public virtual void OnPageHandlerExecuting(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context) => throw null; + public virtual void OnPageHandlerExecuted(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutedContext context) => throw null; + public virtual System.Threading.Tasks.Task OnPageHandlerSelectionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerSelectedContext context) => throw null; + public virtual System.Threading.Tasks.Task OnPageHandlerExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.PageHandlerExecutionDelegate next) => throw null; + protected PageModel() => throw null; + public Microsoft.AspNetCore.Mvc.RazorPages.PageContext PageContext { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } + public Microsoft.AspNetCore.Http.HttpResponse Response { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public System.Security.Claims.ClaimsPrincipal User { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; } } - public class PageResult : Microsoft.AspNetCore.Mvc.ActionResult { - public string ContentType { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public object Model { get => throw null; } - public Microsoft.AspNetCore.Mvc.RazorPages.PageBase Page { get => throw null; set => throw null; } public PageResult() => throw null; - public int? StatusCode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } + public string ContentType { get => throw null; set { } } + public object Model { get => throw null; } + public Microsoft.AspNetCore.Mvc.RazorPages.PageBase Page { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public int? StatusCode { get => throw null; set { } } } - public class RazorPagesOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection Conventions { get => throw null; set => throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public RazorPagesOptions() => throw null; - public string RootDirectory { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection Conventions { get => throw null; } + public string RootDirectory { get => throw null; set { } } } - namespace Infrastructure { - public class CompiledPageActionDescriptorProvider : Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider + public sealed class CompiledPageActionDescriptorProvider : Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider { public CompiledPageActionDescriptorProvider(System.Collections.Generic.IEnumerable pageRouteModelProviders, System.Collections.Generic.IEnumerable applicationModelProviders, Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager applicationPartManager, Microsoft.Extensions.Options.IOptions mvcOptions, Microsoft.Extensions.Options.IOptions pageOptions) => throw null; - public void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; public void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; + public void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; public int Order { get => throw null; } } - public class HandlerMethodDescriptor { public HandlerMethodDescriptor() => throw null; - public string HttpMethod { get => throw null; set => throw null; } - public System.Reflection.MethodInfo MethodInfo { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - public System.Collections.Generic.IList Parameters { get => throw null; set => throw null; } + public System.Reflection.MethodInfo MethodInfo { get => throw null; set { } } + public string HttpMethod { get => throw null; set { } } + public string Name { get => throw null; set { } } + public System.Collections.Generic.IList Parameters { get => throw null; set { } } } - public class HandlerParameterDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.Infrastructure.IParameterInfoParameterDescriptor { public HandlerParameterDescriptor() => throw null; - public System.Reflection.ParameterInfo ParameterInfo { get => throw null; set => throw null; } + public System.Reflection.ParameterInfo ParameterInfo { get => throw null; set { } } } - public interface IPageHandlerMethodSelector { Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.HandlerMethodDescriptor Select(Microsoft.AspNetCore.Mvc.RazorPages.PageContext context); } - public interface IPageLoader { Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor Load(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor); } - public class PageActionDescriptorProvider : Microsoft.AspNetCore.Mvc.Abstractions.IActionDescriptorProvider { + public PageActionDescriptorProvider(System.Collections.Generic.IEnumerable pageRouteModelProviders, Microsoft.Extensions.Options.IOptions mvcOptionsAccessor, Microsoft.Extensions.Options.IOptions pagesOptionsAccessor) => throw null; + public void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; protected System.Collections.Generic.IList BuildModel() => throw null; public void OnProvidersExecuted(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; - public void OnProvidersExecuting(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptorProviderContext context) => throw null; - public int Order { get => throw null; set => throw null; } - public PageActionDescriptorProvider(System.Collections.Generic.IEnumerable pageRouteModelProviders, Microsoft.Extensions.Options.IOptions mvcOptionsAccessor, Microsoft.Extensions.Options.IOptions pagesOptionsAccessor) => throw null; + public int Order { get => throw null; set { } } } - public class PageBoundPropertyDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.Infrastructure.IPropertyInfoParameterDescriptor { public PageBoundPropertyDescriptor() => throw null; - public System.Reflection.PropertyInfo Property { get => throw null; set => throw null; } + public System.Reflection.PropertyInfo Property { get => throw null; set { } } System.Reflection.PropertyInfo Microsoft.AspNetCore.Mvc.Infrastructure.IPropertyInfoParameterDescriptor.PropertyInfo { get => throw null; } } - public abstract class PageLoader : Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.IPageLoader { - Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.IPageLoader.Load(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor) => throw null; public abstract System.Threading.Tasks.Task LoadAsync(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor); public virtual System.Threading.Tasks.Task LoadAsync(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor, Microsoft.AspNetCore.Http.EndpointMetadataCollection endpointMetadata) => throw null; + Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.IPageLoader.Load(Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor actionDescriptor) => throw null; protected PageLoader() => throw null; } - public class PageModelAttribute : System.Attribute { public PageModelAttribute() => throw null; } - public class PageResultExecutor : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, Microsoft.AspNetCore.Mvc.RazorPages.PageResult result) => throw null; public PageResultExecutor(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine compositeViewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorViewEngine razorViewEngine, Microsoft.AspNetCore.Mvc.Razor.IRazorPageActivator razorPageActivator, System.Diagnostics.DiagnosticListener diagnosticListener, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) : base(default(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(System.Diagnostics.DiagnosticListener)) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.RazorPages.PageContext pageContext, Microsoft.AspNetCore.Mvc.RazorPages.PageResult result) => throw null; } - public class PageViewLocationExpander : Microsoft.AspNetCore.Mvc.Razor.IViewLocationExpander { public System.Collections.Generic.IEnumerable ExpandViewLocations(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context, System.Collections.Generic.IEnumerable viewLocations) => throw null; - public PageViewLocationExpander() => throw null; public void PopulateValues(Microsoft.AspNetCore.Mvc.Razor.ViewLocationExpanderContext context) => throw null; + public PageViewLocationExpander() => throw null; } - public class RazorPageAdapter : Microsoft.AspNetCore.Mvc.Razor.IRazorPage { - public Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get => throw null; set => throw null; } + public RazorPageAdapter(Microsoft.AspNetCore.Mvc.Razor.RazorPageBase page, System.Type modelType) => throw null; public void EnsureRenderedBodyOrSections() => throw null; public System.Threading.Tasks.Task ExecuteAsync() => throw null; - public bool IsLayoutBeingRendered { get => throw null; set => throw null; } - public string Layout { get => throw null; set => throw null; } - public string Path { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary PreviousSectionWriters { get => throw null; set => throw null; } - public RazorPageAdapter(Microsoft.AspNetCore.Mvc.Razor.RazorPageBase page, System.Type modelType) => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Html.IHtmlContent BodyContent { get => throw null; set { } } + public bool IsLayoutBeingRendered { get => throw null; set { } } + public string Path { get => throw null; set { } } + public string Layout { get => throw null; set { } } + public System.Collections.Generic.IDictionary PreviousSectionWriters { get => throw null; set { } } public System.Collections.Generic.IDictionary SectionWriters { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } } - public class RazorPageAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute { public RazorPageAttribute(string path, System.Type viewType, string routeTemplate) : base(default(string), default(System.Type)) => throw null; public string RouteTemplate { get => throw null; } } - public class ServiceBasedPageModelActivatorProvider : Microsoft.AspNetCore.Mvc.RazorPages.IPageModelActivatorProvider { public System.Func CreateActivator(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; public System.Action CreateReleaser(Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor) => throw null; public ServiceBasedPageModelActivatorProvider() => throw null; } - } } } @@ -820,41 +754,38 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcRazorPagesMvcBuilderExtensions + public static partial class MvcRazorPagesMvcBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorPagesOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesAtContentRoot(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesRoot(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, string rootDirectory) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder WithRazorPagesAtContentRoot(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; } - - public static class MvcRazorPagesMvcCoreBuilderExtensions + public static partial class MvcRazorPagesMvcCoreBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorPages(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorPages(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder WithRazorPagesRoot(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, string rootDirectory) => throw null; } - - public static class PageConventionCollectionExtensions + public static partial class PageConventionCollectionExtensions { + public static Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention ConfigureFilter(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, System.Func factory) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection ConfigureFilter(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection Add(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.ApplicationModels.IParameterModelBaseConvention convention) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddAreaPageRoute(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName, string route) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddPageRoute(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string route) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToPage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToAreaPage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToPage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath, string policy) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AllowAnonymousToAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizePage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string policy) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizePage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaPage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaPage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName, string policy) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath) => throw null; public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath, string policy) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizePage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizePage(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string policy) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.IPageApplicationModelConvention ConfigureFilter(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, System.Func factory) => throw null; - public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection ConfigureFilter(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata filter) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string folderPath) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AuthorizeAreaFolder(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string folderPath, string policy) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddPageRoute(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string pageName, string route) => throw null; + public static Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection AddAreaPageRoute(this Microsoft.AspNetCore.Mvc.ApplicationModels.PageConventionCollection conventions, string areaName, string pageName, string route) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.TagHelpers.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.TagHelpers.cs index 1baf6c52f1434..bd83715b0f173 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.TagHelpers.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.TagHelpers.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.TagHelpers, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,385 +8,350 @@ namespace Mvc { namespace Rendering { - public enum ValidationSummary : int + public enum ValidationSummary { - All = 2, - ModelOnly = 1, None = 0, + ModelOnly = 1, + All = 2, } - } namespace TagHelpers { public class AnchorTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public string Action { get => throw null; set => throw null; } public AnchorTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public string Area { get => throw null; set => throw null; } - public string Controller { get => throw null; set => throw null; } - public string Fragment { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - public string Host { get => throw null; set => throw null; } - public override int Order { get => throw null; } - public string Page { get => throw null; set => throw null; } - public string PageHandler { get => throw null; set => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Protocol { get => throw null; set => throw null; } - public string Route { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public string Action { get => throw null; set { } } + public string Controller { get => throw null; set { } } + public string Area { get => throw null; set { } } + public string Page { get => throw null; set { } } + public string PageHandler { get => throw null; set { } } + public string Protocol { get => throw null; set { } } + public string Host { get => throw null; set { } } + public string Fragment { get => throw null; set { } } + public string Route { get => throw null; set { } } + public System.Collections.Generic.IDictionary RouteValues { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } } - public class CacheTagHelper : Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperBase { public static string CacheKeyPrefix; public CacheTagHelper(Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperMemoryCacheFactory factory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) : base(default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; - protected Microsoft.Extensions.Caching.Memory.IMemoryCache MemoryCache { get => throw null; } - public Microsoft.Extensions.Caching.Memory.CacheItemPriority? Priority { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + protected Microsoft.Extensions.Caching.Memory.IMemoryCache MemoryCache { get => throw null; } + public Microsoft.Extensions.Caching.Memory.CacheItemPriority? Priority { get => throw null; set { } } } - public abstract class CacheTagHelperBase : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public CacheTagHelperBase(System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public static System.TimeSpan DefaultExpiration; - public bool Enabled { get => throw null; set => throw null; } - public System.TimeSpan? ExpiresAfter { get => throw null; set => throw null; } - public System.DateTimeOffset? ExpiresOn { get => throw null; set => throw null; } - public System.TimeSpan? ExpiresSliding { get => throw null; set => throw null; } - protected System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; } + public CacheTagHelperBase(System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public override int Order { get => throw null; } - public string VaryBy { get => throw null; set => throw null; } - public string VaryByCookie { get => throw null; set => throw null; } - public bool VaryByCulture { get => throw null; set => throw null; } - public string VaryByHeader { get => throw null; set => throw null; } - public string VaryByQuery { get => throw null; set => throw null; } - public string VaryByRoute { get => throw null; set => throw null; } - public bool VaryByUser { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + protected System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public string VaryBy { get => throw null; set { } } + public string VaryByHeader { get => throw null; set { } } + public string VaryByQuery { get => throw null; set { } } + public string VaryByRoute { get => throw null; set { } } + public string VaryByCookie { get => throw null; set { } } + public bool VaryByUser { get => throw null; set { } } + public bool VaryByCulture { get => throw null; set { } } + public System.DateTimeOffset? ExpiresOn { get => throw null; set { } } + public System.TimeSpan? ExpiresAfter { get => throw null; set { } } + public System.TimeSpan? ExpiresSliding { get => throw null; set { } } + public bool Enabled { get => throw null; set { } } } - public class CacheTagHelperMemoryCacheFactory { - public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } public CacheTagHelperMemoryCacheFactory(Microsoft.Extensions.Options.IOptions options) => throw null; + public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } } - public class CacheTagHelperOptions { public CacheTagHelperOptions() => throw null; - public System.Int64 SizeLimit { get => throw null; set => throw null; } + public long SizeLimit { get => throw null; set { } } } - - public class ComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper + public sealed class ComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public ComponentTagHelper() => throw null; - public System.Type ComponentType { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary Parameters { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.RenderMode RenderMode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public ComponentTagHelper() => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public System.Collections.Generic.IDictionary Parameters { get => throw null; set { } } + public System.Type ComponentType { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.RenderMode RenderMode { get => throw null; set { } } } - public class DistributedCacheTagHelper : Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperBase { public static string CacheKeyPrefix; public DistributedCacheTagHelper(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperService distributedCacheService, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) : base(default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; - protected Microsoft.Extensions.Caching.Memory.IMemoryCache MemoryCache { get => throw null; } - public string Name { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + protected Microsoft.Extensions.Caching.Memory.IMemoryCache MemoryCache { get => throw null; } + public string Name { get => throw null; set { } } } - public class EnvironmentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { public EnvironmentTagHelper(Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment) => throw null; - public string Exclude { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } - public string Include { get => throw null; set => throw null; } - public string Names { get => throw null; set => throw null; } - public override int Order { get => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + public override int Order { get => throw null; } + public string Names { get => throw null; set { } } + public string Include { get => throw null; set { } } + public string Exclude { get => throw null; set { } } + protected Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } } - public class FormActionTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public string Action { get => throw null; set => throw null; } - public string Area { get => throw null; set => throw null; } - public string Controller { get => throw null; set => throw null; } public FormActionTagHelper(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) => throw null; - public string Fragment { get => throw null; set => throw null; } - public override int Order { get => throw null; } - public string Page { get => throw null; set => throw null; } - public string PageHandler { get => throw null; set => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Route { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary RouteValues { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } protected Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory UrlHelperFactory { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public string Action { get => throw null; set { } } + public string Controller { get => throw null; set { } } + public string Area { get => throw null; set { } } + public string Page { get => throw null; set { } } + public string PageHandler { get => throw null; set { } } + public string Fragment { get => throw null; set { } } + public string Route { get => throw null; set { } } + public System.Collections.Generic.IDictionary RouteValues { get => throw null; set { } } } - public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public string Action { get => throw null; set => throw null; } - public bool? Antiforgery { get => throw null; set => throw null; } - public string Area { get => throw null; set => throw null; } - public string Controller { get => throw null; set => throw null; } public FormTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public string Fragment { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - public string Method { get => throw null; set => throw null; } - public override int Order { get => throw null; } - public string Page { get => throw null; set => throw null; } - public string PageHandler { get => throw null; set => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Route { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary RouteValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public string Action { get => throw null; set { } } + public string Controller { get => throw null; set { } } + public string Area { get => throw null; set { } } + public string Page { get => throw null; set { } } + public string PageHandler { get => throw null; set { } } + public bool? Antiforgery { get => throw null; set { } } + public string Fragment { get => throw null; set { } } + public string Route { get => throw null; set { } } + public string Method { get => throw null; set { } } + public System.Collections.Generic.IDictionary RouteValues { get => throw null; set { } } } - public class GlobbingUrlBuilder { + public GlobbingUrlBuilder(Microsoft.Extensions.FileProviders.IFileProvider fileProvider, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, Microsoft.AspNetCore.Http.PathString requestPathBase) => throw null; public virtual System.Collections.Generic.IReadOnlyList BuildUrlList(string staticUrl, string includePattern, string excludePattern) => throw null; public Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; } - public GlobbingUrlBuilder(Microsoft.Extensions.FileProviders.IFileProvider fileProvider, Microsoft.Extensions.Caching.Memory.IMemoryCache cache, Microsoft.AspNetCore.Http.PathString requestPathBase) => throw null; public Microsoft.AspNetCore.Http.PathString RequestPathBase { get => throw null; } } - public class ImageTagHelper : Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper { - public bool AppendVersion { get => throw null; set => throw null; } - protected internal Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } - protected internal Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } public ImageTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) : base(default(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory), default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; public ImageTagHelper(Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) : base(default(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory), default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; - public override int Order { get => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Src { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public string Src { get => throw null; set { } } + public bool AppendVersion { get => throw null; set { } } + protected Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } + protected Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } } - public class InputTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - public string Format { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - protected string GetInputType(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, out string inputTypeHint) => throw null; public InputTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public string InputTypeName { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - public override int Order { get => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Value { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + protected string GetInputType(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, out string inputTypeHint) => throw null; + public override int Order { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } + public string Format { get => throw null; set { } } + public string InputTypeName { get => throw null; set { } } + public string Name { get => throw null; set { } } + public string Value { get => throw null; set { } } } - public class LabelTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } public LabelTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public override int Order { get => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } } - public class LinkTagHelper : Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper { - public bool? AppendVersion { get => throw null; set => throw null; } - protected internal Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } - public string FallbackHref { get => throw null; set => throw null; } - public string FallbackHrefExclude { get => throw null; set => throw null; } - public string FallbackHrefInclude { get => throw null; set => throw null; } - public string FallbackTestClass { get => throw null; set => throw null; } - public string FallbackTestProperty { get => throw null; set => throw null; } - public string FallbackTestValue { get => throw null; set => throw null; } - protected internal Microsoft.AspNetCore.Mvc.TagHelpers.GlobbingUrlBuilder GlobbingUrlBuilder { get => throw null; set => throw null; } - protected internal Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } - public string Href { get => throw null; set => throw null; } - public string HrefExclude { get => throw null; set => throw null; } - public string HrefInclude { get => throw null; set => throw null; } - protected System.Text.Encodings.Web.JavaScriptEncoder JavaScriptEncoder { get => throw null; } public LinkTagHelper(Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) : base(default(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory), default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; - public override int Order { get => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public bool SuppressFallbackIntegrity { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public string Href { get => throw null; set { } } + public string HrefInclude { get => throw null; set { } } + public string HrefExclude { get => throw null; set { } } + public string FallbackHref { get => throw null; set { } } + public bool SuppressFallbackIntegrity { get => throw null; set { } } + public bool? AppendVersion { get => throw null; set { } } + public string FallbackHrefInclude { get => throw null; set { } } + public string FallbackHrefExclude { get => throw null; set { } } + public string FallbackTestClass { get => throw null; set { } } + public string FallbackTestProperty { get => throw null; set { } } + public string FallbackTestValue { get => throw null; set { } } + protected Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } + protected Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } + protected System.Text.Encodings.Web.JavaScriptEncoder JavaScriptEncoder { get => throw null; } + protected Microsoft.AspNetCore.Mvc.TagHelpers.GlobbingUrlBuilder GlobbingUrlBuilder { get => throw null; set { } } } - public class OptionTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } public OptionTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public override int Order { get => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public string Value { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public string Value { get => throw null; set { } } } - public class PartialTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public string FallbackName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - public object Model { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - public bool Optional { get => throw null; set => throw null; } public PartialTagHelper(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope viewBufferScope) => throw null; public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } + public string Name { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } + public object Model { get => throw null; set { } } + public bool Optional { get => throw null; set { } } + public string FallbackName { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } } - public class PersistComponentStateTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public PersistComponentStateTagHelper() => throw null; - public Microsoft.AspNetCore.Mvc.TagHelpers.PersistenceMode? PersistenceMode { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public PersistComponentStateTagHelper() => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.TagHelpers.PersistenceMode? PersistenceMode { get => throw null; set { } } } - - public enum PersistenceMode : int + public enum PersistenceMode { Server = 0, WebAssembly = 1, } - public class RenderAtEndOfFormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { public override void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; - public override int Order { get => throw null; } public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public RenderAtEndOfFormTagHelper() => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } } - public class ScriptTagHelper : Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper { - public bool? AppendVersion { get => throw null; set => throw null; } - protected internal Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } - public string FallbackSrc { get => throw null; set => throw null; } - public string FallbackSrcExclude { get => throw null; set => throw null; } - public string FallbackSrcInclude { get => throw null; set => throw null; } - public string FallbackTestExpression { get => throw null; set => throw null; } - protected internal Microsoft.AspNetCore.Mvc.TagHelpers.GlobbingUrlBuilder GlobbingUrlBuilder { get => throw null; set => throw null; } - protected internal Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } - protected System.Text.Encodings.Web.JavaScriptEncoder JavaScriptEncoder { get => throw null; } - public override int Order { get => throw null; } - public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public ScriptTagHelper(Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.AspNetCore.Mvc.Razor.Infrastructure.TagHelperMemoryCacheProvider cacheProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.IFileVersionProvider fileVersionProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.JavaScriptEncoder javaScriptEncoder, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory) : base(default(Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory), default(System.Text.Encodings.Web.HtmlEncoder)) => throw null; - public string Src { get => throw null; set => throw null; } - public string SrcExclude { get => throw null; set => throw null; } - public string SrcInclude { get => throw null; set => throw null; } - public bool SuppressFallbackIntegrity { get => throw null; set => throw null; } + public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + public override int Order { get => throw null; } + public string Src { get => throw null; set { } } + public string SrcInclude { get => throw null; set { } } + public string SrcExclude { get => throw null; set { } } + public string FallbackSrc { get => throw null; set { } } + public bool SuppressFallbackIntegrity { get => throw null; set { } } + public bool? AppendVersion { get => throw null; set { } } + public string FallbackSrcInclude { get => throw null; set { } } + public string FallbackSrcExclude { get => throw null; set { } } + public string FallbackTestExpression { get => throw null; set { } } + protected Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment { get => throw null; } + protected Microsoft.Extensions.Caching.Memory.IMemoryCache Cache { get => throw null; } + protected System.Text.Encodings.Web.JavaScriptEncoder JavaScriptEncoder { get => throw null; } + protected Microsoft.AspNetCore.Mvc.TagHelpers.GlobbingUrlBuilder GlobbingUrlBuilder { get => throw null; set { } } } - public class SelectTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public SelectTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; public override void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; - public System.Collections.Generic.IEnumerable Items { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } - public override int Order { get => throw null; } public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public SelectTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override int Order { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } + public System.Collections.Generic.IEnumerable Items { get => throw null; set { } } + public string Name { get => throw null; set { } } } - - public static class TagHelperOutputExtensions + public static partial class TagHelperOutputExtensions { - public static void AddClass(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public static void CopyHtmlAttribute(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string attributeName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; public static void MergeAttributes(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder) => throw null; - public static void RemoveClass(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public static void RemoveRange(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, System.Collections.Generic.IEnumerable attributes) => throw null; + public static void AddClass(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; + public static void RemoveClass(this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; } - public class TextAreaTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - public string Name { get => throw null; set => throw null; } - public override int Order { get => throw null; } - public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public TextAreaTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + public override int Order { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } + public string Name { get => throw null; set { } } } - public class ValidationMessageTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - public override int Order { get => throw null; } - public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public ValidationMessageTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression For { get => throw null; set { } } } - public class ValidationSummaryTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper { - protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } - public override int Order { get => throw null; } - public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary ValidationSummary { get => throw null; set => throw null; } public ValidationSummaryTagHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public override void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; + public override int Order { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } + protected Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator Generator { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary ValidationSummary { get => throw null; set { } } } - namespace Cache { public class CacheTagKey : System.IEquatable { public CacheTagKey(Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper tagHelper, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; public CacheTagKey(Microsoft.AspNetCore.Mvc.TagHelpers.DistributedCacheTagHelper tagHelper) => throw null; - public bool Equals(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.CacheTagKey other) => throw null; - public override bool Equals(object obj) => throw null; - public string GenerateHashedKey() => throw null; public string GenerateKey() => throw null; + public string GenerateHashedKey() => throw null; + public override bool Equals(object obj) => throw null; + public bool Equals(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.CacheTagKey other) => throw null; public override int GetHashCode() => throw null; } - public class DistributedCacheTagHelperFormatter : Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperFormatter { - public System.Threading.Tasks.Task DeserializeAsync(System.Byte[] value) => throw null; + public System.Threading.Tasks.Task SerializeAsync(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperFormattingContext context) => throw null; + public System.Threading.Tasks.Task DeserializeAsync(byte[] value) => throw null; public DistributedCacheTagHelperFormatter() => throw null; - public System.Threading.Tasks.Task SerializeAsync(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperFormattingContext context) => throw null; } - public class DistributedCacheTagHelperFormattingContext { public DistributedCacheTagHelperFormattingContext() => throw null; - public Microsoft.AspNetCore.Html.HtmlString Html { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Html.HtmlString Html { get => throw null; set { } } } - public class DistributedCacheTagHelperService : Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperService { public DistributedCacheTagHelperService(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperStorage storage, Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperFormatter formatter, System.Text.Encodings.Web.HtmlEncoder HtmlEncoder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public System.Threading.Tasks.Task ProcessContentAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output, Microsoft.AspNetCore.Mvc.TagHelpers.Cache.CacheTagKey key, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; } - public class DistributedCacheTagHelperStorage : Microsoft.AspNetCore.Mvc.TagHelpers.Cache.IDistributedCacheTagHelperStorage { public DistributedCacheTagHelperStorage(Microsoft.Extensions.Caching.Distributed.IDistributedCache distributedCache) => throw null; - public System.Threading.Tasks.Task GetAsync(string key) => throw null; - public System.Threading.Tasks.Task SetAsync(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; + public System.Threading.Tasks.Task GetAsync(string key) => throw null; + public System.Threading.Tasks.Task SetAsync(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; } - public interface IDistributedCacheTagHelperFormatter { - System.Threading.Tasks.Task DeserializeAsync(System.Byte[] value); - System.Threading.Tasks.Task SerializeAsync(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperFormattingContext context); + System.Threading.Tasks.Task SerializeAsync(Microsoft.AspNetCore.Mvc.TagHelpers.Cache.DistributedCacheTagHelperFormattingContext context); + System.Threading.Tasks.Task DeserializeAsync(byte[] value); } - public interface IDistributedCacheTagHelperService { System.Threading.Tasks.Task ProcessContentAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output, Microsoft.AspNetCore.Mvc.TagHelpers.Cache.CacheTagKey key, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options); } - public interface IDistributedCacheTagHelperStorage { - System.Threading.Tasks.Task GetAsync(string key); - System.Threading.Tasks.Task SetAsync(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options); + System.Threading.Tasks.Task GetAsync(string key); + System.Threading.Tasks.Task SetAsync(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options); } - } } } @@ -396,13 +360,12 @@ namespace Extensions { namespace DependencyInjection { - public static class TagHelperServicesExtensions + public static partial class TagHelperServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCacheTagHelper(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddCacheTagHelperLimits(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCacheTagHelperLimits(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ViewFeatures.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ViewFeatures.cs index 11c24558c6ec5..514d511288531 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ViewFeatures.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.ViewFeatures.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc.ViewFeatures, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,342 +8,309 @@ namespace Mvc { public class AutoValidateAntiforgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { - public AutoValidateAntiforgeryTokenAttribute() => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public AutoValidateAntiforgeryTokenAttribute() => throw null; + public int Order { get => throw null; set { } } public bool IsReusable { get => throw null; } - public int Order { get => throw null; set => throw null; } } - - public abstract class Controller : Microsoft.AspNetCore.Mvc.ControllerBase, Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, System.IDisposable + public abstract class Controller : Microsoft.AspNetCore.Mvc.ControllerBase, Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter, System.IDisposable { - protected Controller() => throw null; - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public virtual Microsoft.AspNetCore.Mvc.JsonResult Json(object data) => throw null; - public virtual Microsoft.AspNetCore.Mvc.JsonResult Json(object data, object serializerSettings) => throw null; - public virtual void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; - public virtual void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context) => throw null; - public virtual System.Threading.Tasks.Task OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView() => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(object model) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(string viewName) => throw null; - public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(string viewName, object model) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } public virtual Microsoft.AspNetCore.Mvc.ViewResult View() => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewResult View(object model) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewResult View(string viewName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewResult View(object model) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewResult View(string viewName, object model) => throw null; - public dynamic ViewBag { get => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView() => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(string viewName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(object model) => throw null; + public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView(string viewName, object model) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(string componentName, object arguments) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } + public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent(System.Type componentType, object arguments) => throw null; + public virtual Microsoft.AspNetCore.Mvc.JsonResult Json(object data) => throw null; + public virtual Microsoft.AspNetCore.Mvc.JsonResult Json(object data, object serializerSettings) => throw null; + public virtual void OnActionExecuting(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context) => throw null; + public virtual void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context) => throw null; + public virtual System.Threading.Tasks.Task OnActionExecutionAsync(Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next) => throw null; + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + protected Controller() => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public dynamic ViewBag { get => throw null; } } - public class CookieTempDataProviderOptions { - public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set => throw null; } public CookieTempDataProviderOptions() => throw null; + public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } } + } + public class IgnoreAntiforgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter + { + public IgnoreAntiforgeryTokenAttribute() => throw null; + public int Order { get => throw null; set { } } } - public interface IViewComponentHelper { - System.Threading.Tasks.Task InvokeAsync(System.Type componentType, object arguments); System.Threading.Tasks.Task InvokeAsync(string name, object arguments); + System.Threading.Tasks.Task InvokeAsync(System.Type componentType, object arguments); } - public interface IViewComponentResult { void Execute(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); } - - public class IgnoreAntiforgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter, Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy - { - public IgnoreAntiforgeryTokenAttribute() => throw null; - public int Order { get => throw null; set => throw null; } - } - public class MvcViewOptions : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public System.Collections.Generic.IList ClientModelValidatorProviders { get => throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions HtmlHelperOptions { get => throw null; set => throw null; } public MvcViewOptions() => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions HtmlHelperOptions { get => throw null; set { } } public System.Collections.Generic.IList ViewEngines { get => throw null; } + public System.Collections.Generic.IList ClientModelValidatorProviders { get => throw null; } } - public class PageRemoteAttribute : Microsoft.AspNetCore.Mvc.RemoteAttributeBase { protected override string GetUrl(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; - public string PageHandler { get => throw null; set => throw null; } - public string PageName { get => throw null; set => throw null; } public PageRemoteAttribute() => throw null; + public string PageHandler { get => throw null; set { } } + public string PageName { get => throw null; set { } } } - - public class PartialViewResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class PartialViewResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public string ContentType { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public object Model { get => throw null; } public PartialViewResult() => throw null; - public int? StatusCode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set => throw null; } - public string ViewName { get => throw null; set => throw null; } + public int? StatusCode { get => throw null; set { } } + public string ViewName { get => throw null; set { } } + public object Model { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set { } } + public string ContentType { get => throw null; set { } } } - public class RemoteAttribute : Microsoft.AspNetCore.Mvc.RemoteAttributeBase { - protected override string GetUrl(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; protected RemoteAttribute() => throw null; public RemoteAttribute(string routeName) => throw null; public RemoteAttribute(string action, string controller) => throw null; public RemoteAttribute(string action, string controller, string areaName) => throw null; - protected string RouteName { get => throw null; set => throw null; } + protected override string GetUrl(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; + protected string RouteName { get => throw null; set { } } } - public abstract class RemoteAttributeBase : System.ComponentModel.DataAnnotations.ValidationAttribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator { - public virtual void AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; - public string AdditionalFields { get => throw null; set => throw null; } + protected RemoteAttributeBase() => throw null; public string FormatAdditionalFieldsForClientValidation(string property) => throw null; - public override string FormatErrorMessage(string name) => throw null; public static string FormatPropertyForClientValidation(string property) => throw null; protected abstract string GetUrl(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context); - public string HttpMethod { get => throw null; set => throw null; } + public override string FormatErrorMessage(string name) => throw null; public override bool IsValid(object value) => throw null; - protected RemoteAttributeBase() => throw null; + public virtual void AddValidation(Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext context) => throw null; protected Microsoft.AspNetCore.Routing.RouteValueDictionary RouteData { get => throw null; } + public string HttpMethod { get => throw null; set { } } + public string AdditionalFields { get => throw null; set { } } } - - public class SkipStatusCodePagesAttribute : System.Attribute, Microsoft.AspNetCore.Http.Metadata.ISkipStatusCodePagesMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter + public class SkipStatusCodePagesAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IResourceFilter, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Http.Metadata.ISkipStatusCodePagesMetadata { public void OnResourceExecuted(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutedContext context) => throw null; public void OnResourceExecuting(Microsoft.AspNetCore.Mvc.Filters.ResourceExecutingContext context) => throw null; public SkipStatusCodePagesAttribute() => throw null; } - - public class TempDataAttribute : System.Attribute + public sealed class TempDataAttribute : System.Attribute { - public string Key { get => throw null; set => throw null; } public TempDataAttribute() => throw null; + public string Key { get => throw null; set { } } } - public class ValidateAntiForgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; - public bool IsReusable { get => throw null; } - public int Order { get => throw null; set => throw null; } public ValidateAntiForgeryTokenAttribute() => throw null; + public int Order { get => throw null; set { } } + public bool IsReusable { get => throw null; } } - public abstract class ViewComponent { public Microsoft.AspNetCore.Mvc.ViewComponents.ContentViewComponentResult Content(string content) => throw null; - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } - public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } - public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set => throw null; } - public System.Security.Principal.IPrincipal User { get => throw null; } - public System.Security.Claims.ClaimsPrincipal UserClaimsPrincipal { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View() => throw null; public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View(string viewName) => throw null; public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View(TModel model) => throw null; public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View(string viewName, TModel model) => throw null; - public dynamic ViewBag { get => throw null; } protected ViewComponent() => throw null; - public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Http.HttpRequest Request { get => throw null; } + public System.Security.Principal.IPrincipal User { get => throw null; } + public System.Security.Claims.ClaimsPrincipal UserClaimsPrincipal { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; } + public dynamic ViewBag { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } + public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine ViewEngine { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine ViewEngine { get => throw null; set { } } } - public class ViewComponentAttribute : System.Attribute { - public string Name { get => throw null; set => throw null; } public ViewComponentAttribute() => throw null; + public string Name { get => throw null; set { } } } - - public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class ViewComponentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public object Arguments { get => throw null; set => throw null; } - public string ContentType { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public object Model { get => throw null; } - public int? StatusCode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - public string ViewComponentName { get => throw null; set => throw null; } public ViewComponentResult() => throw null; - public System.Type ViewComponentType { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } + public object Arguments { get => throw null; set { } } + public int? StatusCode { get => throw null; set { } } + public string ViewComponentName { get => throw null; set { } } + public System.Type ViewComponentType { get => throw null; set { } } + public object Model { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public string ContentType { get => throw null; set { } } } - - public class ViewDataAttribute : System.Attribute + public sealed class ViewDataAttribute : System.Attribute { - public string Key { get => throw null; set => throw null; } public ViewDataAttribute() => throw null; + public string Key { get => throw null; set { } } } - - public class ViewResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult + public class ViewResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult, Microsoft.AspNetCore.Mvc.IActionResult { - public string ContentType { get => throw null; set => throw null; } public override System.Threading.Tasks.Task ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext context) => throw null; - public object Model { get => throw null; } - public int? StatusCode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set => throw null; } - public string ViewName { get => throw null; set => throw null; } public ViewResult() => throw null; + public int? StatusCode { get => throw null; set { } } + public string ViewName { get => throw null; set { } } + public object Model { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set { } } + public string ContentType { get => throw null; set { } } } - namespace Diagnostics { - public class AfterViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public BeforeViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, object viewComponent) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public AfterViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.IViewComponentResult viewComponentResult, object viewComponent) => throw null; + public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } + public object ViewComponent { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public object ViewComponent { get => throw null; } + } + public sealed class AfterViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + { + public static string EventName; + public AfterViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.IViewComponentResult viewComponentResult, object viewComponent) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } public Microsoft.AspNetCore.Mvc.IViewComponentResult ViewComponentResult { get => throw null; } + public object ViewComponent { get => throw null; } + protected override int Count { get => throw null; } + protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class AfterViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class ViewComponentBeforeViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public AfterViewEventData(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; + public static string EventName; + public ViewComponentBeforeViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; + public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } } - - public class BeforeViewComponentEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class ViewComponentAfterViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public ViewComponentAfterViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } - public BeforeViewComponentEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, object viewComponent) => throw null; + public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public object ViewComponent { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } } - - public class BeforeViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class BeforeViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; public BeforeViewEventData(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; - protected override int Count { get => throw null; } - public const string EventName = default; - protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } - } - - public class ViewComponentAfterViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData - { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } - public ViewComponentAfterViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; - public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } } - - public class ViewComponentBeforeViewExecuteEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class AfterViewEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { - public Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor ActionDescriptor { get => throw null; } + public static string EventName; + public AfterViewEventData(Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } protected override int Count { get => throw null; } - public const string EventName = default; protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } - public ViewComponentBeforeViewExecuteEventData(Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor actionDescriptor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext viewComponentContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; - public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext ViewComponentContext { get => throw null; } } - - public class ViewFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class ViewFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public ViewFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - protected override int Count { get => throw null; } - public const string EventName = default; public bool IsMainPage { get => throw null; } - protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } public Microsoft.AspNetCore.Mvc.ActionResult Result { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } - public ViewFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; public string ViewName { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } + protected override int Count { get => throw null; } + protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - - public class ViewNotFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData + public sealed class ViewNotFoundEventData : Microsoft.AspNetCore.Mvc.Diagnostics.EventData { + public static string EventName; + public ViewNotFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, System.Collections.Generic.IEnumerable searchedLocations) => throw null; public Microsoft.AspNetCore.Mvc.ActionContext ActionContext { get => throw null; } - protected override int Count { get => throw null; } - public const string EventName = default; public bool IsMainPage { get => throw null; } - protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } public Microsoft.AspNetCore.Mvc.ActionResult Result { get => throw null; } - public System.Collections.Generic.IEnumerable SearchedLocations { get => throw null; } public string ViewName { get => throw null; } - public ViewNotFoundEventData(Microsoft.AspNetCore.Mvc.ActionContext actionContext, bool isMainPage, Microsoft.AspNetCore.Mvc.ActionResult result, string viewName, System.Collections.Generic.IEnumerable searchedLocations) => throw null; + public System.Collections.Generic.IEnumerable SearchedLocations { get => throw null; } + protected override int Count { get => throw null; } + protected override System.Collections.Generic.KeyValuePair this[int index] { get => throw null; } } - } namespace ModelBinding { - public static class ModelStateDictionaryExtensions + public static partial class ModelStateDictionaryExtensions { - public static void AddModelError(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; public static void AddModelError(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression, string errorMessage) => throw null; + public static void TryAddModelException(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression, System.Exception exception) => throw null; + public static void AddModelError(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression, System.Exception exception, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; public static bool Remove(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression) => throw null; public static void RemoveAll(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression) => throw null; - public static void TryAddModelException(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression> expression, System.Exception exception) => throw null; } - } namespace Rendering { - public enum CheckBoxHiddenInputRenderMode : int + public enum CheckBoxHiddenInputRenderMode { - EndOfForm = 2, - Inline = 1, None = 0, + Inline = 1, + EndOfForm = 2, } - - public enum FormInputRenderMode : int + public enum FormInputRenderMode { - AlwaysUseCurrentCulture = 1, DetectCultureFromInputType = 0, + AlwaysUseCurrentCulture = 1, } - - public enum FormMethod : int + public enum FormMethod { Get = 0, Post = 1, } - - public enum Html5DateRenderingMode : int + public enum Html5DateRenderingMode { - CurrentCulture = 1, Rfc3339 = 0, + CurrentCulture = 1, } - - public static class HtmlHelperComponentExtensions + public static partial class HtmlHelperComponentExtensions { - public static System.Threading.Tasks.Task RenderComponentAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Type componentType, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters) => throw null; public static System.Threading.Tasks.Task RenderComponentAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; public static System.Threading.Tasks.Task RenderComponentAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters) where TComponent : Microsoft.AspNetCore.Components.IComponent => throw null; + public static System.Threading.Tasks.Task RenderComponentAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Type componentType, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters) => throw null; } - - public static class HtmlHelperDisplayExtensions + public static partial class HtmlHelperDisplayExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent Display(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Display(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object additionalViewData) => throw null; @@ -363,14 +329,12 @@ public static class HtmlHelperDisplayExtensions public static Microsoft.AspNetCore.Html.IHtmlContent DisplayForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string templateName, string htmlFieldName) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DisplayForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string templateName, string htmlFieldName, object additionalViewData) => throw null; } - - public static class HtmlHelperDisplayNameExtensions + public static partial class HtmlHelperDisplayNameExtensions { - public static string DisplayNameFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper> htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; public static string DisplayNameForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; + public static string DisplayNameFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper> htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; } - - public static class HtmlHelperEditorExtensions + public static partial class HtmlHelperEditorExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent Editor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Editor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object additionalViewData) => throw null; @@ -389,31 +353,29 @@ public static class HtmlHelperEditorExtensions public static Microsoft.AspNetCore.Html.IHtmlContent EditorForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string templateName, string htmlFieldName) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent EditorForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string templateName, string htmlFieldName, object additionalViewData) => throw null; } - - public static class HtmlHelperFormExtensions + public static partial class HtmlHelperFormExtensions { public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool? antiforgery) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool? antiforgery) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object routeValues) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string actionName, string controllerName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object routeValues) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object routeValues, bool? antiforgery) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; - public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, bool? antiforgery) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; + public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes) => throw null; } - - public static class HtmlHelperInputExtensions + public static partial class HtmlHelperInputExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent CheckBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent CheckBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, bool isChecked) => throw null; @@ -426,38 +388,36 @@ public static class HtmlHelperInputExtensions public static Microsoft.AspNetCore.Html.IHtmlContent Password(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent PasswordFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RadioButton(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent RadioButton(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, bool isChecked) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RadioButton(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, object htmlAttributes) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent RadioButton(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, bool isChecked) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RadioButtonFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object value) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, string format) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, object htmlAttributes) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string format) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextArea(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextArea(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextArea(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string value) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextArea(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string value, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextAreaFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent TextAreaFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, object htmlAttributes) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object value, string format) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string format) => throw null; } - - public static class HtmlHelperLabelExtensions + public static partial class HtmlHelperLabelExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent Label(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Label(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string labelText) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent LabelFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent LabelFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent LabelFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string labelText) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent LabelFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string labelText) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent LabelForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string labelText, object htmlAttributes) => throw null; } - - public static class HtmlHelperLinkExtensions + public static partial class HtmlHelperLinkExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, object routeValues) => throw null; @@ -466,27 +426,25 @@ public static class HtmlHelperLinkExtensions public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, string controllerName, object routeValues) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, string controllerName, object routeValues, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, object routeValues) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, object routeValues, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, string routeName) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, string routeName, object routeValues) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, object routeValues, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent RouteLink(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string linkText, string routeName, object routeValues, object htmlAttributes) => throw null; } - - public static class HtmlHelperNameExtensions + public static partial class HtmlHelperNameExtensions { - public static string IdForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; public static string NameForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; + public static string IdForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; } - - public static class HtmlHelperPartialExtensions + public static partial class HtmlHelperPartialExtensions { + public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName) => throw null; + public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; + public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Partial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Partial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Partial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent Partial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; - public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName) => throw null; - public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; - public static System.Threading.Tasks.Task PartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model) => throw null; public static void RenderPartial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName) => throw null; public static void RenderPartial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; public static void RenderPartial(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model) => throw null; @@ -495,14 +453,13 @@ public static class HtmlHelperPartialExtensions public static System.Threading.Tasks.Task RenderPartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; public static System.Threading.Tasks.Task RenderPartialAsync(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model) => throw null; } - - public static class HtmlHelperSelectExtensions + public static partial class HtmlHelperSelectExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string optionLabel) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, System.Collections.Generic.IEnumerable selectList) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, System.Collections.Generic.IEnumerable selectList, string optionLabel) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent DropDownList(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string optionLabel) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownListFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownListFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent DropDownListFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList, string optionLabel) => throw null; @@ -510,37 +467,34 @@ public static class HtmlHelperSelectExtensions public static Microsoft.AspNetCore.Html.IHtmlContent ListBox(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, System.Collections.Generic.IEnumerable selectList) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ListBoxFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList) => throw null; } - - public static class HtmlHelperValidationExtensions + public static partial class HtmlHelperValidationExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string message) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string message, object htmlAttributes) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string message, string tag) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression, string message, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessageFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessageFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string message) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessageFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string message, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationMessageFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression, string message, string tag) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, string tag) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, string tag) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, object htmlAttributes, string tag) => throw null; - public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string message, string tag) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, string tag) => throw null; + public static Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, bool excludePropertyErrors, string message, object htmlAttributes) => throw null; } - - public static class HtmlHelperValueExtensions + public static partial class HtmlHelperValueExtensions { public static string Value(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression) => throw null; public static string ValueFor(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, System.Linq.Expressions.Expression> expression) => throw null; public static string ValueForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper) => throw null; public static string ValueForModel(this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string format) => throw null; } - public interface IHtmlHelper { Microsoft.AspNetCore.Html.IHtmlContent ActionLink(string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes); @@ -558,35 +512,34 @@ public interface IHtmlHelper void EndForm(); string FormatValue(object value, string format); string GenerateIdFromName(string fullName); - System.Collections.Generic.IEnumerable GetEnumSelectList(System.Type enumType); System.Collections.Generic.IEnumerable GetEnumSelectList() where TEnum : struct; + System.Collections.Generic.IEnumerable GetEnumSelectList(System.Type enumType); Microsoft.AspNetCore.Html.IHtmlContent Hidden(string expression, object value, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get; set; } string Id(string expression); - string IdAttributeDotReplacement { get; } Microsoft.AspNetCore.Html.IHtmlContent Label(string expression, string labelText, object htmlAttributes); Microsoft.AspNetCore.Html.IHtmlContent ListBox(string expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes); - Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get; } string Name(string expression); System.Threading.Tasks.Task PartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData); Microsoft.AspNetCore.Html.IHtmlContent Password(string expression, object value, object htmlAttributes); Microsoft.AspNetCore.Html.IHtmlContent RadioButton(string expression, object value, bool? isChecked, object htmlAttributes); - Microsoft.AspNetCore.Html.IHtmlContent Raw(object value); Microsoft.AspNetCore.Html.IHtmlContent Raw(string value); + Microsoft.AspNetCore.Html.IHtmlContent Raw(object value); System.Threading.Tasks.Task RenderPartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData); Microsoft.AspNetCore.Html.IHtmlContent RouteLink(string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes); - Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get; } Microsoft.AspNetCore.Html.IHtmlContent TextArea(string expression, string value, int rows, int columns, object htmlAttributes); Microsoft.AspNetCore.Html.IHtmlContent TextBox(string expression, object value, string format, object htmlAttributes); - System.Text.Encodings.Web.UrlEncoder UrlEncoder { get; } Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(string expression, string message, object htmlAttributes, string tag); Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(bool excludePropertyErrors, string message, object htmlAttributes, string tag); string Value(string expression, string format); + Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get; set; } + string IdAttributeDotReplacement { get; } + Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get; } dynamic ViewBag { get; } Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; } Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get; } + Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get; } + System.Text.Encodings.Web.UrlEncoder UrlEncoder { get; } } - public interface IHtmlHelper : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper { Microsoft.AspNetCore.Html.IHtmlContent CheckBoxFor(System.Linq.Expressions.Expression> expression, object htmlAttributes); @@ -613,45 +566,32 @@ public interface IHtmlHelper : Microsoft.AspNetCore.Mvc.Rendering.IHtmlH string ValueFor(System.Linq.Expressions.Expression> expression, string format); Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get; } } - public interface IJsonHelper { Microsoft.AspNetCore.Html.IHtmlContent Serialize(object value); } - public class MultiSelectList : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public string DataGroupField { get => throw null; } - public string DataTextField { get => throw null; } - public string DataValueField { get => throw null; } - public virtual System.Collections.Generic.IEnumerator GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public System.Collections.IEnumerable Items { get => throw null; } public MultiSelectList(System.Collections.IEnumerable items) => throw null; public MultiSelectList(System.Collections.IEnumerable items, System.Collections.IEnumerable selectedValues) => throw null; public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField) => throw null; public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues) => throw null; public MultiSelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, System.Collections.IEnumerable selectedValues, string dataGroupField) => throw null; + public virtual System.Collections.Generic.IEnumerator GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public string DataGroupField { get => throw null; } + public string DataTextField { get => throw null; } + public string DataValueField { get => throw null; } + public System.Collections.IEnumerable Items { get => throw null; } public System.Collections.IEnumerable SelectedValues { get => throw null; } } - public class MvcForm : System.IDisposable { + public MvcForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; public void Dispose() => throw null; public void EndForm() => throw null; protected virtual void GenerateEndForm() => throw null; - public MvcForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.Text.Encodings.Web.HtmlEncoder htmlEncoder) => throw null; } - - public enum RenderMode : int - { - Server = 2, - ServerPrerendered = 3, - Static = 1, - WebAssembly = 4, - WebAssemblyPrerendered = 5, - } - public class SelectList : Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList { public SelectList(System.Collections.IEnumerable items) : base(default(System.Collections.IEnumerable)) => throw null; @@ -661,254 +601,232 @@ public class SelectList : Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList public SelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, object selectedValue, string dataGroupField) : base(default(System.Collections.IEnumerable)) => throw null; public object SelectedValue { get => throw null; } } - public class SelectListGroup { - public bool Disabled { get => throw null; set => throw null; } - public string Name { get => throw null; set => throw null; } public SelectListGroup() => throw null; + public bool Disabled { get => throw null; set { } } + public string Name { get => throw null; set { } } } - public class SelectListItem { - public bool Disabled { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.SelectListGroup Group { get => throw null; set => throw null; } public SelectListItem() => throw null; public SelectListItem(string text, string value) => throw null; public SelectListItem(string text, string value, bool selected) => throw null; public SelectListItem(string text, string value, bool selected, bool disabled) => throw null; - public bool Selected { get => throw null; set => throw null; } - public string Text { get => throw null; set => throw null; } - public string Value { get => throw null; set => throw null; } + public bool Disabled { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.SelectListGroup Group { get => throw null; set { } } + public bool Selected { get => throw null; set { } } + public string Text { get => throw null; set { } } + public string Value { get => throw null; set { } } } - public class TagBuilder : Microsoft.AspNetCore.Html.IHtmlContent { + public TagBuilder(string tagName) => throw null; + public TagBuilder(Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder) => throw null; public void AddCssClass(string value) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary Attributes { get => throw null; } public static string CreateSanitizedId(string name, string invalidCharReplacement) => throw null; public void GenerateId(string name, string invalidCharReplacement) => throw null; - public bool HasInnerHtml { get => throw null; } - public Microsoft.AspNetCore.Html.IHtmlContentBuilder InnerHtml { get => throw null; } public void MergeAttribute(string key, string value) => throw null; public void MergeAttribute(string key, string value, bool replaceExisting) => throw null; public void MergeAttributes(System.Collections.Generic.IDictionary attributes) => throw null; public void MergeAttributes(System.Collections.Generic.IDictionary attributes, bool replaceExisting) => throw null; + public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent RenderBody() => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent RenderStartTag() => throw null; public Microsoft.AspNetCore.Html.IHtmlContent RenderEndTag() => throw null; public Microsoft.AspNetCore.Html.IHtmlContent RenderSelfClosingTag() => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent RenderStartTag() => throw null; - public TagBuilder(Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder) => throw null; - public TagBuilder(string tagName) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary Attributes { get => throw null; } + public Microsoft.AspNetCore.Html.IHtmlContentBuilder InnerHtml { get => throw null; } + public bool HasInnerHtml { get => throw null; } public string TagName { get => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.TagRenderMode TagRenderMode { get => throw null; set => throw null; } - public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.TagRenderMode TagRenderMode { get => throw null; set { } } } - - public enum TagRenderMode : int + public enum TagRenderMode { - EndTag = 2, Normal = 0, - SelfClosing = 3, StartTag = 1, - } - - public static class ViewComponentHelperExtensions + EndTag = 2, + SelfClosing = 3, + } + public static partial class ViewComponentHelperExtensions { - public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, System.Type componentType) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, string name) => throw null; - public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper) => throw null; + public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, System.Type componentType) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, object arguments) => throw null; + public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper) => throw null; } - public class ViewContext : Microsoft.AspNetCore.Mvc.ActionContext { - public Microsoft.AspNetCore.Mvc.Rendering.CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get => throw null; set => throw null; } - public bool ClientValidationEnabled { get => throw null; set => throw null; } - public string ExecutingFilePath { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext FormContext { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext GetFormContextForClientValidation() => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - public string ValidationMessageElement { get => throw null; set => throw null; } - public string ValidationSummaryMessageElement { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; set => throw null; } - public dynamic ViewBag { get => throw null; } public ViewContext() => throw null; public ViewContext(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, System.IO.TextWriter writer, Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions htmlHelperOptions) => throw null; public ViewContext(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.IO.TextWriter writer) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } - public System.IO.TextWriter Writer { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext GetFormContextForClientValidation() => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext FormContext { get => throw null; set { } } + public bool ClientValidationEnabled { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set { } } + public string ValidationSummaryMessageElement { get => throw null; set { } } + public string ValidationMessageElement { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get => throw null; set { } } + public dynamic ViewBag { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public System.IO.TextWriter Writer { get => throw null; set { } } + public string ExecutingFilePath { get => throw null; set { } } + } + public enum RenderMode + { + Static = 1, + Server = 2, + ServerPrerendered = 3, + WebAssembly = 4, + WebAssemblyPrerendered = 5, } - } namespace ViewComponents { public class ContentViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult { - public string Content { get => throw null; } public ContentViewComponentResult(string content) => throw null; public void Execute(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; + public string Content { get => throw null; } } - public class DefaultViewComponentDescriptorCollectionProvider : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider { public DefaultViewComponentDescriptorCollectionProvider(Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorProvider descriptorProvider) => throw null; public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptorCollection ViewComponents { get => throw null; } } - public class DefaultViewComponentDescriptorProvider : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorProvider { public DefaultViewComponentDescriptorProvider(Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager partManager) => throw null; - protected virtual System.Collections.Generic.IEnumerable GetCandidateTypes() => throw null; public virtual System.Collections.Generic.IEnumerable GetViewComponents() => throw null; + protected virtual System.Collections.Generic.IEnumerable GetCandidateTypes() => throw null; } - public class DefaultViewComponentFactory : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentFactory { - public object CreateViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public DefaultViewComponentFactory(Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator activator) => throw null; + public object CreateViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public void ReleaseViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component) => throw null; public System.Threading.Tasks.ValueTask ReleaseViewComponentAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component) => throw null; } - public class DefaultViewComponentHelper : Microsoft.AspNetCore.Mvc.IViewComponentHelper, Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware { - public void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; public DefaultViewComponentHelper(Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider descriptorProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector selector, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactory invokerFactory, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope viewBufferScope) => throw null; - public System.Threading.Tasks.Task InvokeAsync(System.Type componentType, object arguments) => throw null; + public void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; public System.Threading.Tasks.Task InvokeAsync(string name, object arguments) => throw null; + public System.Threading.Tasks.Task InvokeAsync(System.Type componentType, object arguments) => throw null; } - public class DefaultViewComponentSelector : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector { public DefaultViewComponentSelector(Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider descriptorProvider) => throw null; public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor SelectComponent(string componentName) => throw null; } - public class HtmlContentViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult { - public Microsoft.AspNetCore.Html.IHtmlContent EncodedContent { get => throw null; } + public HtmlContentViewComponentResult(Microsoft.AspNetCore.Html.IHtmlContent encodedContent) => throw null; public void Execute(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; - public HtmlContentViewComponentResult(Microsoft.AspNetCore.Html.IHtmlContent encodedContent) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent EncodedContent { get => throw null; } } - public interface IViewComponentActivator { object Create(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); void Release(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent); - System.Threading.Tasks.ValueTask ReleaseAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent) => throw null; + virtual System.Threading.Tasks.ValueTask ReleaseAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent) => throw null; } - public interface IViewComponentDescriptorCollectionProvider { Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptorCollection ViewComponents { get; } } - public interface IViewComponentDescriptorProvider { System.Collections.Generic.IEnumerable GetViewComponents(); } - public interface IViewComponentFactory { object CreateViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); void ReleaseViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component); - System.Threading.Tasks.ValueTask ReleaseViewComponentAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component) => throw null; + virtual System.Threading.Tasks.ValueTask ReleaseViewComponentAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component) => throw null; } - public interface IViewComponentInvoker { System.Threading.Tasks.Task InvokeAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); } - public interface IViewComponentInvokerFactory { Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvoker CreateInstance(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context); } - public interface IViewComponentSelector { Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor SelectComponent(string componentName); } - public class ServiceBasedViewComponentActivator : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator { public object Create(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public virtual void Release(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent) => throw null; public ServiceBasedViewComponentActivator() => throw null; } - public class ViewComponentContext { - public System.Collections.Generic.IDictionary Arguments { get => throw null; set => throw null; } - public System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } public ViewComponentContext() => throw null; public ViewComponentContext(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor viewComponentDescriptor, System.Collections.Generic.IDictionary arguments, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.IO.TextWriter writer) => throw null; - public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor ViewComponentDescriptor { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set => throw null; } + public System.Collections.Generic.IDictionary Arguments { get => throw null; set { } } + public System.Text.Encodings.Web.HtmlEncoder HtmlEncoder { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor ViewComponentDescriptor { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } public System.IO.TextWriter Writer { get => throw null; } } - public class ViewComponentContextAttribute : System.Attribute { public ViewComponentContextAttribute() => throw null; } - public static class ViewComponentConventions { - public static string GetComponentFullName(System.Reflection.TypeInfo componentType) => throw null; + public static string ViewComponentSuffix; public static string GetComponentName(System.Reflection.TypeInfo componentType) => throw null; + public static string GetComponentFullName(System.Reflection.TypeInfo componentType) => throw null; public static bool IsComponent(System.Reflection.TypeInfo typeInfo) => throw null; - public static string ViewComponentSuffix; } - public class ViewComponentDescriptor { - public string DisplayName { get => throw null; set => throw null; } - public string FullName { get => throw null; set => throw null; } - public string Id { get => throw null; set => throw null; } - public System.Reflection.MethodInfo MethodInfo { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyList Parameters { get => throw null; set => throw null; } - public string ShortName { get => throw null; set => throw null; } - public System.Reflection.TypeInfo TypeInfo { get => throw null; set => throw null; } public ViewComponentDescriptor() => throw null; + public string DisplayName { get => throw null; set { } } + public string FullName { get => throw null; set { } } + public string Id { get => throw null; set { } } + public string ShortName { get => throw null; set { } } + public System.Reflection.TypeInfo TypeInfo { get => throw null; set { } } + public System.Reflection.MethodInfo MethodInfo { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyList Parameters { get => throw null; set { } } } - public class ViewComponentDescriptorCollection { + public ViewComponentDescriptorCollection(System.Collections.Generic.IEnumerable items, int version) => throw null; public System.Collections.Generic.IReadOnlyList Items { get => throw null; } public int Version { get => throw null; } - public ViewComponentDescriptorCollection(System.Collections.Generic.IEnumerable items, int version) => throw null; } - public class ViewComponentFeature { public ViewComponentFeature() => throw null; public System.Collections.Generic.IList ViewComponents { get => throw null; } } - - public class ViewComponentFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider + public class ViewComponentFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider, Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider { public void PopulateFeature(System.Collections.Generic.IEnumerable parts, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentFeature feature) => throw null; public ViewComponentFeatureProvider() => throw null; } - public class ViewViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult { public void Execute(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set => throw null; } - public string ViewName { get => throw null; set => throw null; } public ViewViewComponentResult() => throw null; + public string ViewName { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; set { } } } - } namespace ViewEngines { @@ -919,79 +837,69 @@ public class CompositeViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IComposi public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult GetView(string executingFilePath, string viewPath, bool isMainPage) => throw null; public System.Collections.Generic.IReadOnlyList ViewEngines { get => throw null; } } - public interface ICompositeViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine { System.Collections.Generic.IReadOnlyList ViewEngines { get; } } - public interface IView { - string Path { get; } System.Threading.Tasks.Task RenderAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext context); + string Path { get; } } - public interface IViewEngine { Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext context, string viewName, bool isMainPage); Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult GetView(string executingFilePath, string viewPath, bool isMainPage); } - public class ViewEngineResult { - public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult EnsureSuccessful(System.Collections.Generic.IEnumerable originalLocations) => throw null; - public static Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult Found(string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; public static Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult NotFound(string viewName, System.Collections.Generic.IEnumerable searchedLocations) => throw null; + public static Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult Found(string viewName, Microsoft.AspNetCore.Mvc.ViewEngines.IView view) => throw null; + public Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult EnsureSuccessful(System.Collections.Generic.IEnumerable originalLocations) => throw null; public System.Collections.Generic.IEnumerable SearchedLocations { get => throw null; } - public bool Success { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewEngines.IView View { get => throw null; } public string ViewName { get => throw null; } + public bool Success { get => throw null; } } - } namespace ViewFeatures { - public static class AntiforgeryExtensions + public static partial class AntiforgeryExtensions { public static Microsoft.AspNetCore.Html.IHtmlContent GetHtml(this Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - - public class AttributeDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable + public class AttributeDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyDictionary, System.Collections.Generic.IReadOnlyCollection> { - public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable - { - public System.Collections.Generic.KeyValuePair Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public Enumerator(Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary attributes) => throw null; - public bool MoveNext() => throw null; - public void Reset() => throw null; - } - - + public void Clear() => throw null; public void Add(System.Collections.Generic.KeyValuePair item) => throw null; public void Add(string key, string value) => throw null; - public AttributeDictionary() => throw null; - public void Clear() => throw null; public bool Contains(System.Collections.Generic.KeyValuePair item) => throw null; public bool ContainsKey(string key) => throw null; public void CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public bool IsReadOnly { get => throw null; } - public string this[string key] { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection Keys { get => throw null; } - System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; public bool Remove(string key) => throw null; public bool TryGetValue(string key, out string value) => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; + public AttributeDictionary() => throw null; + public string this[string key] { get => throw null; set { } } + public int Count { get => throw null; } + public bool IsReadOnly { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } public System.Collections.Generic.ICollection Values { get => throw null; } + System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get => throw null; } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get => throw null; } + public struct Enumerator : System.Collections.Generic.IEnumerator>, System.Collections.IEnumerator, System.IDisposable + { + public Enumerator(Microsoft.AspNetCore.Mvc.ViewFeatures.AttributeDictionary attributes) => throw null; + public void Dispose() => throw null; + public bool MoveNext() => throw null; + public void Reset() => throw null; + public System.Collections.Generic.KeyValuePair Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - public class CookieTempDataProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider { public static string CookieName; @@ -999,163 +907,155 @@ public class CookieTempDataProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ITem public System.Collections.Generic.IDictionary LoadTempData(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public void SaveTempData(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IDictionary values) => throw null; } - public class DefaultHtmlGenerator : Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator { - protected virtual void AddMaxLengthAttribute(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; - protected virtual void AddPlaceholderAttribute(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; - protected virtual void AddValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; - protected bool AllowRenderingMaxLengthAttribute { get => throw null; } public DefaultHtmlGenerator(Microsoft.AspNetCore.Antiforgery.IAntiforgery antiforgery, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory urlHelperFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider validationAttributeProvider) => throw null; - public string Encode(object value) => throw null; public string Encode(string value) => throw null; + public string Encode(object value) => throw null; public string FormatValue(object value, string format) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateActionLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string pageName, string pageHandler, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateAntiforgery(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateCheckBox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool? isChecked, object htmlAttributes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHiddenForCheckbox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string actionName, string controllerName, object routeValues, string method, object htmlAttributes) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateFormCore(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string action, string method, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent GenerateGroupsAndOptions(string optionLabel, System.Collections.Generic.IEnumerable selectList) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string pageName, string pageHandler, object routeValues, string fragment, string method, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string method, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHidden(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, object htmlAttributes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHiddenForCheckbox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateInput(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.InputType inputType, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, bool isChecked, bool setId, bool isExplicitValue, string format, System.Collections.Generic.IDictionary htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateLabel(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateLink(string linkText, string url, object htmlAttributes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string pageName, string pageHandler, object routeValues, string fragment, string method, object htmlAttributes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string pageName, string pageHandler, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePassword(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRadioButton(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool? isChecked, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string method, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes) => throw null; - public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, System.Collections.Generic.ICollection currentValues, bool allowMultiple, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, bool allowMultiple, object htmlAttributes) => throw null; + public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, System.Collections.Generic.ICollection currentValues, bool allowMultiple, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextArea(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, int rows, int columns, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextBox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, string format, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateValidationMessage(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string message, string tag, object htmlAttributes) => throw null; public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateValidationSummary(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, bool excludePropertyErrors, string message, string headerTag, object htmlAttributes) => throw null; public virtual System.Collections.Generic.ICollection GetCurrentValues(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool allowMultiple) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateFormCore(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string action, string method, object htmlAttributes) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateInput(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.InputType inputType, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, bool isChecked, bool setId, bool isExplicitValue, string format, System.Collections.Generic.IDictionary htmlAttributes) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateLink(string linkText, string url, object htmlAttributes) => throw null; + protected virtual void AddPlaceholderAttribute(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; + protected virtual void AddMaxLengthAttribute(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; + protected virtual void AddValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent GenerateGroupsAndOptions(string optionLabel, System.Collections.Generic.IEnumerable selectList) => throw null; + protected bool AllowRenderingMaxLengthAttribute { get => throw null; } public string IdAttributeDotReplacement { get => throw null; } } - - public static class DefaultHtmlGeneratorExtensions + public static partial class DefaultHtmlGeneratorExtensions { public static Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateForm(this Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string actionName, string controllerName, string fragment, object routeValues, string method, object htmlAttributes) => throw null; public static Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm(this Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string fragment, string method, object htmlAttributes) => throw null; } - public class DefaultValidationHtmlAttributeProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ValidationHtmlAttributeProvider { - public override void AddValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, System.Collections.Generic.IDictionary attributes) => throw null; public DefaultValidationHtmlAttributeProvider(Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorCache clientValidatorCache) => throw null; + public override void AddValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, System.Collections.Generic.IDictionary attributes) => throw null; } - public class FormContext { - public bool CanRenderAtEndOfForm { get => throw null; set => throw null; } - public System.Collections.Generic.IList EndOfFormContent { get => throw null; } + public bool RenderedField(string fieldName) => throw null; + public void RenderedField(string fieldName, bool value) => throw null; public FormContext() => throw null; public System.Collections.Generic.IDictionary FormData { get => throw null; } - public bool HasAntiforgeryToken { get => throw null; set => throw null; } - public bool HasEndOfFormContent { get => throw null; } + public bool HasAntiforgeryToken { get => throw null; set { } } public bool HasFormData { get => throw null; } - public bool RenderedField(string fieldName) => throw null; - public void RenderedField(string fieldName, bool value) => throw null; + public bool HasEndOfFormContent { get => throw null; } + public System.Collections.Generic.IList EndOfFormContent { get => throw null; } + public bool CanRenderAtEndOfForm { get => throw null; set { } } } - public class HtmlHelper : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware { - public Microsoft.AspNetCore.Html.IHtmlContent ActionLink(string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes) => throw null; + public static string ValidationInputCssClassName; + public static string ValidationInputValidCssClassName; + public static string ValidationMessageCssClassName; + public static string ValidationMessageValidCssClassName; + public static string ValidationSummaryCssClassName; + public static string ValidationSummaryValidCssClassName; + public HtmlHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator htmlGenerator, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope bufferScope, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.UrlEncoder urlEncoder) => throw null; + public static System.Collections.Generic.IDictionary ObjectToDictionary(object value) => throw null; public static System.Collections.Generic.IDictionary AnonymousObjectToHtmlAttributes(object htmlAttributes) => throw null; + public virtual void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent ActionLink(string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent AntiForgeryToken() => throw null; public Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginForm(string actionName, string controllerName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm(string routeName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; + public void EndForm() => throw null; public Microsoft.AspNetCore.Html.IHtmlContent CheckBox(string expression, bool? isChecked, object htmlAttributes) => throw null; - public virtual void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Rendering.MvcForm CreateForm() => throw null; + public string Encode(string value) => throw null; + public string Encode(object value) => throw null; + public string FormatValue(object value, string format) => throw null; + public string GenerateIdFromName(string fullName) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent Display(string expression, string templateName, string htmlFieldName, object additionalViewData) => throw null; public string DisplayName(string expression) => throw null; public string DisplayText(string expression) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent DropDownList(string expression, System.Collections.Generic.IEnumerable selectList, string optionLabel, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent Editor(string expression, string templateName, string htmlFieldName, object additionalViewData) => throw null; - public string Encode(object value) => throw null; - public string Encode(string value) => throw null; - public void EndForm() => throw null; - public string FormatValue(object value, string format) => throw null; - protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateCheckBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool? isChecked, object htmlAttributes) => throw null; + public System.Collections.Generic.IEnumerable GetEnumSelectList() where TEnum : struct => throw null; + public System.Collections.Generic.IEnumerable GetEnumSelectList(System.Type enumType) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent Hidden(string expression, object value, object htmlAttributes) => throw null; + public string Id(string expression) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent Label(string expression, string labelText, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent ListBox(string expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; + public string Name(string expression) => throw null; + public System.Threading.Tasks.Task PartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; + public System.Threading.Tasks.Task RenderPartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateDisplay(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string htmlFieldName, string templateName, object additionalViewData) => throw null; + protected virtual System.Threading.Tasks.Task RenderPartialCoreAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.IO.TextWriter writer) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent Password(string expression, object value, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent RadioButton(string expression, object value, bool? isChecked, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent Raw(string value) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent Raw(object value) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent RouteLink(string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(string expression, string message, object htmlAttributes, string tag) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(bool excludePropertyErrors, string message, object htmlAttributes, string tag) => throw null; + public static string GetFormMethodString(Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent TextArea(string expression, string value, int rows, int columns, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent TextBox(string expression, object value, string format, object htmlAttributes) => throw null; + public string Value(string expression, string format) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Rendering.MvcForm CreateForm() => throw null; + protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateCheckBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool? isChecked, object htmlAttributes) => throw null; protected virtual string GenerateDisplayName(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression) => throw null; protected virtual string GenerateDisplayText(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer) => throw null; protected Microsoft.AspNetCore.Html.IHtmlContent GenerateDropDown(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IEnumerable selectList, string optionLabel, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateEditor(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string htmlFieldName, string templateName, object additionalViewData) => throw null; protected virtual Microsoft.AspNetCore.Mvc.Rendering.MvcForm GenerateForm(string actionName, string controllerName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; + protected virtual Microsoft.AspNetCore.Mvc.Rendering.MvcForm GenerateRouteForm(string routeName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateHidden(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, object htmlAttributes) => throw null; protected virtual string GenerateId(string expression) => throw null; - public string GenerateIdFromName(string fullName) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateLabel(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes) => throw null; protected Microsoft.AspNetCore.Html.IHtmlContent GenerateListBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; protected virtual string GenerateName(string expression) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GeneratePassword(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateRadioButton(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool? isChecked, object htmlAttributes) => throw null; - protected virtual Microsoft.AspNetCore.Mvc.Rendering.MvcForm GenerateRouteForm(string routeName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, bool? antiforgery, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateTextArea(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, int rows, int columns, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateTextBox(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, string format, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateValidationMessage(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string message, string tag, object htmlAttributes) => throw null; protected virtual Microsoft.AspNetCore.Html.IHtmlContent GenerateValidationSummary(bool excludePropertyErrors, string message, object htmlAttributes, string tag) => throw null; protected virtual string GenerateValue(string expression, object value, string format, bool useViewData) => throw null; protected virtual System.Collections.Generic.IEnumerable GetEnumSelectList(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata) => throw null; - public System.Collections.Generic.IEnumerable GetEnumSelectList(System.Type enumType) => throw null; - public System.Collections.Generic.IEnumerable GetEnumSelectList() where TEnum : struct => throw null; - public static string GetFormMethodString(Microsoft.AspNetCore.Mvc.Rendering.FormMethod method) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent Hidden(string expression, object value, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set => throw null; } - public HtmlHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator htmlGenerator, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope bufferScope, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.UrlEncoder urlEncoder) => throw null; - public string Id(string expression) => throw null; + public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set { } } public string IdAttributeDotReplacement { get => throw null; } - public Microsoft.AspNetCore.Html.IHtmlContent Label(string expression, string labelText, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent ListBox(string expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } - public string Name(string expression) => throw null; - public static System.Collections.Generic.IDictionary ObjectToDictionary(object value) => throw null; - public System.Threading.Tasks.Task PartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent Password(string expression, object value, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent RadioButton(string expression, object value, bool? isChecked, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent Raw(object value) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent Raw(string value) => throw null; - public System.Threading.Tasks.Task RenderPartialAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData) => throw null; - protected virtual System.Threading.Tasks.Task RenderPartialCoreAsync(string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.IO.TextWriter writer) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent RouteLink(string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } - public Microsoft.AspNetCore.Html.IHtmlContent TextArea(string expression, string value, int rows, int columns, object htmlAttributes) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent TextBox(string expression, object value, string format, object htmlAttributes) => throw null; - public System.Text.Encodings.Web.UrlEncoder UrlEncoder { get => throw null; } - public static string ValidationInputCssClassName; - public static string ValidationInputValidCssClassName; - public Microsoft.AspNetCore.Html.IHtmlContent ValidationMessage(string expression, string message, object htmlAttributes, string tag) => throw null; - public static string ValidationMessageCssClassName; - public static string ValidationMessageValidCssClassName; - public Microsoft.AspNetCore.Html.IHtmlContent ValidationSummary(bool excludePropertyErrors, string message, object htmlAttributes, string tag) => throw null; - public static string ValidationSummaryCssClassName; - public static string ValidationSummaryValidCssClassName; - public string Value(string expression, string format) => throw null; - public dynamic ViewBag { get => throw null; } public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get => throw null; } + public dynamic ViewBag { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary TempData { get => throw null; } + public System.Text.Encodings.Web.UrlEncoder UrlEncoder { get => throw null; } + public Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider MetadataProvider { get => throw null; } } - - public class HtmlHelper : Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper, Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper + public class HtmlHelper : Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper, Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper { - public Microsoft.AspNetCore.Html.IHtmlContent CheckBoxFor(System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; + public HtmlHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator htmlGenerator, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope bufferScope, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider modelExpressionProvider) : base(default(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider), default(Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope), default(System.Text.Encodings.Web.HtmlEncoder), default(System.Text.Encodings.Web.UrlEncoder)) => throw null; public override void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent CheckBoxFor(System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; + public Microsoft.AspNetCore.Html.IHtmlContent DropDownListFor(System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList, string optionLabel, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent DisplayFor(System.Linq.Expressions.Expression> expression, string templateName, string htmlFieldName, object additionalViewData) => throw null; public string DisplayNameFor(System.Linq.Expressions.Expression> expression) => throw null; public string DisplayNameForInnerType(System.Linq.Expressions.Expression> expression) => throw null; public string DisplayTextFor(System.Linq.Expressions.Expression> expression) => throw null; - public Microsoft.AspNetCore.Html.IHtmlContent DropDownListFor(System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList, string optionLabel, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent EditorFor(System.Linq.Expressions.Expression> expression, string templateName, string htmlFieldName, object additionalViewData) => throw null; - protected string GetExpressionName(System.Linq.Expressions.Expression> expression) => throw null; - protected Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetModelExplorer(System.Linq.Expressions.Expression> expression) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent HiddenFor(System.Linq.Expressions.Expression> expression, object htmlAttributes) => throw null; - public HtmlHelper(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator htmlGenerator, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope bufferScope, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpressionProvider modelExpressionProvider) : base(default(Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider), default(Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope), default(System.Text.Encodings.Web.HtmlEncoder), default(System.Text.Encodings.Web.UrlEncoder)) => throw null; public string IdFor(System.Linq.Expressions.Expression> expression) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent LabelFor(System.Linq.Expressions.Expression> expression, string labelText, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent ListBoxFor(System.Linq.Expressions.Expression> expression, System.Collections.Generic.IEnumerable selectList, object htmlAttributes) => throw null; @@ -1164,53 +1064,51 @@ public class HtmlHelper : Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelp public Microsoft.AspNetCore.Html.IHtmlContent RadioButtonFor(System.Linq.Expressions.Expression> expression, object value, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent TextAreaFor(System.Linq.Expressions.Expression> expression, int rows, int columns, object htmlAttributes) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent TextBoxFor(System.Linq.Expressions.Expression> expression, string format, object htmlAttributes) => throw null; + protected string GetExpressionName(System.Linq.Expressions.Expression> expression) => throw null; + protected Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetModelExplorer(System.Linq.Expressions.Expression> expression) => throw null; public Microsoft.AspNetCore.Html.IHtmlContent ValidationMessageFor(System.Linq.Expressions.Expression> expression, string message, object htmlAttributes, string tag) => throw null; public string ValueFor(System.Linq.Expressions.Expression> expression, string format) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData { get => throw null; } } - public class HtmlHelperOptions { - public Microsoft.AspNetCore.Mvc.Rendering.CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get => throw null; set => throw null; } - public bool ClientValidationEnabled { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.FormInputRenderMode FormInputRenderMode { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set => throw null; } public HtmlHelperOptions() => throw null; - public string IdAttributeDotReplacement { get => throw null; set => throw null; } - public string ValidationMessageElement { get => throw null; set => throw null; } - public string ValidationSummaryMessageElement { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get => throw null; set { } } + public string IdAttributeDotReplacement { get => throw null; set { } } + public bool ClientValidationEnabled { get => throw null; set { } } + public string ValidationMessageElement { get => throw null; set { } } + public string ValidationSummaryMessageElement { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.CheckBoxHiddenInputRenderMode CheckBoxHiddenInputRenderMode { get => throw null; set { } } + public Microsoft.AspNetCore.Mvc.Rendering.FormInputRenderMode FormInputRenderMode { get => throw null; set { } } } - public interface IAntiforgeryPolicy : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata { } - public interface IFileVersionProvider { string AddFileVersionToPath(Microsoft.AspNetCore.Http.PathString requestPathBase, string path); } - public interface IHtmlGenerator { - string Encode(object value); string Encode(string value); + string Encode(object value); string FormatValue(object value, string format); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateActionLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes); + Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string pageName, string pageHandler, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes); Microsoft.AspNetCore.Html.IHtmlContent GenerateAntiforgery(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateCheckBox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool? isChecked, object htmlAttributes); + Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHiddenForCheckbox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string actionName, string controllerName, object routeValues, string method, object htmlAttributes); - Microsoft.AspNetCore.Html.IHtmlContent GenerateGroupsAndOptions(string optionLabel, System.Collections.Generic.IEnumerable selectList); + Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string pageName, string pageHandler, object routeValues, string fragment, string method, object htmlAttributes); + Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string method, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHidden(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool useViewData, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateHiddenForCheckbox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateLabel(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string labelText, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string pageName, string pageHandler, object routeValues, string fragment, string method, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string pageName, string pageHandler, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePassword(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRadioButton(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, bool? isChecked, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string method, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteLink(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes); - Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, System.Collections.Generic.ICollection currentValues, bool allowMultiple, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, bool allowMultiple, object htmlAttributes); + Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateSelect(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string optionLabel, string expression, System.Collections.Generic.IEnumerable selectList, System.Collections.Generic.ICollection currentValues, bool allowMultiple, object htmlAttributes); + Microsoft.AspNetCore.Html.IHtmlContent GenerateGroupsAndOptions(string optionLabel, System.Collections.Generic.IEnumerable selectList); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextArea(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, int rows, int columns, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateTextBox(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, string format, object htmlAttributes); Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateValidationMessage(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, string message, string tag, object htmlAttributes); @@ -1218,318 +1116,280 @@ public interface IHtmlGenerator System.Collections.Generic.ICollection GetCurrentValues(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, bool allowMultiple); string IdAttributeDotReplacement { get; } } - public interface IModelExpressionProvider { Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression CreateModelExpression(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.Linq.Expressions.Expression> expression); } - - public interface ITempDataDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public enum InputType { + CheckBox = 0, + Hidden = 1, + Password = 2, + Radio = 3, + Text = 4, + } + public interface ITempDataDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + { + void Load(); + void Save(); void Keep(); void Keep(string key); - void Load(); object Peek(string key); - void Save(); } - public interface ITempDataDictionaryFactory { Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary GetTempData(Microsoft.AspNetCore.Http.HttpContext context); } - public interface ITempDataProvider { System.Collections.Generic.IDictionary LoadTempData(Microsoft.AspNetCore.Http.HttpContext context); void SaveTempData(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IDictionary values); } - public interface IViewContextAware { void Contextualize(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext); } - - public enum InputType : int - { - CheckBox = 0, - Hidden = 1, - Password = 2, - Radio = 3, - Text = 4, - } - public class ModelExplorer { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer Container { get => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func modelAccessor) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(System.Type modelType, System.Func modelAccessor) => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(System.Type modelType, object model) => throw null; + public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; + public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func modelAccessor) => throw null; + public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForModel(object model) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty(string name) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty(string name, System.Func modelAccessor) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty(string name, object model) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(System.Type modelType, object model) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(System.Type modelType, System.Func modelAccessor) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func modelAccessor) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer Container { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; } public object Model { get => throw null; } - public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, System.Func modelAccessor) => throw null; - public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; - public ModelExplorer(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model) => throw null; public System.Type ModelType { get => throw null; } public System.Collections.Generic.IEnumerable Properties { get => throw null; } } - - public static class ModelExplorerExtensions + public static partial class ModelExplorerExtensions { public static string GetSimpleDisplayText(this Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer) => throw null; } - - public class ModelExpression + public sealed class ModelExpression { + public ModelExpression(string name, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer) => throw null; + public string Name { get => throw null; } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata Metadata { get => throw null; } public object Model { get => throw null; } public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer ModelExplorer { get => throw null; } - public ModelExpression(string name, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer) => throw null; - public string Name { get => throw null; } } - public class ModelExpressionProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider { + public ModelExpressionProvider(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; + public string GetExpressionText(System.Linq.Expressions.Expression> expression) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression CreateModelExpression(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.Linq.Expressions.Expression> expression) => throw null; public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression CreateModelExpression(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, string expression) => throw null; - public string GetExpressionText(System.Linq.Expressions.Expression> expression) => throw null; - public ModelExpressionProvider(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; } - - public static class ModelMetadataProviderExtensions + public static partial class ModelMetadataProviderExtensions { public static Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetModelExplorerForType(this Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, System.Type modelType, object model) => throw null; } - public class PartialViewResultExecutor : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { + public PartialViewResultExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) : base(default(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(System.Diagnostics.DiagnosticListener)) => throw null; + public virtual Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.PartialViewResult viewResult) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.PartialViewResult viewResult) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.PartialViewResult result) => throw null; - public virtual Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.PartialViewResult viewResult) => throw null; protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - public PartialViewResultExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) : base(default(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(System.Diagnostics.DiagnosticListener)) => throw null; } - public class SaveTempDataAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter { + public SaveTempDataAttribute() => throw null; public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance(System.IServiceProvider serviceProvider) => throw null; + public int Order { get => throw null; set { } } public bool IsReusable { get => throw null; } - public int Order { get => throw null; set => throw null; } - public SaveTempDataAttribute() => throw null; } - public class SessionStateTempDataProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider { + public SessionStateTempDataProvider(Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.TempDataSerializer tempDataSerializer) => throw null; public virtual System.Collections.Generic.IDictionary LoadTempData(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public virtual void SaveTempData(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IDictionary values) => throw null; - public SessionStateTempDataProvider(Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.TempDataSerializer tempDataSerializer) => throw null; } - public class StringHtmlContent : Microsoft.AspNetCore.Html.IHtmlContent { public StringHtmlContent(string input) => throw null; public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; } - - public class TempDataDictionary : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public class TempDataDictionary : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary, System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; + public TempDataDictionary(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider provider) => throw null; + public void Keep() => throw null; + public void Keep(string key) => throw null; + public void Load() => throw null; + public void Save() => throw null; + public object Peek(string key) => throw null; public void Add(string key, object value) => throw null; public void Clear() => throw null; - bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; public bool ContainsKey(string key) => throw null; public bool ContainsValue(object value) => throw null; - void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int index) => throw null; - public int Count { get => throw null; } public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } - public object this[string key] { get => throw null; set => throw null; } - public void Keep() => throw null; - public void Keep(string key) => throw null; - public System.Collections.Generic.ICollection Keys { get => throw null; } - public void Load() => throw null; - public object Peek(string key) => throw null; - bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; public bool Remove(string key) => throw null; - public void Save() => throw null; - public TempDataDictionary(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider provider) => throw null; public bool TryGetValue(string key, out object value) => throw null; + void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int index) => throw null; + void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; + bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; + bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair keyValuePair) => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public int Count { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } public System.Collections.Generic.ICollection Values { get => throw null; } + bool System.Collections.Generic.ICollection>.IsReadOnly { get => throw null; } + public object this[string key] { get => throw null; set { } } } - public class TempDataDictionaryFactory : Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory { - public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary GetTempData(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public TempDataDictionaryFactory(Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataProvider provider) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary GetTempData(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class TemplateInfo { - public bool AddVisited(object value) => throw null; - public object FormattedModelValue { get => throw null; set => throw null; } - public string GetFullHtmlFieldName(string partialFieldName) => throw null; - public string HtmlFieldPrefix { get => throw null; set => throw null; } - public int TemplateDepth { get => throw null; } public TemplateInfo() => throw null; public TemplateInfo(Microsoft.AspNetCore.Mvc.ViewFeatures.TemplateInfo original) => throw null; + public bool AddVisited(object value) => throw null; + public string GetFullHtmlFieldName(string partialFieldName) => throw null; public bool Visited(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer) => throw null; + public object FormattedModelValue { get => throw null; set { } } + public string HtmlFieldPrefix { get => throw null; set { } } + public int TemplateDepth { get => throw null; } } - public delegate bool TryGetValueDelegate(object dictionary, string key, out object value); - public static class TryGetValueProvider { public static Microsoft.AspNetCore.Mvc.ViewFeatures.TryGetValueDelegate CreateInstance(System.Type targetType) => throw null; } - public abstract class ValidationHtmlAttributeProvider { - public virtual void AddAndTrackValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IDictionary attributes) => throw null; public abstract void AddValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, System.Collections.Generic.IDictionary attributes); + public virtual void AddAndTrackValidationAttributes(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, System.Collections.Generic.IDictionary attributes) => throw null; protected ValidationHtmlAttributeProvider() => throw null; } - public class ViewComponentResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ViewComponentResult result) => throw null; public ViewComponentResultExecutor(Microsoft.Extensions.Options.IOptions mvcHelperOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataDictionaryFactory, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory) => throw null; + public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ViewComponentResult result) => throw null; } - public class ViewContextAttribute : System.Attribute { public ViewContextAttribute() => throw null; } - - public class ViewDataDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable + public class ViewDataDictionary : System.Collections.Generic.IDictionary, System.Collections.Generic.ICollection>, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { - public void Add(System.Collections.Generic.KeyValuePair item) => throw null; + public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; + public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source) => throw null; + protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, System.Type declaredModelType) => throw null; + protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Type declaredModelType) => throw null; + protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, System.Type declaredModelType) => throw null; + protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, object model, System.Type declaredModelType) => throw null; + public object Eval(string expression) => throw null; + public string Eval(string expression, string format) => throw null; + public static string FormatValue(object value, string format) => throw null; + public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo GetViewDataInfo(string expression) => throw null; + protected virtual void SetModel(object value) => throw null; public void Add(string key, object value) => throw null; + public bool ContainsKey(string key) => throw null; + public bool Remove(string key) => throw null; + public bool TryGetValue(string key, out object value) => throw null; + public void Add(System.Collections.Generic.KeyValuePair item) => throw null; public void Clear() => throw null; public bool Contains(System.Collections.Generic.KeyValuePair item) => throw null; - public bool ContainsKey(string key) => throw null; public void CopyTo(System.Collections.Generic.KeyValuePair[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } - public object Eval(string expression) => throw null; - public string Eval(string expression, string format) => throw null; - public static string FormatValue(object value, string format) => throw null; + public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; System.Collections.Generic.IEnumerator> System.Collections.Generic.IEnumerable>.GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo GetViewDataInfo(string expression) => throw null; - public bool IsReadOnly { get => throw null; } - public object this[string index] { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection Keys { get => throw null; } - public object Model { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer ModelExplorer { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; } + public object Model { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get => throw null; } - public bool Remove(System.Collections.Generic.KeyValuePair item) => throw null; - public bool Remove(string key) => throw null; - protected virtual void SetModel(object value) => throw null; + public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata ModelMetadata { get => throw null; } + public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer ModelExplorer { get => throw null; set { } } public Microsoft.AspNetCore.Mvc.ViewFeatures.TemplateInfo TemplateInfo { get => throw null; } - public bool TryGetValue(string key, out object value) => throw null; + public object this[string index] { get => throw null; set { } } + public int Count { get => throw null; } + public bool IsReadOnly { get => throw null; } + public System.Collections.Generic.ICollection Keys { get => throw null; } public System.Collections.Generic.ICollection Values { get => throw null; } - internal ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider) => throw null; - public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) => throw null; - protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Type declaredModelType) => throw null; - protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, System.Type declaredModelType) => throw null; - public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source) => throw null; - protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, System.Type declaredModelType) => throw null; - protected ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, object model, System.Type declaredModelType) => throw null; } - public class ViewDataDictionary : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary { - public TModel Model { get => throw null; set => throw null; } - internal ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; - public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; - public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; - public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, object model) : base(default(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider)) => throw null; + public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState) : base(default(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)) => throw null; + public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source) : base(default(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)) => throw null; + public ViewDataDictionary(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary source, object model) : base(default(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)) => throw null; + public TModel Model { get => throw null; set { } } } - public class ViewDataDictionaryAttribute : System.Attribute { public ViewDataDictionaryAttribute() => throw null; } - public class ViewDataDictionaryControllerPropertyActivator { + public ViewDataDictionaryControllerPropertyActivator(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; public void Activate(Microsoft.AspNetCore.Mvc.ControllerContext actionContext, object controller) => throw null; public System.Action GetActivatorDelegate(Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor actionDescriptor) => throw null; - public ViewDataDictionaryControllerPropertyActivator(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; } - public static class ViewDataEvaluator { public static Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo Eval(Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, string expression) => throw null; public static Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo Eval(object indexableObject, string expression) => throw null; } - public class ViewDataInfo { - public object Container { get => throw null; } - public System.Reflection.PropertyInfo PropertyInfo { get => throw null; } - public object Value { get => throw null; set => throw null; } + public ViewDataInfo(object container, object value) => throw null; public ViewDataInfo(object container, System.Reflection.PropertyInfo propertyInfo) => throw null; public ViewDataInfo(object container, System.Reflection.PropertyInfo propertyInfo, System.Func valueAccessor) => throw null; - public ViewDataInfo(object container, object value) => throw null; + public object Container { get => throw null; } + public System.Reflection.PropertyInfo PropertyInfo { get => throw null; } + public object Value { get => throw null; set { } } } - public class ViewExecutor { public static string DefaultContentType; - protected System.Diagnostics.DiagnosticListener DiagnosticListener { get => throw null; } + public ViewExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; + protected ViewExecutor(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; public virtual System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, string contentType, int? statusCode) => throw null; protected System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string contentType, int? statusCode) => throw null; - protected Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider ModelMetadataProvider { get => throw null; } + protected System.Diagnostics.DiagnosticListener DiagnosticListener { get => throw null; } protected Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory TempDataFactory { get => throw null; } protected Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get => throw null; } - protected ViewExecutor(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, System.Diagnostics.DiagnosticListener diagnosticListener) => throw null; - public ViewExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) => throw null; protected Microsoft.AspNetCore.Mvc.MvcViewOptions ViewOptions { get => throw null; } + protected Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider ModelMetadataProvider { get => throw null; } protected Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory WriterFactory { get => throw null; } } - public class ViewResultExecutor : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor { - public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ViewResult result) => throw null; + public ViewResultExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) : base(default(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(System.Diagnostics.DiagnosticListener)) => throw null; public virtual Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult FindView(Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewResult viewResult) => throw null; + public System.Threading.Tasks.Task ExecuteAsync(Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.ViewResult result) => throw null; protected Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - public ViewResultExecutor(Microsoft.Extensions.Options.IOptions viewOptions, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory writerFactory, Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine viewEngine, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory tempDataFactory, System.Diagnostics.DiagnosticListener diagnosticListener, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider) : base(default(Microsoft.AspNetCore.Mvc.Infrastructure.IHttpResponseStreamWriterFactory), default(Microsoft.AspNetCore.Mvc.ViewEngines.ICompositeViewEngine), default(System.Diagnostics.DiagnosticListener)) => throw null; } - namespace Buffers { public interface IViewBufferScope { - System.IO.TextWriter CreateWriter(System.IO.TextWriter writer); Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.ViewBufferValue[] GetPage(int pageSize); void ReturnSegment(Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.ViewBufferValue[] segment); + System.IO.TextWriter CreateWriter(System.IO.TextWriter writer); } - public struct ViewBufferValue { - public object Value { get => throw null; } - // Stub generator skipped constructor - public ViewBufferValue(Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; public ViewBufferValue(string value) => throw null; + public ViewBufferValue(Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; + public object Value { get => throw null; } } - } namespace Infrastructure { public abstract class TempDataSerializer { + public abstract System.Collections.Generic.IDictionary Deserialize(byte[] unprotectedData); + public abstract byte[] Serialize(System.Collections.Generic.IDictionary values); public virtual bool CanSerializeType(System.Type type) => throw null; - public abstract System.Collections.Generic.IDictionary Deserialize(System.Byte[] unprotectedData); - public abstract System.Byte[] Serialize(System.Collections.Generic.IDictionary values); protected TempDataSerializer() => throw null; } - } } } @@ -1538,24 +1398,22 @@ namespace Extensions { namespace DependencyInjection { - public static class MvcViewFeaturesMvcBuilderExtensions + public static partial class MvcViewFeaturesMvcBuilderExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewComponentsAsServices(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddSessionStateTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddSessionStateTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewComponentsAsServices(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddViewOptions(this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, System.Action setupAction) => throw null; } - - public static class MvcViewFeaturesMvcCoreBuilderExtensions + public static partial class MvcViewFeaturesMvcCoreBuilderExtensions { - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViews(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViews(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddCookieTempDataProvider(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder ConfigureViews(this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.cs index d45ae8e2a0fd7..dd99d473e9602 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Mvc.cs @@ -1,24 +1,22 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Mvc, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class MvcServiceCollectionExtensions + public static partial class MvcServiceCollectionExtensions { + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllers(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllers(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllersWithViews(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddControllersWithViews(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorPages(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorPages(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.OutputCaching.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.OutputCaching.cs index 404c5e60f22e5..a3357311cbd8a 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.OutputCaching.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.OutputCaching.cs @@ -1,138 +1,126 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.OutputCaching, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class OutputCacheApplicationBuilderExtensions + public static partial class OutputCacheApplicationBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOutputCache(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - } namespace OutputCaching { - public class CacheVaryByRules + public sealed class CacheVaryByRules { - public string CacheKeyPrefix { get => throw null; set => throw null; } public CacheVaryByRules() => throw null; - public Microsoft.Extensions.Primitives.StringValues HeaderNames { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringValues QueryKeys { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringValues RouteValueNames { get => throw null; set => throw null; } - public bool VaryByHost { get => throw null; set => throw null; } public System.Collections.Generic.IDictionary VaryByValues { get => throw null; } + public Microsoft.Extensions.Primitives.StringValues RouteValueNames { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringValues HeaderNames { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringValues QueryKeys { get => throw null; set { } } + public string CacheKeyPrefix { get => throw null; set { } } + public bool VaryByHost { get => throw null; set { } } } - public interface IOutputCacheFeature { Microsoft.AspNetCore.OutputCaching.OutputCacheContext Context { get; } } - public interface IOutputCachePolicy { System.Threading.Tasks.ValueTask CacheRequestAsync(Microsoft.AspNetCore.OutputCaching.OutputCacheContext context, System.Threading.CancellationToken cancellation); System.Threading.Tasks.ValueTask ServeFromCacheAsync(Microsoft.AspNetCore.OutputCaching.OutputCacheContext context, System.Threading.CancellationToken cancellation); System.Threading.Tasks.ValueTask ServeResponseAsync(Microsoft.AspNetCore.OutputCaching.OutputCacheContext context, System.Threading.CancellationToken cancellation); } - public interface IOutputCacheStore { System.Threading.Tasks.ValueTask EvictByTagAsync(string tag, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.ValueTask GetAsync(string key, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.ValueTask SetAsync(string key, System.Byte[] value, string[] tags, System.TimeSpan validFor, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.ValueTask GetAsync(string key, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.ValueTask SetAsync(string key, byte[] value, string[] tags, System.TimeSpan validFor, System.Threading.CancellationToken cancellationToken); } - - public class OutputCacheAttribute : System.Attribute + public sealed class OutputCacheAttribute : System.Attribute { - public int Duration { get => throw null; set => throw null; } - public bool NoStore { get => throw null; set => throw null; } public OutputCacheAttribute() => throw null; - public string PolicyName { get => throw null; set => throw null; } - public string[] VaryByHeaderNames { get => throw null; set => throw null; } - public string[] VaryByQueryKeys { get => throw null; set => throw null; } - public string[] VaryByRouteValueNames { get => throw null; set => throw null; } + public int Duration { get => throw null; set { } } + public bool NoStore { get => throw null; set { } } + public string[] VaryByQueryKeys { get => throw null; set { } } + public string[] VaryByHeaderNames { get => throw null; set { } } + public string[] VaryByRouteValueNames { get => throw null; set { } } + public string PolicyName { get => throw null; set { } } } - - public class OutputCacheContext + public sealed class OutputCacheContext { - public bool AllowCacheLookup { get => throw null; set => throw null; } - public bool AllowCacheStorage { get => throw null; set => throw null; } - public bool AllowLocking { get => throw null; set => throw null; } - public Microsoft.AspNetCore.OutputCaching.CacheVaryByRules CacheVaryByRules { get => throw null; } - public bool EnableOutputCaching { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } public OutputCacheContext() => throw null; - public System.TimeSpan? ResponseExpirationTimeSpan { get => throw null; set => throw null; } - public System.DateTimeOffset? ResponseTime { get => throw null; set => throw null; } + public bool EnableOutputCaching { get => throw null; set { } } + public bool AllowCacheLookup { get => throw null; set { } } + public bool AllowCacheStorage { get => throw null; set { } } + public bool AllowLocking { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } + public System.DateTimeOffset? ResponseTime { get => throw null; set { } } + public Microsoft.AspNetCore.OutputCaching.CacheVaryByRules CacheVaryByRules { get => throw null; } public System.Collections.Generic.HashSet Tags { get => throw null; } + public System.TimeSpan? ResponseExpirationTimeSpan { get => throw null; set { } } } - public class OutputCacheOptions { - public void AddBasePolicy(System.Action build) => throw null; - public void AddBasePolicy(System.Action build, bool excludeDefaultPolicy) => throw null; - public void AddBasePolicy(Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) => throw null; + public void AddPolicy(string name, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) => throw null; public void AddPolicy(string name, System.Action build) => throw null; public void AddPolicy(string name, System.Action build, bool excludeDefaultPolicy) => throw null; - public void AddPolicy(string name, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) => throw null; - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } - public System.TimeSpan DefaultExpirationTimeSpan { get => throw null; set => throw null; } - public System.Int64 MaximumBodySize { get => throw null; set => throw null; } + public void AddBasePolicy(Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) => throw null; + public void AddBasePolicy(System.Action build) => throw null; + public void AddBasePolicy(System.Action build, bool excludeDefaultPolicy) => throw null; public OutputCacheOptions() => throw null; - public System.Int64 SizeLimit { get => throw null; set => throw null; } - public bool UseCaseSensitivePaths { get => throw null; set => throw null; } + public long SizeLimit { get => throw null; set { } } + public long MaximumBodySize { get => throw null; set { } } + public System.TimeSpan DefaultExpirationTimeSpan { get => throw null; set { } } + public bool UseCaseSensitivePaths { get => throw null; set { } } + public System.IServiceProvider ApplicationServices { get => throw null; } } - - public class OutputCachePolicyBuilder + public sealed class OutputCachePolicyBuilder { public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder AddPolicy(System.Type policyType) => throw null; public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder AddPolicy() where T : Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Cache() => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Expire(System.TimeSpan expiration) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder NoCache() => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(System.Func> keyPrefix) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(System.Func keyPrefix) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(string keyPrefix) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetLocking(bool enabled) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader(string[] headerNames) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader(string headerName, params string[] headerNames) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHost(bool enabled) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByQuery(string[] queryKeys) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With(System.Func> predicate) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With(System.Func predicate) => throw null; public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByQuery(string queryKey, params string[] queryKeys) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByRouteValue(string[] routeValueNames) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByQuery(string[] queryKeys) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader(string headerName, params string[] headerNames) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader(string[] headerNames) => throw null; public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByRouteValue(string routeValueName, params string[] routeValueNames) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Tag(params string[] tags) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder VaryByValue(System.Func>> varyBy) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder VaryByValue(System.Func> varyBy) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByRouteValue(string[] routeValueNames) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(string keyPrefix) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(System.Func keyPrefix) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix(System.Func> keyPrefix) => throw null; public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder VaryByValue(string key, string value) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With(System.Func> predicate) => throw null; - public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder With(System.Func predicate) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder VaryByValue(System.Func> varyBy) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder VaryByValue(System.Func>> varyBy) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Tag(params string[] tags) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Expire(System.TimeSpan expiration) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetLocking(bool enabled) => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder NoCache() => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder Cache() => throw null; + public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHost(bool enabled) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class OutputCacheConventionBuilderExtensions + public static partial class OutputCacheServiceCollectionExtensions + { + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOutputCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOutputCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; + } + public static partial class OutputCacheConventionBuilderExtensions { public static TBuilder CacheOutput(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder CacheOutput(this TBuilder builder, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder CacheOutput(this TBuilder builder, System.Action policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder CacheOutput(this TBuilder builder, System.Action policy, bool excludeDefaultPolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder CacheOutput(this TBuilder builder, Microsoft.AspNetCore.OutputCaching.IOutputCachePolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder CacheOutput(this TBuilder builder, string policyName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - - public static class OutputCacheServiceCollectionExtensions - { - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOutputCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOutputCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; - } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RateLimiting.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RateLimiting.cs index 0bb4d3b987e90..08495a28096e9 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RateLimiting.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RateLimiting.cs @@ -1,76 +1,66 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.RateLimiting, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class RateLimiterApplicationBuilderExtensions + public static partial class RateLimiterApplicationBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRateLimiter(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRateLimiter(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options) => throw null; } - - public static class RateLimiterEndpointConventionBuilderExtensions + public static partial class RateLimiterEndpointConventionBuilderExtensions { - public static TBuilder DisableRateLimiting(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder RequireRateLimiting(this TBuilder builder, Microsoft.AspNetCore.RateLimiting.IRateLimiterPolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder RequireRateLimiting(this TBuilder builder, string policyName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder RequireRateLimiting(this TBuilder builder, Microsoft.AspNetCore.RateLimiting.IRateLimiterPolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder DisableRateLimiting(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - - public static class RateLimiterServiceCollectionExtensions + public static partial class RateLimiterServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRateLimiter(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } namespace RateLimiting { - public class DisableRateLimitingAttribute : System.Attribute + public sealed class DisableRateLimitingAttribute : System.Attribute { public DisableRateLimitingAttribute() => throw null; } - - public class EnableRateLimitingAttribute : System.Attribute + public sealed class EnableRateLimitingAttribute : System.Attribute { public EnableRateLimitingAttribute(string policyName) => throw null; public string PolicyName { get => throw null; } } - public interface IRateLimiterPolicy { System.Threading.RateLimiting.RateLimitPartition GetPartition(Microsoft.AspNetCore.Http.HttpContext httpContext); System.Func OnRejected { get; } } - - public class OnRejectedContext + public sealed class OnRejectedContext { - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } - public System.Threading.RateLimiting.RateLimitLease Lease { get => throw null; set => throw null; } public OnRejectedContext() => throw null; + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } + public System.Threading.RateLimiting.RateLimitLease Lease { get => throw null; set { } } } - - public class RateLimiterOptions + public sealed class RateLimiterOptions { - public Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddPolicy(string policyName) where TPolicy : Microsoft.AspNetCore.RateLimiting.IRateLimiterPolicy => throw null; public Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddPolicy(string policyName, System.Func> partitioner) => throw null; + public Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddPolicy(string policyName) where TPolicy : Microsoft.AspNetCore.RateLimiting.IRateLimiterPolicy => throw null; public Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddPolicy(string policyName, Microsoft.AspNetCore.RateLimiting.IRateLimiterPolicy policy) => throw null; - public System.Threading.RateLimiting.PartitionedRateLimiter GlobalLimiter { get => throw null; set => throw null; } - public System.Func OnRejected { get => throw null; set => throw null; } public RateLimiterOptions() => throw null; - public int RejectionStatusCode { get => throw null; set => throw null; } + public System.Threading.RateLimiting.PartitionedRateLimiter GlobalLimiter { get => throw null; set { } } + public System.Func OnRejected { get => throw null; set { } } + public int RejectionStatusCode { get => throw null; set { } } } - - public static class RateLimiterOptionsExtensions + public static partial class RateLimiterOptionsExtensions { - public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddConcurrencyLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; + public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddTokenBucketLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddFixedWindowLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddSlidingWindowLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; - public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddTokenBucketLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; + public static Microsoft.AspNetCore.RateLimiting.RateLimiterOptions AddConcurrencyLimiter(this Microsoft.AspNetCore.RateLimiting.RateLimiterOptions options, string policyName, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.Runtime.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.Runtime.cs index fddb3de9a7450..4cfd047d4c347 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.Runtime.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.Runtime.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Razor.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -15,71 +14,61 @@ public interface IRazorSourceChecksumMetadata string ChecksumAlgorithm { get; } string Identifier { get; } } - public abstract class RazorCompiledItem { + protected RazorCompiledItem() => throw null; public abstract string Identifier { get; } public abstract string Kind { get; } public abstract System.Collections.Generic.IReadOnlyList Metadata { get; } - protected RazorCompiledItem() => throw null; public abstract System.Type Type { get; } } - - public class RazorCompiledItemAttribute : System.Attribute + public sealed class RazorCompiledItemAttribute : System.Attribute { - public string Identifier { get => throw null; } - public string Kind { get => throw null; } public RazorCompiledItemAttribute(System.Type type, string kind, string identifier) => throw null; + public string Kind { get => throw null; } + public string Identifier { get => throw null; } public System.Type Type { get => throw null; } } - - public static class RazorCompiledItemExtensions + public static partial class RazorCompiledItemExtensions { public static System.Collections.Generic.IReadOnlyList GetChecksumMetadata(this Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem item) => throw null; } - public class RazorCompiledItemLoader { + public virtual System.Collections.Generic.IReadOnlyList LoadItems(System.Reflection.Assembly assembly) => throw null; protected virtual Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem CreateItem(Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute attribute) => throw null; protected System.Collections.Generic.IEnumerable LoadAttributes(System.Reflection.Assembly assembly) => throw null; - public virtual System.Collections.Generic.IReadOnlyList LoadItems(System.Reflection.Assembly assembly) => throw null; public RazorCompiledItemLoader() => throw null; } - - public class RazorCompiledItemMetadataAttribute : System.Attribute + public sealed class RazorCompiledItemMetadataAttribute : System.Attribute { - public string Key { get => throw null; } public RazorCompiledItemMetadataAttribute(string key, string value) => throw null; + public string Key { get => throw null; } public string Value { get => throw null; } } - - public class RazorConfigurationNameAttribute : System.Attribute + public sealed class RazorConfigurationNameAttribute : System.Attribute { - public string ConfigurationName { get => throw null; } public RazorConfigurationNameAttribute(string configurationName) => throw null; + public string ConfigurationName { get => throw null; } } - - public class RazorExtensionAssemblyNameAttribute : System.Attribute + public sealed class RazorExtensionAssemblyNameAttribute : System.Attribute { + public RazorExtensionAssemblyNameAttribute(string extensionName, string assemblyName) => throw null; public string AssemblyName { get => throw null; } public string ExtensionName { get => throw null; } - public RazorExtensionAssemblyNameAttribute(string extensionName, string assemblyName) => throw null; } - - public class RazorLanguageVersionAttribute : System.Attribute + public sealed class RazorLanguageVersionAttribute : System.Attribute { - public string LanguageVersion { get => throw null; } public RazorLanguageVersionAttribute(string languageVersion) => throw null; + public string LanguageVersion { get => throw null; } } - - public class RazorSourceChecksumAttribute : System.Attribute, Microsoft.AspNetCore.Razor.Hosting.IRazorSourceChecksumMetadata + public sealed class RazorSourceChecksumAttribute : System.Attribute, Microsoft.AspNetCore.Razor.Hosting.IRazorSourceChecksumMetadata { + public RazorSourceChecksumAttribute(string checksumAlgorithm, string checksum, string identifier) => throw null; public string Checksum { get => throw null; } public string ChecksumAlgorithm { get => throw null; } public string Identifier { get => throw null; } - public RazorSourceChecksumAttribute(string checksumAlgorithm, string checksum, string identifier) => throw null; } - } namespace Runtime { @@ -87,34 +76,31 @@ namespace TagHelpers { public class TagHelperExecutionContext { + public TagHelperExecutionContext(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, System.Collections.Generic.IDictionary items, string uniqueId, System.Func executeChildContentAsync, System.Action startTagHelperWritingScope, System.Func endTagHelperWritingScope) => throw null; public void Add(Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper tagHelper) => throw null; - public void AddHtmlAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public void AddHtmlAttribute(string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle) => throw null; - public void AddTagHelperAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; + public void AddHtmlAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public void AddTagHelperAttribute(string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle) => throw null; - public bool ChildContentRetrieved { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext Context { get => throw null; } - public System.Collections.Generic.IDictionary Items { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput Output { get => throw null; set => throw null; } + public void AddTagHelperAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public void Reinitialize(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, System.Collections.Generic.IDictionary items, string uniqueId, System.Func executeChildContentAsync) => throw null; public System.Threading.Tasks.Task SetOutputContentAsync() => throw null; - public TagHelperExecutionContext(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, System.Collections.Generic.IDictionary items, string uniqueId, System.Func executeChildContentAsync, System.Action startTagHelperWritingScope, System.Func endTagHelperWritingScope) => throw null; + public bool ChildContentRetrieved { get => throw null; } + public System.Collections.Generic.IDictionary Items { get => throw null; } public System.Collections.Generic.IList TagHelpers { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput Output { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext Context { get => throw null; } } - public class TagHelperRunner { public System.Threading.Tasks.Task RunAsync(Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext executionContext) => throw null; public TagHelperRunner() => throw null; } - public class TagHelperScopeManager { + public TagHelperScopeManager(System.Action startTagHelperWritingScope, System.Func endTagHelperWritingScope) => throw null; public Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext Begin(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, string uniqueId, System.Func executeChildContentAsync) => throw null; public Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext End() => throw null; - public TagHelperScopeManager(System.Action startTagHelperWritingScope, System.Func endTagHelperWritingScope) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.cs index e0237fcaff474..6de13fcbb9da6 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Razor.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Razor, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -14,225 +13,205 @@ public class DefaultTagHelperContent : Microsoft.AspNetCore.Razor.TagHelpers.Tag public override Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Append(string unencoded) => throw null; public override Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent htmlContent) => throw null; public override Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendHtml(string encoded) => throw null; - public override Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Clear() => throw null; public override void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; - public DefaultTagHelperContent() => throw null; - public override string GetContent() => throw null; - public override string GetContent(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; - public override bool IsEmptyOrWhiteSpace { get => throw null; } - public override bool IsModified { get => throw null; } public override void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; + public override Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Clear() => throw null; public override void Reinitialize() => throw null; + public override string GetContent() => throw null; + public override string GetContent(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public override void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public DefaultTagHelperContent() => throw null; + public override bool IsModified { get => throw null; } + public override bool IsEmptyOrWhiteSpace { get => throw null; } } - - public class HtmlAttributeNameAttribute : System.Attribute + public sealed class HtmlAttributeNameAttribute : System.Attribute { - public string DictionaryAttributePrefix { get => throw null; set => throw null; } - public bool DictionaryAttributePrefixSet { get => throw null; } public HtmlAttributeNameAttribute() => throw null; public HtmlAttributeNameAttribute(string name) => throw null; public string Name { get => throw null; } + public string DictionaryAttributePrefix { get => throw null; set { } } + public bool DictionaryAttributePrefixSet { get => throw null; } } - - public class HtmlAttributeNotBoundAttribute : System.Attribute + public sealed class HtmlAttributeNotBoundAttribute : System.Attribute { public HtmlAttributeNotBoundAttribute() => throw null; } - - public enum HtmlAttributeValueStyle : int + public enum HtmlAttributeValueStyle { DoubleQuotes = 0, - Minimized = 3, - NoQuotes = 2, SingleQuotes = 1, + NoQuotes = 2, + Minimized = 3, } - - public class HtmlTargetElementAttribute : System.Attribute + public sealed class HtmlTargetElementAttribute : System.Attribute { - public string Attributes { get => throw null; set => throw null; } - public const string ElementCatchAllTarget = default; + public static string ElementCatchAllTarget; public HtmlTargetElementAttribute() => throw null; public HtmlTargetElementAttribute(string tag) => throw null; - public string ParentTag { get => throw null; set => throw null; } public string Tag { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagStructure TagStructure { get => throw null; set => throw null; } + public string Attributes { get => throw null; set { } } + public Microsoft.AspNetCore.Razor.TagHelpers.TagStructure TagStructure { get => throw null; set { } } + public string ParentTag { get => throw null; set { } } } - public interface ITagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelperComponent { } - public interface ITagHelperComponent { void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context); - int Order { get; } System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output); + int Order { get; } } - - public class NullHtmlEncoder : System.Text.Encodings.Web.HtmlEncoder + public sealed class NullHtmlEncoder : System.Text.Encodings.Web.HtmlEncoder { - public static Microsoft.AspNetCore.Razor.TagHelpers.NullHtmlEncoder Default { get => throw null; } - public override void Encode(System.IO.TextWriter output, System.Char[] value, int startIndex, int characterCount) => throw null; - public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; public override string Encode(string value) => throw null; - unsafe public override int FindFirstCharacterToEncode(System.Char* text, int textLength) => throw null; - public override int MaxOutputCharactersPerInputCharacter { get => throw null; } - unsafe public override bool TryEncodeUnicodeScalar(int unicodeScalar, System.Char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; + public override void Encode(System.IO.TextWriter output, char[] value, int startIndex, int characterCount) => throw null; + public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; + public override unsafe int FindFirstCharacterToEncode(char* text, int textLength) => throw null; + public override unsafe bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; public override bool WillEncode(int unicodeScalar) => throw null; + public static Microsoft.AspNetCore.Razor.TagHelpers.NullHtmlEncoder Default { get => throw null; } + public override int MaxOutputCharactersPerInputCharacter { get => throw null; } } - - public class OutputElementHintAttribute : System.Attribute + public sealed class OutputElementHintAttribute : System.Attribute { - public string OutputElement { get => throw null; } public OutputElementHintAttribute(string outputElement) => throw null; + public string OutputElement { get => throw null; } } - public abstract class ReadOnlyTagHelperAttributeList : System.Collections.ObjectModel.ReadOnlyCollection { - public bool ContainsName(string name) => throw null; - public int IndexOfName(string name) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute this[string name] { get => throw null; } - protected static bool NameEquals(string name, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; protected ReadOnlyTagHelperAttributeList() : base(default(System.Collections.Generic.IList)) => throw null; public ReadOnlyTagHelperAttributeList(System.Collections.Generic.IList attributes) : base(default(System.Collections.Generic.IList)) => throw null; + public bool ContainsName(string name) => throw null; public bool TryGetAttribute(string name, out Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public bool TryGetAttributes(string name, out System.Collections.Generic.IReadOnlyList attributes) => throw null; + public int IndexOfName(string name) => throw null; + protected static bool NameEquals(string name, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute this[string name] { get => throw null; } } - - public class RestrictChildrenAttribute : System.Attribute + public sealed class RestrictChildrenAttribute : System.Attribute { - public System.Collections.Generic.IEnumerable ChildTags { get => throw null; } public RestrictChildrenAttribute(string childTag, params string[] childTags) => throw null; + public System.Collections.Generic.IEnumerable ChildTags { get => throw null; } } - public abstract class TagHelper : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper, Microsoft.AspNetCore.Razor.TagHelpers.ITagHelperComponent { public virtual void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; - public virtual int Order { get => throw null; } public virtual void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public virtual System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; protected TagHelper() => throw null; + public virtual int Order { get => throw null; } } - - public class TagHelperAttribute : Microsoft.AspNetCore.Html.IHtmlContent, Microsoft.AspNetCore.Html.IHtmlContentContainer + public class TagHelperAttribute : Microsoft.AspNetCore.Html.IHtmlContentContainer, Microsoft.AspNetCore.Html.IHtmlContent { - public void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; + public TagHelperAttribute(string name) => throw null; + public TagHelperAttribute(string name, object value) => throw null; + public TagHelperAttribute(string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle) => throw null; public bool Equals(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute other) => throw null; + public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; + public void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; - public void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; public string Name { get => throw null; } - public TagHelperAttribute(string name) => throw null; - public TagHelperAttribute(string name, object value) => throw null; - public TagHelperAttribute(string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle) => throw null; public object Value { get => throw null; } public Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle ValueStyle { get => throw null; } - public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; } - - public class TagHelperAttributeList : Microsoft.AspNetCore.Razor.TagHelpers.ReadOnlyTagHelperAttributeList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable + public class TagHelperAttributeList : Microsoft.AspNetCore.Razor.TagHelpers.ReadOnlyTagHelperAttributeList, System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public void Add(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; + public TagHelperAttributeList() => throw null; + public TagHelperAttributeList(System.Collections.Generic.IEnumerable attributes) => throw null; + public TagHelperAttributeList(System.Collections.Generic.List attributes) => throw null; + public void SetAttribute(string name, object value) => throw null; + public void SetAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public void Add(string name, object value) => throw null; - public void Clear() => throw null; + public void Add(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; public void Insert(int index, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; - bool System.Collections.Generic.ICollection.IsReadOnly { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute this[int index] { get => throw null; set => throw null; } public bool Remove(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; - public bool RemoveAll(string name) => throw null; public void RemoveAt(int index) => throw null; - public void SetAttribute(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute) => throw null; - public void SetAttribute(string name, object value) => throw null; - public TagHelperAttributeList() => throw null; - public TagHelperAttributeList(System.Collections.Generic.IEnumerable attributes) => throw null; - public TagHelperAttributeList(System.Collections.Generic.List attributes) => throw null; + public bool RemoveAll(string name) => throw null; + public void Clear() => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute this[int index] { get => throw null; set { } } + bool System.Collections.Generic.ICollection.IsReadOnly { get => throw null; } } - public abstract class TagHelperComponent : Microsoft.AspNetCore.Razor.TagHelpers.ITagHelperComponent { public virtual void Init(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context) => throw null; - public virtual int Order { get => throw null; } public virtual void Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; public virtual System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output) => throw null; protected TagHelperComponent() => throw null; + public virtual int Order { get => throw null; } } - - public abstract class TagHelperContent : Microsoft.AspNetCore.Html.IHtmlContent, Microsoft.AspNetCore.Html.IHtmlContentBuilder, Microsoft.AspNetCore.Html.IHtmlContentContainer + public abstract class TagHelperContent : Microsoft.AspNetCore.Html.IHtmlContentBuilder, Microsoft.AspNetCore.Html.IHtmlContentContainer, Microsoft.AspNetCore.Html.IHtmlContent { + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent(Microsoft.AspNetCore.Html.IHtmlContent htmlContent) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetContent(string unencoded) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent(string encoded) => throw null; public abstract Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Append(string unencoded); - Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.Append(string unencoded) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat(System.IFormatProvider provider, string format, params object[] args) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat(string format, params object[] args) => throw null; public abstract Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent htmlContent); - Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; public abstract Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendHtml(string encoded); - Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.AppendHtml(string encoded) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat(string format, params object[] args) => throw null; + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat(System.IFormatProvider provider, string format, params object[] args) => throw null; public abstract Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Clear(); - Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.Clear() => throw null; + public abstract void Reinitialize(); public abstract void CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination); + public abstract void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination); public abstract string GetContent(); public abstract string GetContent(System.Text.Encodings.Web.HtmlEncoder encoder); - public abstract bool IsEmptyOrWhiteSpace { get; } - public abstract bool IsModified { get; } - public abstract void MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination); - public abstract void Reinitialize(); - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetContent(string unencoded) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent(Microsoft.AspNetCore.Html.IHtmlContent htmlContent) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent(string encoded) => throw null; - protected TagHelperContent() => throw null; public abstract void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder); + Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.AppendHtml(Microsoft.AspNetCore.Html.IHtmlContent content) => throw null; + Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.Append(string unencoded) => throw null; + Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.AppendHtml(string encoded) => throw null; + Microsoft.AspNetCore.Html.IHtmlContentBuilder Microsoft.AspNetCore.Html.IHtmlContentBuilder.Clear() => throw null; + protected TagHelperContent() => throw null; + public abstract bool IsModified { get; } + public abstract bool IsEmptyOrWhiteSpace { get; } } - public class TagHelperContext { - public Microsoft.AspNetCore.Razor.TagHelpers.ReadOnlyTagHelperAttributeList AllAttributes { get => throw null; } - public System.Collections.Generic.IDictionary Items { get => throw null; } - public void Reinitialize(System.Collections.Generic.IDictionary items, string uniqueId) => throw null; - public void Reinitialize(string tagName, System.Collections.Generic.IDictionary items, string uniqueId) => throw null; - public TagHelperContext(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList allAttributes, System.Collections.Generic.IDictionary items, string uniqueId) => throw null; public TagHelperContext(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList allAttributes, System.Collections.Generic.IDictionary items, string uniqueId) => throw null; + public TagHelperContext(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList allAttributes, System.Collections.Generic.IDictionary items, string uniqueId) => throw null; + public void Reinitialize(string tagName, System.Collections.Generic.IDictionary items, string uniqueId) => throw null; + public void Reinitialize(System.Collections.Generic.IDictionary items, string uniqueId) => throw null; public string TagName { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.ReadOnlyTagHelperAttributeList AllAttributes { get => throw null; } + public System.Collections.Generic.IDictionary Items { get => throw null; } public string UniqueId { get => throw null; } } - - public class TagHelperOutput : Microsoft.AspNetCore.Html.IHtmlContent, Microsoft.AspNetCore.Html.IHtmlContentContainer + public class TagHelperOutput : Microsoft.AspNetCore.Html.IHtmlContentContainer, Microsoft.AspNetCore.Html.IHtmlContent { - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList Attributes { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Content { get => throw null; set => throw null; } - void Microsoft.AspNetCore.Html.IHtmlContentContainer.CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; + public TagHelperOutput(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList attributes, System.Func> getChildContentAsync) => throw null; + public void Reinitialize(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode) => throw null; + public void SuppressOutput() => throw null; public System.Threading.Tasks.Task GetChildContentAsync() => throw null; - public System.Threading.Tasks.Task GetChildContentAsync(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public System.Threading.Tasks.Task GetChildContentAsync(bool useCachedResult) => throw null; + public System.Threading.Tasks.Task GetChildContentAsync(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; public System.Threading.Tasks.Task GetChildContentAsync(bool useCachedResult, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; - public bool IsContentModified { get => throw null; } + void Microsoft.AspNetCore.Html.IHtmlContentContainer.CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; void Microsoft.AspNetCore.Html.IHtmlContentContainer.MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder destination) => throw null; + public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public string TagName { get => throw null; set { } } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PreElement { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PreContent { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent Content { get => throw null; set { } } public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PostContent { get => throw null; } public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PostElement { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PreContent { get => throw null; } - public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent PreElement { get => throw null; } - public void Reinitialize(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode) => throw null; - public void SuppressOutput() => throw null; - public TagHelperOutput(string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList attributes, System.Func> getChildContentAsync) => throw null; - public Microsoft.AspNetCore.Razor.TagHelpers.TagMode TagMode { get => throw null; set => throw null; } - public string TagName { get => throw null; set => throw null; } - public void WriteTo(System.IO.TextWriter writer, System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public bool IsContentModified { get => throw null; } + public Microsoft.AspNetCore.Razor.TagHelpers.TagMode TagMode { get => throw null; set { } } + public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList Attributes { get => throw null; } } - - public enum TagMode : int + public enum TagMode { - SelfClosing = 1, StartTagAndEndTag = 0, + SelfClosing = 1, StartTagOnly = 2, } - - public enum TagStructure : int + public enum TagStructure { - NormalOrSelfClosing = 1, Unspecified = 0, + NormalOrSelfClosing = 1, WithoutEndTag = 2, } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RequestDecompression.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RequestDecompression.cs index 1d9dbeeaa9ad9..b10d05167b062 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RequestDecompression.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.RequestDecompression.cs @@ -1,17 +1,15 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.RequestDecompression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class RequestDecompressionBuilderExtensions + public static partial class RequestDecompressionBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRequestDecompression(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; } - } namespace RequestDecompression { @@ -19,30 +17,26 @@ public interface IDecompressionProvider { System.IO.Stream GetDecompressionStream(System.IO.Stream stream); } - public interface IRequestDecompressionProvider { System.IO.Stream GetDecompressionStream(Microsoft.AspNetCore.Http.HttpContext context); } - - public class RequestDecompressionOptions + public sealed class RequestDecompressionOptions { - public System.Collections.Generic.IDictionary DecompressionProviders { get => throw null; } public RequestDecompressionOptions() => throw null; + public System.Collections.Generic.IDictionary DecompressionProviders { get => throw null; } } - } } namespace Extensions { namespace DependencyInjection { - public static class RequestDecompressionServiceExtensions + public static partial class RequestDecompressionServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.Abstractions.cs index 3221fa5aba74b..8710c555a080e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.ResponseCaching.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,7 +10,6 @@ public interface IResponseCachingFeature { string[] VaryByQueryKeys { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.cs index 90b2a5cc97ddf..ff4544f7f6ffc 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCaching.cs @@ -1,52 +1,46 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.ResponseCaching, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class ResponseCachingExtensions + public static partial class ResponseCachingExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseResponseCaching(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; } - } namespace ResponseCaching { public class ResponseCachingFeature : Microsoft.AspNetCore.ResponseCaching.IResponseCachingFeature { public ResponseCachingFeature() => throw null; - public string[] VaryByQueryKeys { get => throw null; set => throw null; } + public string[] VaryByQueryKeys { get => throw null; set { } } } - public class ResponseCachingMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public ResponseCachingMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.ObjectPool.ObjectPoolProvider poolProvider) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - public class ResponseCachingOptions { - public System.Int64 MaximumBodySize { get => throw null; set => throw null; } public ResponseCachingOptions() => throw null; - public System.Int64 SizeLimit { get => throw null; set => throw null; } - public bool UseCaseSensitivePaths { get => throw null; set => throw null; } + public long SizeLimit { get => throw null; set { } } + public long MaximumBodySize { get => throw null; set { } } + public bool UseCaseSensitivePaths { get => throw null; set { } } } - } } namespace Extensions { namespace DependencyInjection { - public static class ResponseCachingServicesExtensions + public static partial class ResponseCachingServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCaching(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCaching(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCompression.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCompression.cs index 3e1947b46f2ea..ce5d672ad090f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCompression.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.ResponseCompression.cs @@ -1,23 +1,20 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.ResponseCompression, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class ResponseCompressionBuilderExtensions + public static partial class ResponseCompressionBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseResponseCompression(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; } - - public static class ResponseCompressionServicesExtensions + public static partial class ResponseCompressionServicesExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCompression(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResponseCompression(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } namespace ResponseCompression { @@ -28,79 +25,68 @@ public class BrotliCompressionProvider : Microsoft.AspNetCore.ResponseCompressio public string EncodingName { get => throw null; } public bool SupportsFlush { get => throw null; } } - public class BrotliCompressionProviderOptions : Microsoft.Extensions.Options.IOptions { public BrotliCompressionProviderOptions() => throw null; - public System.IO.Compression.CompressionLevel Level { get => throw null; set => throw null; } + public System.IO.Compression.CompressionLevel Level { get => throw null; set { } } Microsoft.AspNetCore.ResponseCompression.BrotliCompressionProviderOptions Microsoft.Extensions.Options.IOptions.Value { get => throw null; } } - public class CompressionProviderCollection : System.Collections.ObjectModel.Collection { - public void Add(System.Type providerType) => throw null; public void Add() where TCompressionProvider : Microsoft.AspNetCore.ResponseCompression.ICompressionProvider => throw null; + public void Add(System.Type providerType) => throw null; public CompressionProviderCollection() => throw null; } - public class GzipCompressionProvider : Microsoft.AspNetCore.ResponseCompression.ICompressionProvider { + public GzipCompressionProvider(Microsoft.Extensions.Options.IOptions options) => throw null; public System.IO.Stream CreateStream(System.IO.Stream outputStream) => throw null; public string EncodingName { get => throw null; } - public GzipCompressionProvider(Microsoft.Extensions.Options.IOptions options) => throw null; public bool SupportsFlush { get => throw null; } } - public class GzipCompressionProviderOptions : Microsoft.Extensions.Options.IOptions { public GzipCompressionProviderOptions() => throw null; - public System.IO.Compression.CompressionLevel Level { get => throw null; set => throw null; } + public System.IO.Compression.CompressionLevel Level { get => throw null; set { } } Microsoft.AspNetCore.ResponseCompression.GzipCompressionProviderOptions Microsoft.Extensions.Options.IOptions.Value { get => throw null; } } - public interface ICompressionProvider { System.IO.Stream CreateStream(System.IO.Stream outputStream); string EncodingName { get; } bool SupportsFlush { get; } } - public interface IResponseCompressionProvider { - bool CheckRequestAcceptsCompression(Microsoft.AspNetCore.Http.HttpContext context); Microsoft.AspNetCore.ResponseCompression.ICompressionProvider GetCompressionProvider(Microsoft.AspNetCore.Http.HttpContext context); bool ShouldCompressResponse(Microsoft.AspNetCore.Http.HttpContext context); + bool CheckRequestAcceptsCompression(Microsoft.AspNetCore.Http.HttpContext context); } - public class ResponseCompressionDefaults { public static System.Collections.Generic.IEnumerable MimeTypes; public ResponseCompressionDefaults() => throw null; } - public class ResponseCompressionMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public ResponseCompressionMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.ResponseCompression.IResponseCompressionProvider provider) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class ResponseCompressionOptions { - public bool EnableForHttps { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable ExcludedMimeTypes { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable MimeTypes { get => throw null; set => throw null; } - public Microsoft.AspNetCore.ResponseCompression.CompressionProviderCollection Providers { get => throw null; } public ResponseCompressionOptions() => throw null; + public System.Collections.Generic.IEnumerable MimeTypes { get => throw null; set { } } + public System.Collections.Generic.IEnumerable ExcludedMimeTypes { get => throw null; set { } } + public bool EnableForHttps { get => throw null; set { } } + public Microsoft.AspNetCore.ResponseCompression.CompressionProviderCollection Providers { get => throw null; } } - public class ResponseCompressionProvider : Microsoft.AspNetCore.ResponseCompression.IResponseCompressionProvider { - public bool CheckRequestAcceptsCompression(Microsoft.AspNetCore.Http.HttpContext context) => throw null; - public virtual Microsoft.AspNetCore.ResponseCompression.ICompressionProvider GetCompressionProvider(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public ResponseCompressionProvider(System.IServiceProvider services, Microsoft.Extensions.Options.IOptions options) => throw null; + public virtual Microsoft.AspNetCore.ResponseCompression.ICompressionProvider GetCompressionProvider(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public virtual bool ShouldCompressResponse(Microsoft.AspNetCore.Http.HttpContext context) => throw null; + public bool CheckRequestAcceptsCompression(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Rewrite.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Rewrite.cs index d5e6f4d527f18..086ceb579e6b2 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Rewrite.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Rewrite.cs @@ -1,92 +1,82 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Rewrite, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class RewriteBuilderExtensions + public static partial class RewriteBuilderExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRewriter(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRewriter(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; } - } namespace Rewrite { - public static class ApacheModRewriteOptionsExtensions + public static partial class ApacheModRewriteOptionsExtensions { public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader) => throw null; } - - public static class IISUrlRewriteOptionsExtensions + public static partial class IISUrlRewriteOptionsExtensions { - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath, bool alwaysUseManagedServerVariables = default(bool)) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader, bool alwaysUseManagedServerVariables = default(bool)) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath, bool alwaysUseManagedServerVariables) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddIISUrlRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader, bool alwaysUseManagedServerVariables) => throw null; } - public interface IRule { void ApplyRule(Microsoft.AspNetCore.Rewrite.RewriteContext context); } - public class RewriteContext { - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set => throw null; } - public Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Rewrite.RuleResult Result { get => throw null; set => throw null; } public RewriteContext() => throw null; - public Microsoft.Extensions.FileProviders.IFileProvider StaticFileProvider { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider StaticFileProvider { get => throw null; set { } } + public Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set { } } + public Microsoft.AspNetCore.Rewrite.RuleResult Result { get => throw null; set { } } } - public class RewriteMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public RewriteMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class RewriteOptions { public RewriteOptions() => throw null; public System.Collections.Generic.IList Rules { get => throw null; } - public Microsoft.Extensions.FileProviders.IFileProvider StaticFileProvider { get => throw null; set => throw null; } + public Microsoft.Extensions.FileProviders.IFileProvider StaticFileProvider { get => throw null; set { } } } - - public static class RewriteOptionsExtensions + public static partial class RewriteOptionsExtensions { - public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.Action applyRule) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.AspNetCore.Rewrite.IRule rule) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.Action applyRule) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement, bool skipRemainingRules) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirect(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirect(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement, int statusCode) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttpsPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttps(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, int? sslPort) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttpsPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode) => throw null; public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; - public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRewrite(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, string regex, string replacement, bool skipRemainingRules) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWwwPermanent(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode) => throw null; + public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww(this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains) => throw null; } - - public enum RuleResult : int + public enum RuleResult { ContinueRules = 0, EndResponse = 1, SkipRemainingRules = 2, } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.Abstractions.cs index 55aaed4c900f3..c75f3b0f26c73 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Routing.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -11,107 +10,90 @@ public interface IOutboundParameterTransformer : Microsoft.AspNetCore.Routing.IP { string TransformOutbound(object value); } - public interface IParameterPolicy { } - public interface IRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy { bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection); } - public interface IRouteHandler { Microsoft.AspNetCore.Http.RequestDelegate GetRequestHandler(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData); } - public interface IRouter { - Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context); System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context); + Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context); } - public interface IRoutingFeature { Microsoft.AspNetCore.Routing.RouteData RouteData { get; set; } } - public abstract class LinkGenerator { - public abstract string GetPathByAddress(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)); - public abstract string GetPathByAddress(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)); - public abstract string GetUriByAddress(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)); - public abstract string GetUriByAddress(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)); + public abstract string GetPathByAddress(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options); + public abstract string GetPathByAddress(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options); + public abstract string GetUriByAddress(Microsoft.AspNetCore.Http.HttpContext httpContext, TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options); + public abstract string GetUriByAddress(TAddress address, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options); protected LinkGenerator() => throw null; } - public class LinkOptions { - public bool? AppendTrailingSlash { get => throw null; set => throw null; } public LinkOptions() => throw null; - public bool? LowercaseQueryStrings { get => throw null; set => throw null; } - public bool? LowercaseUrls { get => throw null; set => throw null; } + public bool? LowercaseUrls { get => throw null; set { } } + public bool? LowercaseQueryStrings { get => throw null; set { } } + public bool? AppendTrailingSlash { get => throw null; set { } } } - public class RouteContext { - public Microsoft.AspNetCore.Http.RequestDelegate Handler { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public RouteContext(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Http.RequestDelegate Handler { get => throw null; set { } } + public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set { } } } - public class RouteData { - public struct RouteDataSnapshot - { - public void Restore() => throw null; - // Stub generator skipped constructor - public RouteDataSnapshot(Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, System.Collections.Generic.IList routers, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; - } - - - public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot PushState(Microsoft.AspNetCore.Routing.IRouter router, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null; public RouteData() => throw null; public RouteData(Microsoft.AspNetCore.Routing.RouteData other) => throw null; public RouteData(Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + public Microsoft.AspNetCore.Routing.RouteData.RouteDataSnapshot PushState(Microsoft.AspNetCore.Routing.IRouter router, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; } public System.Collections.Generic.IList Routers { get => throw null; } public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; } + public struct RouteDataSnapshot + { + public RouteDataSnapshot(Microsoft.AspNetCore.Routing.RouteData routeData, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, System.Collections.Generic.IList routers, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + public void Restore() => throw null; + } } - - public enum RouteDirection : int + public enum RouteDirection { IncomingRequest = 0, UrlGeneration = 1, } - - public static class RoutingHttpContextExtensions + public static partial class RoutingHttpContextExtensions { public static Microsoft.AspNetCore.Routing.RouteData GetRouteData(this Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; public static object GetRouteValue(this Microsoft.AspNetCore.Http.HttpContext httpContext, string key) => throw null; } - public class VirtualPathContext { + public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string routeName) => throw null; public Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; } public Microsoft.AspNetCore.Http.HttpContext HttpContext { get => throw null; } public string RouteName { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; set => throw null; } - public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; - public VirtualPathContext(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string routeName) => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; set { } } } - public class VirtualPathData { - public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; } - public Microsoft.AspNetCore.Routing.IRouter Router { get => throw null; set => throw null; } - public string VirtualPath { get => throw null; set => throw null; } public VirtualPathData(Microsoft.AspNetCore.Routing.IRouter router, string virtualPath) => throw null; public VirtualPathData(Microsoft.AspNetCore.Routing.IRouter router, string virtualPath, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; } + public Microsoft.AspNetCore.Routing.IRouter Router { get => throw null; set { } } + public string VirtualPath { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.cs index 4122a512cec81..563dd675658cb 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Routing.cs @@ -1,494 +1,433 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Routing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class EndpointRouteBuilderExtensions + public static partial class EndpointRouteBuilderExtensions { - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapDelete(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapDelete(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapGet(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapGet(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; - public static Microsoft.AspNetCore.Routing.RouteGroupBuilder MapGroup(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern prefix) => throw null; public static Microsoft.AspNetCore.Routing.RouteGroupBuilder MapGroup(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string prefix) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapMethods(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable httpMethods, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapMethods(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable httpMethods, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapPatch(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Routing.RouteGroupBuilder MapGroup(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern prefix) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapGet(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPost(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPut(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapDelete(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPatch(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapMethods(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable httpMethods, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapGet(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapPost(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPost(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapPut(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; - public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapPut(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapDelete(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapPatch(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapMethods(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Collections.Generic.IEnumerable httpMethods, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, System.Delegate handler) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Delegate handler) => throw null; } - - public static class EndpointRoutingApplicationBuilderExtensions + public static partial class EndpointRoutingApplicationBuilderExtensions { - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseEndpoints(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, System.Action configure) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouting(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseEndpoints(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, System.Action configure) => throw null; } - - public static class FallbackEndpointRouteBuilderExtensions + public static partial class FallbackEndpointRouteBuilderExtensions { public static string DefaultPattern; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallback(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; } - - public static class MapRouteRouteBuilderExtensions - { - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults, object constraints) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults, object constraints, object dataTokens) => throw null; - } - - public class RouteHandlerBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder + public sealed class RouteHandlerBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { + public RouteHandlerBuilder(System.Collections.Generic.IEnumerable endpointConventionBuilders) => throw null; public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; - public RouteHandlerBuilder(System.Collections.Generic.IEnumerable endpointConventionBuilders) => throw null; - } - - public class RouterMiddleware - { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; - public RouterMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Routing.IRouter router) => throw null; } - - public static class RoutingBuilderExtensions + public static partial class RoutingBuilderExtensions { - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouter(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, System.Action action) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouter(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Routing.IRouter router) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseRouter(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, System.Action action) => throw null; } - - public static class RoutingEndpointConventionBuilderExtensions + public static partial class RoutingEndpointConventionBuilderExtensions { public static TBuilder RequireHost(this TBuilder builder, params string[] hosts) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder WithDisplayName(this TBuilder builder, System.Func func) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder WithDisplayName(this TBuilder builder, string displayName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static TBuilder WithGroupName(this TBuilder builder, string endpointGroupName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder WithDisplayName(this TBuilder builder, System.Func func) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder WithMetadata(this TBuilder builder, params object[] items) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder WithName(this TBuilder builder, string endpointName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static TBuilder WithGroupName(this TBuilder builder, string endpointGroupName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + } + public static partial class MapRouteRouteBuilderExtensions + { + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults, object constraints) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string template, object defaults, object constraints, object dataTokens) => throw null; + } + public class RouterMiddleware + { + public RouterMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Routing.IRouter router) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - } namespace Http { - public static class EndpointFilterExtensions + public static partial class EndpointFilterExtensions { - public static TBuilder AddEndpointFilter(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder where TFilterType : Microsoft.AspNetCore.Http.IEndpointFilter => throw null; - public static TBuilder AddEndpointFilter(this TBuilder builder, System.Func> routeHandlerFilter) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder AddEndpointFilter(this TBuilder builder, Microsoft.AspNetCore.Http.IEndpointFilter filter) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static Microsoft.AspNetCore.Routing.RouteGroupBuilder AddEndpointFilter(this Microsoft.AspNetCore.Routing.RouteGroupBuilder builder) where TFilterType : Microsoft.AspNetCore.Http.IEndpointFilter => throw null; + public static TBuilder AddEndpointFilter(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder where TFilterType : Microsoft.AspNetCore.Http.IEndpointFilter => throw null; public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder AddEndpointFilter(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder) where TFilterType : Microsoft.AspNetCore.Http.IEndpointFilter => throw null; + public static Microsoft.AspNetCore.Routing.RouteGroupBuilder AddEndpointFilter(this Microsoft.AspNetCore.Routing.RouteGroupBuilder builder) where TFilterType : Microsoft.AspNetCore.Http.IEndpointFilter => throw null; + public static TBuilder AddEndpointFilter(this TBuilder builder, System.Func> routeHandlerFilter) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder AddEndpointFilterFactory(this TBuilder builder, System.Func filterFactory) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - - public static class OpenApiRouteHandlerBuilderExtensions + public static partial class OpenApiRouteHandlerBuilderExtensions { - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, System.Type requestType, bool isOptional, string contentType, params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, System.Type requestType, string contentType, params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, bool isOptional, string contentType, params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, string contentType, params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ExcludeFromDescription(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder) => throw null; public static TBuilder ExcludeFromDescription(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Produces(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, System.Type responseType = default(System.Type), string contentType = default(string), params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Produces(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode = default(int), string contentType = default(string), params string[] additionalContentTypes) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ProducesProblem(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, string contentType = default(string)) => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ProducesValidationProblem(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode = default(int), string contentType = default(string)) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ExcludeFromDescription(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Produces(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, string contentType, params string[] additionalContentTypes) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Produces(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, System.Type responseType, string contentType, params string[] additionalContentTypes) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ProducesProblem(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, string contentType) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ProducesValidationProblem(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, int statusCode, string contentType) => throw null; + public static TBuilder WithTags(this TBuilder builder, params string[] tags) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder WithTags(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, params string[] tags) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, string contentType, params string[] additionalContentTypes) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, bool isOptional, string contentType, params string[] additionalContentTypes) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, System.Type requestType, string contentType, params string[] additionalContentTypes) => throw null; + public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Accepts(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, System.Type requestType, bool isOptional, string contentType, params string[] additionalContentTypes) => throw null; public static TBuilder WithDescription(this TBuilder builder, string description) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; public static TBuilder WithSummary(this TBuilder builder, string summary) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; - public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder WithTags(this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder, params string[] tags) => throw null; - public static TBuilder WithTags(this TBuilder builder, params string[] tags) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder => throw null; } - } namespace Routing { - public class CompositeEndpointDataSource : Microsoft.AspNetCore.Routing.EndpointDataSource, System.IDisposable + public sealed class CompositeEndpointDataSource : Microsoft.AspNetCore.Routing.EndpointDataSource, System.IDisposable { public CompositeEndpointDataSource(System.Collections.Generic.IEnumerable endpointDataSources) => throw null; - public System.Collections.Generic.IEnumerable DataSources { get => throw null; } - public void Dispose() => throw null; - public override System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } public override Microsoft.Extensions.Primitives.IChangeToken GetChangeToken() => throw null; public override System.Collections.Generic.IReadOnlyList GetGroupedEndpoints(Microsoft.AspNetCore.Routing.RouteGroupContext context) => throw null; + public void Dispose() => throw null; + public System.Collections.Generic.IEnumerable DataSources { get => throw null; } + public override System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } } - - public class DataTokensMetadata : Microsoft.AspNetCore.Routing.IDataTokensMetadata + public sealed class DataTokensMetadata : Microsoft.AspNetCore.Routing.IDataTokensMetadata { - public System.Collections.Generic.IReadOnlyDictionary DataTokens { get => throw null; } public DataTokensMetadata(System.Collections.Generic.IReadOnlyDictionary dataTokens) => throw null; + public System.Collections.Generic.IReadOnlyDictionary DataTokens { get => throw null; } } - - public class DefaultEndpointDataSource : Microsoft.AspNetCore.Routing.EndpointDataSource + public sealed class DefaultEndpointDataSource : Microsoft.AspNetCore.Routing.EndpointDataSource { - public DefaultEndpointDataSource(System.Collections.Generic.IEnumerable endpoints) => throw null; public DefaultEndpointDataSource(params Microsoft.AspNetCore.Http.Endpoint[] endpoints) => throw null; - public override System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } + public DefaultEndpointDataSource(System.Collections.Generic.IEnumerable endpoints) => throw null; public override Microsoft.Extensions.Primitives.IChangeToken GetChangeToken() => throw null; + public override System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } } - public class DefaultInlineConstraintResolver : Microsoft.AspNetCore.Routing.IInlineConstraintResolver { public DefaultInlineConstraintResolver(Microsoft.Extensions.Options.IOptions routeOptions, System.IServiceProvider serviceProvider) => throw null; public virtual Microsoft.AspNetCore.Routing.IRouteConstraint ResolveConstraint(string inlineConstraint) => throw null; } - public abstract class EndpointDataSource { - protected EndpointDataSource() => throw null; - public abstract System.Collections.Generic.IReadOnlyList Endpoints { get; } public abstract Microsoft.Extensions.Primitives.IChangeToken GetChangeToken(); public virtual System.Collections.Generic.IReadOnlyList GetGroupedEndpoints(Microsoft.AspNetCore.Routing.RouteGroupContext context) => throw null; + protected EndpointDataSource() => throw null; + public abstract System.Collections.Generic.IReadOnlyList Endpoints { get; } } - - public class EndpointGroupNameAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IEndpointGroupNameMetadata + public sealed class EndpointGroupNameAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IEndpointGroupNameMetadata { - public string EndpointGroupName { get => throw null; } public EndpointGroupNameAttribute(string endpointGroupName) => throw null; + public string EndpointGroupName { get => throw null; } } - - public class EndpointNameAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IEndpointNameMetadata + public sealed class EndpointNameAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IEndpointNameMetadata { - public string EndpointName { get => throw null; } public EndpointNameAttribute(string endpointName) => throw null; + public string EndpointName { get => throw null; } } - public class EndpointNameMetadata : Microsoft.AspNetCore.Routing.IEndpointNameMetadata { - public string EndpointName { get => throw null; } public EndpointNameMetadata(string endpointName) => throw null; + public string EndpointName { get => throw null; } } - - public class ExcludeFromDescriptionAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IExcludeFromDescriptionMetadata + public sealed class ExcludeFromDescriptionAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IExcludeFromDescriptionMetadata { - public bool ExcludeFromDescription { get => throw null; } public ExcludeFromDescriptionAttribute() => throw null; + public bool ExcludeFromDescription { get => throw null; } } - - public class HostAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IHostMetadata + public sealed class HostAttribute : System.Attribute, Microsoft.AspNetCore.Routing.IHostMetadata { - public HostAttribute(params string[] hosts) => throw null; public HostAttribute(string host) => throw null; + public HostAttribute(params string[] hosts) => throw null; public System.Collections.Generic.IReadOnlyList Hosts { get => throw null; } } - - public class HttpMethodMetadata : Microsoft.AspNetCore.Routing.IHttpMethodMetadata + public sealed class HttpMethodMetadata : Microsoft.AspNetCore.Routing.IHttpMethodMetadata { - public bool AcceptCorsPreflight { get => throw null; set => throw null; } public HttpMethodMetadata(System.Collections.Generic.IEnumerable httpMethods) => throw null; public HttpMethodMetadata(System.Collections.Generic.IEnumerable httpMethods, bool acceptCorsPreflight) => throw null; + public bool AcceptCorsPreflight { get => throw null; set { } } public System.Collections.Generic.IReadOnlyList HttpMethods { get => throw null; } } - public interface IDataTokensMetadata { System.Collections.Generic.IReadOnlyDictionary DataTokens { get; } } - public interface IDynamicEndpointMetadata { bool IsDynamic { get; } } - public interface IEndpointAddressScheme { System.Collections.Generic.IEnumerable FindEndpoints(TAddress address); } - public interface IEndpointGroupNameMetadata { string EndpointGroupName { get; } } - public interface IEndpointNameMetadata { string EndpointName { get; } } - public interface IEndpointRouteBuilder { Microsoft.AspNetCore.Builder.IApplicationBuilder CreateApplicationBuilder(); - System.Collections.Generic.ICollection DataSources { get; } System.IServiceProvider ServiceProvider { get; } + System.Collections.Generic.ICollection DataSources { get; } } - public interface IExcludeFromDescriptionMetadata { bool ExcludeFromDescription { get; } } - public interface IHostMetadata { System.Collections.Generic.IReadOnlyList Hosts { get; } } - public interface IHttpMethodMetadata { - bool AcceptCorsPreflight { get => throw null; set => throw null; } + virtual bool AcceptCorsPreflight { get => throw null; set { } } System.Collections.Generic.IReadOnlyList HttpMethods { get; } } - public interface IInlineConstraintResolver { Microsoft.AspNetCore.Routing.IRouteConstraint ResolveConstraint(string inlineConstraint); } - public interface INamedRouter : Microsoft.AspNetCore.Routing.IRouter { string Name { get; } } - + public static class InlineRouteParameterParser + { + public static Microsoft.AspNetCore.Routing.Template.TemplatePart ParseRouteParameter(string routeParameter) => throw null; + } public interface IRouteBuilder { - Microsoft.AspNetCore.Builder.IApplicationBuilder ApplicationBuilder { get; } Microsoft.AspNetCore.Routing.IRouter Build(); + Microsoft.AspNetCore.Builder.IApplicationBuilder ApplicationBuilder { get; } Microsoft.AspNetCore.Routing.IRouter DefaultHandler { get; set; } - System.Collections.Generic.IList Routes { get; } System.IServiceProvider ServiceProvider { get; } + System.Collections.Generic.IList Routes { get; } } - public interface IRouteCollection : Microsoft.AspNetCore.Routing.IRouter { void Add(Microsoft.AspNetCore.Routing.IRouter router); } - public interface IRouteNameMetadata { string RouteName { get; } } - public interface ISuppressLinkGenerationMetadata { bool SuppressLinkGeneration { get; } } - public interface ISuppressMatchingMetadata { bool SuppressMatching { get; } } - - public static class InlineRouteParameterParser + public static partial class LinkGeneratorEndpointNameAddressExtensions { - public static Microsoft.AspNetCore.Routing.Template.TemplatePart ParseRouteParameter(string routeParameter) => throw null; + public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + } + public static partial class LinkGeneratorRouteValuesAddressExtensions + { + public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, object values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, object values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, object values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString? host, Microsoft.AspNetCore.Http.PathString? pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; + public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Http.FragmentString fragment, Microsoft.AspNetCore.Routing.LinkOptions options) => throw null; } - - public static class LinkGeneratorEndpointNameAddressExtensions - { - public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByName(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - } - - public static class LinkGeneratorRouteValuesAddressExtensions - { - public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, object values, Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetPathByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, object values, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values = default(Microsoft.AspNetCore.Routing.RouteValueDictionary), string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string routeName, object values, string scheme = default(string), Microsoft.AspNetCore.Http.HostString? host = default(Microsoft.AspNetCore.Http.HostString?), Microsoft.AspNetCore.Http.PathString? pathBase = default(Microsoft.AspNetCore.Http.PathString?), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - public static string GetUriByRouteValues(this Microsoft.AspNetCore.Routing.LinkGenerator generator, string routeName, object values, string scheme, Microsoft.AspNetCore.Http.HostString host, Microsoft.AspNetCore.Http.PathString pathBase = default(Microsoft.AspNetCore.Http.PathString), Microsoft.AspNetCore.Http.FragmentString fragment = default(Microsoft.AspNetCore.Http.FragmentString), Microsoft.AspNetCore.Routing.LinkOptions options = default(Microsoft.AspNetCore.Routing.LinkOptions)) => throw null; - } - public abstract class LinkParser { - protected LinkParser() => throw null; public abstract Microsoft.AspNetCore.Routing.RouteValueDictionary ParsePathByAddress(TAddress address, Microsoft.AspNetCore.Http.PathString path); + protected LinkParser() => throw null; } - - public static class LinkParserEndpointNameAddressExtensions + public static partial class LinkParserEndpointNameAddressExtensions { public static Microsoft.AspNetCore.Routing.RouteValueDictionary ParsePathByEndpointName(this Microsoft.AspNetCore.Routing.LinkParser parser, string endpointName, Microsoft.AspNetCore.Http.PathString path) => throw null; } - public abstract class MatcherPolicy { protected static bool ContainsDynamicEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; protected MatcherPolicy() => throw null; public abstract int Order { get; } } - public abstract class ParameterPolicyFactory { + public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, string inlineText); public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy); public Microsoft.AspNetCore.Routing.IParameterPolicy Create(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference reference) => throw null; - public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, string inlineText); protected ParameterPolicyFactory() => throw null; } - - public static class RequestDelegateRouteBuilderExtensions + public static partial class RequestDelegateRouteBuilderExtensions { - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapDelete(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapDelete(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapGet(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapGet(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareDelete(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapDelete(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapGet(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareGet(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapGet(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPost(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewarePost(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewarePut(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareVerb(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, System.Action action) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPost(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPost(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPut(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPut(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; - public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewarePut(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Action action) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapPut(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, System.Func handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapVerb(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, System.Func handler) => throw null; public static Microsoft.AspNetCore.Routing.IRouteBuilder MapVerb(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, Microsoft.AspNetCore.Http.RequestDelegate handler) => throw null; + public static Microsoft.AspNetCore.Routing.IRouteBuilder MapMiddlewareVerb(this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string verb, string template, System.Action action) => throw null; } - public class Route : Microsoft.AspNetCore.Routing.RouteBase { - protected override System.Threading.Tasks.Task OnRouteMatched(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; - protected override Microsoft.AspNetCore.Routing.VirtualPathData OnVirtualPathGenerated(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; public Route(Microsoft.AspNetCore.Routing.IRouter target, string routeTemplate, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver) : base(default(string), default(string), default(Microsoft.AspNetCore.Routing.IInlineConstraintResolver), default(Microsoft.AspNetCore.Routing.RouteValueDictionary), default(System.Collections.Generic.IDictionary), default(Microsoft.AspNetCore.Routing.RouteValueDictionary)) => throw null; public Route(Microsoft.AspNetCore.Routing.IRouter target, string routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver) : base(default(string), default(string), default(Microsoft.AspNetCore.Routing.IInlineConstraintResolver), default(Microsoft.AspNetCore.Routing.RouteValueDictionary), default(System.Collections.Generic.IDictionary), default(Microsoft.AspNetCore.Routing.RouteValueDictionary)) => throw null; public Route(Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver) : base(default(string), default(string), default(Microsoft.AspNetCore.Routing.IInlineConstraintResolver), default(Microsoft.AspNetCore.Routing.RouteValueDictionary), default(System.Collections.Generic.IDictionary), default(Microsoft.AspNetCore.Routing.RouteValueDictionary)) => throw null; + protected override System.Threading.Tasks.Task OnRouteMatched(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; + protected override Microsoft.AspNetCore.Routing.VirtualPathData OnVirtualPathGenerated(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; public string RouteTemplate { get => throw null; } } - - public abstract class RouteBase : Microsoft.AspNetCore.Routing.INamedRouter, Microsoft.AspNetCore.Routing.IRouter + public abstract class RouteBase : Microsoft.AspNetCore.Routing.IRouter, Microsoft.AspNetCore.Routing.INamedRouter { - protected virtual Microsoft.AspNetCore.Routing.IInlineConstraintResolver ConstraintResolver { get => throw null; set => throw null; } - public virtual System.Collections.Generic.IDictionary Constraints { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; set => throw null; } - public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set => throw null; } - protected static System.Collections.Generic.IDictionary GetConstraints(Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, System.Collections.Generic.IDictionary constraints) => throw null; - protected static Microsoft.AspNetCore.Routing.RouteValueDictionary GetDefaults(Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults) => throw null; - public virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; - public virtual string Name { get => throw null; set => throw null; } + public RouteBase(string template, string name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null; protected abstract System.Threading.Tasks.Task OnRouteMatched(Microsoft.AspNetCore.Routing.RouteContext context); protected abstract Microsoft.AspNetCore.Routing.VirtualPathData OnVirtualPathGenerated(Microsoft.AspNetCore.Routing.VirtualPathContext context); - public virtual Microsoft.AspNetCore.Routing.Template.RouteTemplate ParsedTemplate { get => throw null; set => throw null; } public virtual System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; - public RouteBase(string template, string name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens) => throw null; + public virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; + protected static System.Collections.Generic.IDictionary GetConstraints(Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, System.Collections.Generic.IDictionary constraints) => throw null; + protected static Microsoft.AspNetCore.Routing.RouteValueDictionary GetDefaults(Microsoft.AspNetCore.Routing.Template.RouteTemplate parsedTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults) => throw null; public override string ToString() => throw null; + public virtual System.Collections.Generic.IDictionary Constraints { get => throw null; set { } } + protected virtual Microsoft.AspNetCore.Routing.IInlineConstraintResolver ConstraintResolver { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary DataTokens { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set { } } + public virtual string Name { get => throw null; set { } } + public virtual Microsoft.AspNetCore.Routing.Template.RouteTemplate ParsedTemplate { get => throw null; set { } } } - public class RouteBuilder : Microsoft.AspNetCore.Routing.IRouteBuilder { - public Microsoft.AspNetCore.Builder.IApplicationBuilder ApplicationBuilder { get => throw null; } - public Microsoft.AspNetCore.Routing.IRouter Build() => throw null; - public Microsoft.AspNetCore.Routing.IRouter DefaultHandler { get => throw null; set => throw null; } public RouteBuilder(Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder) => throw null; public RouteBuilder(Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Routing.IRouter defaultHandler) => throw null; - public System.Collections.Generic.IList Routes { get => throw null; } + public Microsoft.AspNetCore.Routing.IRouter Build() => throw null; + public Microsoft.AspNetCore.Builder.IApplicationBuilder ApplicationBuilder { get => throw null; } + public Microsoft.AspNetCore.Routing.IRouter DefaultHandler { get => throw null; set { } } public System.IServiceProvider ServiceProvider { get => throw null; } + public System.Collections.Generic.IList Routes { get => throw null; } } - public class RouteCollection : Microsoft.AspNetCore.Routing.IRouteCollection, Microsoft.AspNetCore.Routing.IRouter { public void Add(Microsoft.AspNetCore.Routing.IRouter router) => throw null; - public int Count { get => throw null; } - public virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; - public Microsoft.AspNetCore.Routing.IRouter this[int index] { get => throw null; } public virtual System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; + public virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; public RouteCollection() => throw null; + public Microsoft.AspNetCore.Routing.IRouter this[int index] { get => throw null; } + public int Count { get => throw null; } } - public class RouteConstraintBuilder { + public RouteConstraintBuilder(Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, string displayName) => throw null; + public System.Collections.Generic.IDictionary Build() => throw null; public void AddConstraint(string key, object value) => throw null; public void AddResolvedConstraint(string key, string constraintText) => throw null; - public System.Collections.Generic.IDictionary Build() => throw null; - public RouteConstraintBuilder(Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver, string displayName) => throw null; public void SetOptional(string key) => throw null; } - public static class RouteConstraintMatcher { public static bool Match(System.Collections.Generic.IDictionary constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary routeValues, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, Microsoft.AspNetCore.Routing.RouteDirection routeDirection, Microsoft.Extensions.Logging.ILogger logger) => throw null; } - public class RouteCreationException : System.Exception { public RouteCreationException(string message) => throw null; public RouteCreationException(string message, System.Exception innerException) => throw null; } - - public class RouteEndpoint : Microsoft.AspNetCore.Http.Endpoint + public sealed class RouteEndpoint : Microsoft.AspNetCore.Http.Endpoint { - public int Order { get => throw null; } public RouteEndpoint(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Routing.Patterns.RoutePattern routePattern, int order, Microsoft.AspNetCore.Http.EndpointMetadataCollection metadata, string displayName) : base(default(Microsoft.AspNetCore.Http.RequestDelegate), default(Microsoft.AspNetCore.Http.EndpointMetadataCollection), default(string)) => throw null; + public int Order { get => throw null; } public Microsoft.AspNetCore.Routing.Patterns.RoutePattern RoutePattern { get => throw null; } } - - public class RouteEndpointBuilder : Microsoft.AspNetCore.Builder.EndpointBuilder + public sealed class RouteEndpointBuilder : Microsoft.AspNetCore.Builder.EndpointBuilder { - public override Microsoft.AspNetCore.Http.Endpoint Build() => throw null; - public int Order { get => throw null; set => throw null; } public RouteEndpointBuilder(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Routing.Patterns.RoutePattern routePattern, int order) => throw null; - public Microsoft.AspNetCore.Routing.Patterns.RoutePattern RoutePattern { get => throw null; set => throw null; } + public override Microsoft.AspNetCore.Http.Endpoint Build() => throw null; + public Microsoft.AspNetCore.Routing.Patterns.RoutePattern RoutePattern { get => throw null; set { } } + public int Order { get => throw null; set { } } } - - public class RouteGroupBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder, Microsoft.AspNetCore.Routing.IEndpointRouteBuilder + public sealed class RouteGroupBuilder : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder, Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { - void Microsoft.AspNetCore.Builder.IEndpointConventionBuilder.Add(System.Action convention) => throw null; Microsoft.AspNetCore.Builder.IApplicationBuilder Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.CreateApplicationBuilder() => throw null; - System.Collections.Generic.ICollection Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.DataSources { get => throw null; } + void Microsoft.AspNetCore.Builder.IEndpointConventionBuilder.Add(System.Action convention) => throw null; void Microsoft.AspNetCore.Builder.IEndpointConventionBuilder.Finally(System.Action finalConvention) => throw null; System.IServiceProvider Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.ServiceProvider { get => throw null; } + System.Collections.Generic.ICollection Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.DataSources { get => throw null; } } - - public class RouteGroupContext + public sealed class RouteGroupContext { - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyList> Conventions { get => throw null; set => throw null; } - public System.Collections.Generic.IReadOnlyList> FinallyConventions { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.Patterns.RoutePattern Prefix { get => throw null; set => throw null; } public RouteGroupContext() => throw null; + public Microsoft.AspNetCore.Routing.Patterns.RoutePattern Prefix { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyList> Conventions { get => throw null; set { } } + public System.Collections.Generic.IReadOnlyList> FinallyConventions { get => throw null; set { } } + public System.IServiceProvider ApplicationServices { get => throw null; set { } } } - public class RouteHandler : Microsoft.AspNetCore.Routing.IRouteHandler, Microsoft.AspNetCore.Routing.IRouter { + public RouteHandler(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; public Microsoft.AspNetCore.Http.RequestDelegate GetRequestHandler(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData) => throw null; public Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; public System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; - public RouteHandler(Microsoft.AspNetCore.Http.RequestDelegate requestDelegate) => throw null; } - - public class RouteHandlerOptions + public sealed class RouteHandlerOptions { public RouteHandlerOptions() => throw null; - public bool ThrowOnBadRequest { get => throw null; set => throw null; } + public bool ThrowOnBadRequest { get => throw null; set { } } } - - public class RouteNameMetadata : Microsoft.AspNetCore.Routing.IRouteNameMetadata + public sealed class RouteNameMetadata : Microsoft.AspNetCore.Routing.IRouteNameMetadata { - public string RouteName { get => throw null; } public RouteNameMetadata(string routeName) => throw null; + public string RouteName { get => throw null; } } - public class RouteOptions { - public bool AppendTrailingSlash { get => throw null; set => throw null; } - public System.Collections.Generic.IDictionary ConstraintMap { get => throw null; set => throw null; } - public bool LowercaseQueryStrings { get => throw null; set => throw null; } - public bool LowercaseUrls { get => throw null; set => throw null; } - public RouteOptions() => throw null; - public void SetParameterPolicy(string token, System.Type type) => throw null; public void SetParameterPolicy(string token) where T : Microsoft.AspNetCore.Routing.IParameterPolicy => throw null; - public bool SuppressCheckForUnhandledSecurityMetadata { get => throw null; set => throw null; } + public void SetParameterPolicy(string token, System.Type type) => throw null; + public RouteOptions() => throw null; + public bool LowercaseUrls { get => throw null; set { } } + public bool LowercaseQueryStrings { get => throw null; set { } } + public bool AppendTrailingSlash { get => throw null; set { } } + public bool SuppressCheckForUnhandledSecurityMetadata { get => throw null; set { } } + public System.Collections.Generic.IDictionary ConstraintMap { get => throw null; set { } } } - public class RouteValueEqualityComparer : System.Collections.Generic.IEqualityComparer { public static Microsoft.AspNetCore.Routing.RouteValueEqualityComparer Default; @@ -496,211 +435,182 @@ public class RouteValueEqualityComparer : System.Collections.Generic.IEqualityCo public int GetHashCode(object obj) => throw null; public RouteValueEqualityComparer() => throw null; } - public class RouteValuesAddress { - public Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary ExplicitValues { get => throw null; set => throw null; } - public string RouteName { get => throw null; set => throw null; } - public RouteValuesAddress() => throw null; public override string ToString() => throw null; + public RouteValuesAddress() => throw null; + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary ExplicitValues { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary AmbientValues { get => throw null; set { } } } - public class RoutingFeature : Microsoft.AspNetCore.Routing.IRoutingFeature { - public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set => throw null; } public RoutingFeature() => throw null; + public Microsoft.AspNetCore.Routing.RouteData RouteData { get => throw null; set { } } } - - public class SuppressLinkGenerationMetadata : Microsoft.AspNetCore.Routing.ISuppressLinkGenerationMetadata + public sealed class SuppressLinkGenerationMetadata : Microsoft.AspNetCore.Routing.ISuppressLinkGenerationMetadata { - public bool SuppressLinkGeneration { get => throw null; } public SuppressLinkGenerationMetadata() => throw null; + public bool SuppressLinkGeneration { get => throw null; } } - - public class SuppressMatchingMetadata : Microsoft.AspNetCore.Routing.ISuppressMatchingMetadata + public sealed class SuppressMatchingMetadata : Microsoft.AspNetCore.Routing.ISuppressMatchingMetadata { - public bool SuppressMatching { get => throw null; } public SuppressMatchingMetadata() => throw null; + public bool SuppressMatching { get => throw null; } } - namespace Constraints { public class AlphaRouteConstraint : Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint { public AlphaRouteConstraint() : base(default(System.Text.RegularExpressions.Regex)) => throw null; } - - public class BoolRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class BoolRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public BoolRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public BoolRouteConstraint() => throw null; } - - public class CompositeRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class CompositeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { public CompositeRouteConstraint(System.Collections.Generic.IEnumerable constraints) => throw null; - public System.Collections.Generic.IEnumerable Constraints { get => throw null; } public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public System.Collections.Generic.IEnumerable Constraints { get => throw null; } } - - public class DateTimeRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class DateTimeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public DateTimeRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public DateTimeRouteConstraint() => throw null; } - - public class DecimalRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class DecimalRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public DecimalRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public DecimalRouteConstraint() => throw null; } - - public class DoubleRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class DoubleRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public DoubleRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public DoubleRouteConstraint() => throw null; } - - public class FileNameRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class FileNameRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public FileNameRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public FileNameRouteConstraint() => throw null; } - - public class FloatRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class FloatRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public FloatRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public FloatRouteConstraint() => throw null; } - - public class GuidRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class GuidRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public GuidRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public GuidRouteConstraint() => throw null; } - - public class HttpMethodRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint + public class HttpMethodRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy { - public System.Collections.Generic.IList AllowedMethods { get => throw null; } public HttpMethodRouteConstraint(params string[] allowedMethods) => throw null; public virtual bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; + public System.Collections.Generic.IList AllowedMethods { get => throw null; } } - - public class IntRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class IntRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public IntRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public IntRouteConstraint() => throw null; } - - public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { public LengthRouteConstraint(int length) => throw null; public LengthRouteConstraint(int minLength, int maxLength) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; - public int MaxLength { get => throw null; } public int MinLength { get => throw null; } + public int MaxLength { get => throw null; } } - - public class LongRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class LongRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public LongRouteConstraint() => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public LongRouteConstraint() => throw null; } - - public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public MaxLengthRouteConstraint(int maxLength) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; public int MaxLength { get => throw null; } - public MaxLengthRouteConstraint(int maxLength) => throw null; } - - public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public MaxRouteConstraint(long max) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; - public System.Int64 Max { get => throw null; } - public MaxRouteConstraint(System.Int64 max) => throw null; + public long Max { get => throw null; } } - - public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class MinLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public MinLengthRouteConstraint(int minLength) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; public int MinLength { get => throw null; } - public MinLengthRouteConstraint(int minLength) => throw null; } - - public class MinRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class MinRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public MinRouteConstraint(long min) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; - public System.Int64 Min { get => throw null; } - public MinRouteConstraint(System.Int64 min) => throw null; + public long Min { get => throw null; } } - - public class NonFileNameRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class NonFileNameRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; public NonFileNameRouteConstraint() => throw null; } - - public class OptionalRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint + public class OptionalRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy { - public Microsoft.AspNetCore.Routing.IRouteConstraint InnerConstraint { get => throw null; } - public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; public OptionalRouteConstraint(Microsoft.AspNetCore.Routing.IRouteConstraint innerConstraint) => throw null; + public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; + public Microsoft.AspNetCore.Routing.IRouteConstraint InnerConstraint { get => throw null; } } - - public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public RangeRouteConstraint(long min, long max) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; - public System.Int64 Max { get => throw null; } - public System.Int64 Min { get => throw null; } - public RangeRouteConstraint(System.Int64 min, System.Int64 max) => throw null; + public long Min { get => throw null; } + public long Max { get => throw null; } } - public class RegexInlineRouteConstraint : Microsoft.AspNetCore.Routing.Constraints.RegexRouteConstraint { public RegexInlineRouteConstraint(string regexPattern) : base(default(System.Text.RegularExpressions.Regex)) => throw null; } - - public class RegexRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class RegexRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { - public System.Text.RegularExpressions.Regex Constraint { get => throw null; } - public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; - bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; public RegexRouteConstraint(System.Text.RegularExpressions.Regex regex) => throw null; public RegexRouteConstraint(string regexPattern) => throw null; + public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; + bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; + public System.Text.RegularExpressions.Regex Constraint { get => throw null; } } - - public class RequiredRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint + public class RequiredRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy { public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; public RequiredRouteConstraint() => throw null; } - - public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy + public class StringRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.IParameterPolicy, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy { + public StringRouteConstraint(string value) => throw null; public bool Match(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, string routeKey, Microsoft.AspNetCore.Routing.RouteValueDictionary values, Microsoft.AspNetCore.Routing.RouteDirection routeDirection) => throw null; bool Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy.MatchesLiteral(string parameterName, string literal) => throw null; - public StringRouteConstraint(string value) => throw null; } - } namespace Internal { @@ -709,417 +619,364 @@ public class DfaGraphWriter public DfaGraphWriter(System.IServiceProvider services) => throw null; public void Write(Microsoft.AspNetCore.Routing.EndpointDataSource dataSource, System.IO.TextWriter writer) => throw null; } - } namespace Matching { - public class CandidateSet + public sealed class CandidateSet { public CandidateSet(Microsoft.AspNetCore.Http.Endpoint[] endpoints, Microsoft.AspNetCore.Routing.RouteValueDictionary[] values, int[] scores) => throw null; - public int Count { get => throw null; } - public void ExpandEndpoint(int index, System.Collections.Generic.IReadOnlyList endpoints, System.Collections.Generic.IComparer comparer) => throw null; public bool IsValidCandidate(int index) => throw null; - public Microsoft.AspNetCore.Routing.Matching.CandidateState this[int index] { get => throw null; } - public void ReplaceEndpoint(int index, Microsoft.AspNetCore.Http.Endpoint endpoint, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; public void SetValidity(int index, bool value) => throw null; + public void ReplaceEndpoint(int index, Microsoft.AspNetCore.Http.Endpoint endpoint, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + public void ExpandEndpoint(int index, System.Collections.Generic.IReadOnlyList endpoints, System.Collections.Generic.IComparer comparer) => throw null; + public int Count { get => throw null; } + public Microsoft.AspNetCore.Routing.Matching.CandidateState this[int index] { get => throw null; } } - public struct CandidateState { - // Stub generator skipped constructor public Microsoft.AspNetCore.Http.Endpoint Endpoint { get => throw null; } public int Score { get => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Routing.RouteValueDictionary Values { get => throw null; } } - - public class EndpointMetadataComparer : System.Collections.Generic.IComparer + public sealed class EndpointMetadataComparer : System.Collections.Generic.IComparer { int System.Collections.Generic.IComparer.Compare(Microsoft.AspNetCore.Http.Endpoint x, Microsoft.AspNetCore.Http.Endpoint y) => throw null; } - public abstract class EndpointMetadataComparer : System.Collections.Generic.IComparer where TMetadata : class { + public static Microsoft.AspNetCore.Routing.Matching.EndpointMetadataComparer Default; public int Compare(Microsoft.AspNetCore.Http.Endpoint x, Microsoft.AspNetCore.Http.Endpoint y) => throw null; + protected virtual TMetadata GetMetadata(Microsoft.AspNetCore.Http.Endpoint endpoint) => throw null; protected virtual int CompareMetadata(TMetadata x, TMetadata y) => throw null; - public static Microsoft.AspNetCore.Routing.Matching.EndpointMetadataComparer Default; protected EndpointMetadataComparer() => throw null; - protected virtual TMetadata GetMetadata(Microsoft.AspNetCore.Http.Endpoint endpoint) => throw null; } - public abstract class EndpointSelector { - protected EndpointSelector() => throw null; public abstract System.Threading.Tasks.Task SelectAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates); + protected EndpointSelector() => throw null; } - - public class HostMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy + public sealed class HostMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy { - bool Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; bool Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; + bool Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; public System.Threading.Tasks.Task ApplyAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates) => throw null; - public Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges) => throw null; - public System.Collections.Generic.IComparer Comparer { get => throw null; } public System.Collections.Generic.IReadOnlyList GetEdges(System.Collections.Generic.IReadOnlyList endpoints) => throw null; + public Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges) => throw null; public HostMatcherPolicy() => throw null; public override int Order { get => throw null; } + public System.Collections.Generic.IComparer Comparer { get => throw null; } } - - public class HttpMethodMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy + public sealed class HttpMethodMatcherPolicy : Microsoft.AspNetCore.Routing.MatcherPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointComparerPolicy, Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy, Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy { - bool Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; bool Microsoft.AspNetCore.Routing.Matching.INodeBuilderPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; + bool Microsoft.AspNetCore.Routing.Matching.IEndpointSelectorPolicy.AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints) => throw null; public System.Threading.Tasks.Task ApplyAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates) => throw null; - public Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges) => throw null; - public System.Collections.Generic.IComparer Comparer { get => throw null; } public System.Collections.Generic.IReadOnlyList GetEdges(System.Collections.Generic.IReadOnlyList endpoints) => throw null; + public Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges) => throw null; public HttpMethodMatcherPolicy() => throw null; + public System.Collections.Generic.IComparer Comparer { get => throw null; } public override int Order { get => throw null; } } - public interface IEndpointComparerPolicy { System.Collections.Generic.IComparer Comparer { get; } } - public interface IEndpointSelectorPolicy { bool AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints); System.Threading.Tasks.Task ApplyAsync(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates); } - public interface INodeBuilderPolicy { bool AppliesToEndpoints(System.Collections.Generic.IReadOnlyList endpoints); - Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges); System.Collections.Generic.IReadOnlyList GetEdges(System.Collections.Generic.IReadOnlyList endpoints); + Microsoft.AspNetCore.Routing.Matching.PolicyJumpTable BuildJumpTable(int exitDestination, System.Collections.Generic.IReadOnlyList edges); } - public interface IParameterLiteralNodeMatchingPolicy : Microsoft.AspNetCore.Routing.IParameterPolicy { bool MatchesLiteral(string parameterName, string literal); } - public abstract class PolicyJumpTable { public abstract int GetDestination(Microsoft.AspNetCore.Http.HttpContext httpContext); protected PolicyJumpTable() => throw null; } - public struct PolicyJumpTableEdge { - public int Destination { get => throw null; } - // Stub generator skipped constructor public PolicyJumpTableEdge(object state, int destination) => throw null; public object State { get => throw null; } + public int Destination { get => throw null; } } - public struct PolicyNodeEdge { - public System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } - // Stub generator skipped constructor public PolicyNodeEdge(object state, System.Collections.Generic.IReadOnlyList endpoints) => throw null; + public System.Collections.Generic.IReadOnlyList Endpoints { get => throw null; } public object State { get => throw null; } } - } namespace Patterns { - public class RoutePattern + public sealed class RoutePattern { - public System.Collections.Generic.IReadOnlyDictionary Defaults { get => throw null; } + public static object RequiredValueAny; public Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart GetParameter(string name) => throw null; - public System.Decimal InboundPrecedence { get => throw null; } - public System.Decimal OutboundPrecedence { get => throw null; } + public System.Collections.Generic.IReadOnlyDictionary Defaults { get => throw null; } public System.Collections.Generic.IReadOnlyDictionary> ParameterPolicies { get => throw null; } + public System.Collections.Generic.IReadOnlyDictionary RequiredValues { get => throw null; } + public decimal InboundPrecedence { get => throw null; } + public decimal OutboundPrecedence { get => throw null; } + public string RawText { get => throw null; } public System.Collections.Generic.IReadOnlyList Parameters { get => throw null; } public System.Collections.Generic.IReadOnlyList PathSegments { get => throw null; } - public string RawText { get => throw null; } - public static object RequiredValueAny; - public System.Collections.Generic.IReadOnlyDictionary RequiredValues { get => throw null; } } - - public class RoutePatternException : System.Exception + public sealed class RoutePatternException : System.Exception { + public RoutePatternException(string pattern, string message) => throw null; public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public string Pattern { get => throw null; } - public RoutePatternException(string pattern, string message) => throw null; } - public static class RoutePatternFactory { - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Combine(Microsoft.AspNetCore.Routing.Patterns.RoutePattern left, Microsoft.AspNetCore.Routing.Patterns.RoutePattern right) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(Microsoft.AspNetCore.Routing.IRouteConstraint constraint) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(object constraint) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(string constraint) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternLiteralPart LiteralPart(string content) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable parameterPolicies) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference ParameterPolicy(Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference ParameterPolicy(string parameterPolicy) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredValues) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, object defaults, object parameterPolicies) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, object defaults, object parameterPolicies, object requiredValues) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse(string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredValues) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(object defaults, object parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(object defaults, object parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, object defaults, object parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; - public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, System.Collections.Generic.IEnumerable segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern(string rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment Segment(System.Collections.Generic.IEnumerable parts) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment Segment(params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart[] parts) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternLiteralPart LiteralPart(string content) => throw null; public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternSeparatorPart SeparatorPart(string content) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable parameterPolicies) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(object constraint) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(Microsoft.AspNetCore.Routing.IRouteConstraint constraint) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(string constraint) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference ParameterPolicy(Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference ParameterPolicy(string parameterPolicy) => throw null; + public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Combine(Microsoft.AspNetCore.Routing.Patterns.RoutePattern left, Microsoft.AspNetCore.Routing.Patterns.RoutePattern right) => throw null; } - - public class RoutePatternLiteralPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart + public sealed class RoutePatternLiteralPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart { public string Content { get => throw null; } - internal RoutePatternLiteralPart(string content) : base(default(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind)) => throw null; } - - public enum RoutePatternParameterKind : int + public enum RoutePatternParameterKind { - CatchAll = 2, - Optional = 1, Standard = 0, + Optional = 1, + CatchAll = 2, } - - public class RoutePatternParameterPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart + public sealed class RoutePatternParameterPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart { - public object Default { get => throw null; } + public System.Collections.Generic.IReadOnlyList ParameterPolicies { get => throw null; } public bool EncodeSlashes { get => throw null; } + public object Default { get => throw null; } public bool IsCatchAll { get => throw null; } public bool IsOptional { get => throw null; } - public string Name { get => throw null; } public Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind ParameterKind { get => throw null; } - public System.Collections.Generic.IReadOnlyList ParameterPolicies { get => throw null; } - internal RoutePatternParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies) : base(default(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind)) => throw null; - internal RoutePatternParameterPart(string parameterName, object @default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies, bool encodeSlashes) : base(default(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind)) => throw null; + public string Name { get => throw null; } } - - public class RoutePatternParameterPolicyReference + public sealed class RoutePatternParameterPolicyReference { public string Content { get => throw null; } public Microsoft.AspNetCore.Routing.IParameterPolicy ParameterPolicy { get => throw null; } } - public abstract class RoutePatternPart { + public Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind PartKind { get => throw null; } public bool IsLiteral { get => throw null; } public bool IsParameter { get => throw null; } public bool IsSeparator { get => throw null; } - public Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind PartKind { get => throw null; } - protected private RoutePatternPart(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind partKind) => throw null; } - - public enum RoutePatternPartKind : int + public enum RoutePatternPartKind { Literal = 0, Parameter = 1, Separator = 2, } - - public class RoutePatternPathSegment + public sealed class RoutePatternPathSegment { public bool IsSimple { get => throw null; } public System.Collections.Generic.IReadOnlyList Parts { get => throw null; } } - - public class RoutePatternSeparatorPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart + public sealed class RoutePatternSeparatorPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart { public string Content { get => throw null; } - internal RoutePatternSeparatorPart(string content) : base(default(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPartKind)) => throw null; } - public abstract class RoutePatternTransformer { - protected RoutePatternTransformer() => throw null; - public virtual Microsoft.AspNetCore.Routing.Patterns.RoutePattern SubstituteRequiredValues(Microsoft.AspNetCore.Routing.Patterns.RoutePattern original, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredValues) => throw null; public abstract Microsoft.AspNetCore.Routing.Patterns.RoutePattern SubstituteRequiredValues(Microsoft.AspNetCore.Routing.Patterns.RoutePattern original, object requiredValues); + public virtual Microsoft.AspNetCore.Routing.Patterns.RoutePattern SubstituteRequiredValues(Microsoft.AspNetCore.Routing.Patterns.RoutePattern original, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredValues) => throw null; + protected RoutePatternTransformer() => throw null; } - } namespace Template { public class InlineConstraint { - public string Constraint { get => throw null; } - public InlineConstraint(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference other) => throw null; public InlineConstraint(string constraint) => throw null; + public InlineConstraint(Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference other) => throw null; + public string Constraint { get => throw null; } } - public static class RoutePrecedence { - public static System.Decimal ComputeInbound(Microsoft.AspNetCore.Routing.Template.RouteTemplate template) => throw null; - public static System.Decimal ComputeOutbound(Microsoft.AspNetCore.Routing.Template.RouteTemplate template) => throw null; + public static decimal ComputeInbound(Microsoft.AspNetCore.Routing.Template.RouteTemplate template) => throw null; + public static decimal ComputeOutbound(Microsoft.AspNetCore.Routing.Template.RouteTemplate template) => throw null; } - public class RouteTemplate { - public Microsoft.AspNetCore.Routing.Template.TemplatePart GetParameter(string name) => throw null; - public Microsoft.AspNetCore.Routing.Template.TemplateSegment GetSegment(int index) => throw null; - public System.Collections.Generic.IList Parameters { get => throw null; } public RouteTemplate(Microsoft.AspNetCore.Routing.Patterns.RoutePattern other) => throw null; public RouteTemplate(string template, System.Collections.Generic.List segments) => throw null; - public System.Collections.Generic.IList Segments { get => throw null; } - public string TemplateText { get => throw null; } + public Microsoft.AspNetCore.Routing.Template.TemplateSegment GetSegment(int index) => throw null; + public Microsoft.AspNetCore.Routing.Template.TemplatePart GetParameter(string name) => throw null; public Microsoft.AspNetCore.Routing.Patterns.RoutePattern ToRoutePattern() => throw null; + public string TemplateText { get => throw null; } + public System.Collections.Generic.IList Parameters { get => throw null; } + public System.Collections.Generic.IList Segments { get => throw null; } } - public class TemplateBinder { - public string BindValues(Microsoft.AspNetCore.Routing.RouteValueDictionary acceptedValues) => throw null; public Microsoft.AspNetCore.Routing.Template.TemplateValuesResult GetValues(Microsoft.AspNetCore.Routing.RouteValueDictionary ambientValues, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; - public static bool RoutePartsEqual(object a, object b) => throw null; public bool TryProcessConstraints(Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteValueDictionary combinedValues, out string parameterName, out Microsoft.AspNetCore.Routing.IRouteConstraint constraint) => throw null; + public string BindValues(Microsoft.AspNetCore.Routing.RouteValueDictionary acceptedValues) => throw null; + public static bool RoutePartsEqual(object a, object b) => throw null; } - public abstract class TemplateBinderFactory { - public abstract Microsoft.AspNetCore.Routing.Template.TemplateBinder Create(Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern); public abstract Microsoft.AspNetCore.Routing.Template.TemplateBinder Create(Microsoft.AspNetCore.Routing.Template.RouteTemplate template, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults); + public abstract Microsoft.AspNetCore.Routing.Template.TemplateBinder Create(Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern); protected TemplateBinderFactory() => throw null; } - public class TemplateMatcher { - public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; } - public Microsoft.AspNetCore.Routing.Template.RouteTemplate Template { get => throw null; } public TemplateMatcher(Microsoft.AspNetCore.Routing.Template.RouteTemplate template, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults) => throw null; public bool TryMatch(Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Routing.RouteValueDictionary values) => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; } + public Microsoft.AspNetCore.Routing.Template.RouteTemplate Template { get => throw null; } } - public static class TemplateParser { public static Microsoft.AspNetCore.Routing.Template.RouteTemplate Parse(string routeTemplate) => throw null; } - public class TemplatePart { + public TemplatePart() => throw null; + public TemplatePart(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart other) => throw null; public static Microsoft.AspNetCore.Routing.Template.TemplatePart CreateLiteral(string text) => throw null; public static Microsoft.AspNetCore.Routing.Template.TemplatePart CreateParameter(string name, bool isCatchAll, bool isOptional, object defaultValue, System.Collections.Generic.IEnumerable inlineConstraints) => throw null; - public object DefaultValue { get => throw null; } - public System.Collections.Generic.IEnumerable InlineConstraints { get => throw null; } + public Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart ToRoutePatternPart() => throw null; public bool IsCatchAll { get => throw null; } public bool IsLiteral { get => throw null; } - public bool IsOptional { get => throw null; } - public bool IsOptionalSeperator { get => throw null; set => throw null; } public bool IsParameter { get => throw null; } + public bool IsOptional { get => throw null; } + public bool IsOptionalSeperator { get => throw null; set { } } public string Name { get => throw null; } - public TemplatePart() => throw null; - public TemplatePart(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart other) => throw null; public string Text { get => throw null; } - public Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart ToRoutePatternPart() => throw null; + public object DefaultValue { get => throw null; } + public System.Collections.Generic.IEnumerable InlineConstraints { get => throw null; } } - public class TemplateSegment { - public bool IsSimple { get => throw null; } - public System.Collections.Generic.List Parts { get => throw null; } public TemplateSegment() => throw null; public TemplateSegment(Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment other) => throw null; public Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment ToRoutePatternPathSegment() => throw null; + public bool IsSimple { get => throw null; } + public System.Collections.Generic.List Parts { get => throw null; } } - public class TemplateValuesResult { - public Microsoft.AspNetCore.Routing.RouteValueDictionary AcceptedValues { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary CombinedValues { get => throw null; set => throw null; } public TemplateValuesResult() => throw null; + public Microsoft.AspNetCore.Routing.RouteValueDictionary AcceptedValues { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary CombinedValues { get => throw null; set { } } } - } namespace Tree { public class InboundMatch { - public Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry Entry { get => throw null; set => throw null; } public InboundMatch() => throw null; - public Microsoft.AspNetCore.Routing.Template.TemplateMatcher TemplateMatcher { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry Entry { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Template.TemplateMatcher TemplateMatcher { get => throw null; set { } } } - public class InboundRouteEntry { - public System.Collections.Generic.IDictionary Constraints { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.IRouter Handler { get => throw null; set => throw null; } public InboundRouteEntry() => throw null; - public int Order { get => throw null; set => throw null; } - public System.Decimal Precedence { get => throw null; set => throw null; } - public string RouteName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.Template.RouteTemplate RouteTemplate { get => throw null; set => throw null; } + public System.Collections.Generic.IDictionary Constraints { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.IRouter Handler { get => throw null; set { } } + public int Order { get => throw null; set { } } + public decimal Precedence { get => throw null; set { } } + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Template.RouteTemplate RouteTemplate { get => throw null; set { } } } - public class OutboundMatch { - public Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry Entry { get => throw null; set => throw null; } public OutboundMatch() => throw null; - public Microsoft.AspNetCore.Routing.Template.TemplateBinder TemplateBinder { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry Entry { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Template.TemplateBinder TemplateBinder { get => throw null; set { } } } - public class OutboundRouteEntry { - public System.Collections.Generic.IDictionary Constraints { get => throw null; set => throw null; } - public object Data { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.IRouter Handler { get => throw null; set => throw null; } - public int Order { get => throw null; set => throw null; } public OutboundRouteEntry() => throw null; - public System.Decimal Precedence { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.RouteValueDictionary RequiredLinkValues { get => throw null; set => throw null; } - public string RouteName { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.Template.RouteTemplate RouteTemplate { get => throw null; set => throw null; } + public System.Collections.Generic.IDictionary Constraints { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary Defaults { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.IRouter Handler { get => throw null; set { } } + public int Order { get => throw null; set { } } + public decimal Precedence { get => throw null; set { } } + public string RouteName { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.RouteValueDictionary RequiredLinkValues { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Template.RouteTemplate RouteTemplate { get => throw null; set { } } + public object Data { get => throw null; set { } } } - public class TreeRouteBuilder { + public Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry MapInbound(Microsoft.AspNetCore.Routing.IRouter handler, Microsoft.AspNetCore.Routing.Template.RouteTemplate routeTemplate, string routeName, int order) => throw null; + public Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry MapOutbound(Microsoft.AspNetCore.Routing.IRouter handler, Microsoft.AspNetCore.Routing.Template.RouteTemplate routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredLinkValues, string routeName, int order) => throw null; public Microsoft.AspNetCore.Routing.Tree.TreeRouter Build() => throw null; public Microsoft.AspNetCore.Routing.Tree.TreeRouter Build(int version) => throw null; public void Clear() => throw null; public System.Collections.Generic.IList InboundEntries { get => throw null; } - public Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry MapInbound(Microsoft.AspNetCore.Routing.IRouter handler, Microsoft.AspNetCore.Routing.Template.RouteTemplate routeTemplate, string routeName, int order) => throw null; - public Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry MapOutbound(Microsoft.AspNetCore.Routing.IRouter handler, Microsoft.AspNetCore.Routing.Template.RouteTemplate routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary requiredLinkValues, string routeName, int order) => throw null; public System.Collections.Generic.IList OutboundEntries { get => throw null; } } - public class TreeRouter : Microsoft.AspNetCore.Routing.IRouter { + public static string RouteGroupKey; public Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext context) => throw null; public System.Threading.Tasks.Task RouteAsync(Microsoft.AspNetCore.Routing.RouteContext context) => throw null; - public static string RouteGroupKey; public int Version { get => throw null; } } - public class UrlMatchingNode { - public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode CatchAlls { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode ConstrainedCatchAlls { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode ConstrainedParameters { get => throw null; set => throw null; } + public UrlMatchingNode(int length) => throw null; public int Depth { get => throw null; } - public bool IsCatchAll { get => throw null; set => throw null; } - public System.Collections.Generic.Dictionary Literals { get => throw null; } + public bool IsCatchAll { get => throw null; set { } } public System.Collections.Generic.List Matches { get => throw null; } - public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode Parameters { get => throw null; set => throw null; } - public UrlMatchingNode(int length) => throw null; + public System.Collections.Generic.Dictionary Literals { get => throw null; } + public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode ConstrainedParameters { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode Parameters { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode ConstrainedCatchAlls { get => throw null; set { } } + public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode CatchAlls { get => throw null; set { } } } - public class UrlMatchingTree { + public UrlMatchingTree(int order) => throw null; public int Order { get => throw null; } public Microsoft.AspNetCore.Routing.Tree.UrlMatchingNode Root { get => throw null; } - public UrlMatchingTree(int order) => throw null; } - } } } @@ -1127,12 +984,11 @@ namespace Extensions { namespace DependencyInjection { - public static class RoutingServiceCollectionExtensions + public static partial class RoutingServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRouting(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRouting(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.HttpSys.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.HttpSys.cs index d378a4e998538..3c6b56cfbe48a 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.HttpSys.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.HttpSys.cs @@ -1,158 +1,141 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.HttpSys, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Hosting { - public static class WebHostBuilderHttpSysExtensions + public static partial class WebHostBuilderHttpSysExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseHttpSys(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action options) => throw null; } - } namespace Server { namespace HttpSys { - public class AuthenticationManager + public sealed class AuthenticationManager { - public bool AllowAnonymous { get => throw null; set => throw null; } - public string AuthenticationDisplayName { get => throw null; set => throw null; } - public bool AutomaticAuthentication { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.AuthenticationSchemes Schemes { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Server.HttpSys.AuthenticationSchemes Schemes { get => throw null; set { } } + public bool AllowAnonymous { get => throw null; set { } } + public bool AutomaticAuthentication { get => throw null; set { } } + public string AuthenticationDisplayName { get => throw null; set { } } } - [System.Flags] - public enum AuthenticationSchemes : int + public enum AuthenticationSchemes { + None = 0, Basic = 1, - Kerberos = 16, NTLM = 4, Negotiate = 8, - None = 0, + Kerberos = 16, } - - public enum ClientCertificateMethod : int + public enum ClientCertificateMethod { + NoCertificate = 0, AllowCertificate = 1, AllowRenegotation = 2, - NoCertificate = 0, } - public class DelegationRule : System.IDisposable { public void Dispose() => throw null; public string QueueName { get => throw null; } public string UrlPrefix { get => throw null; } } - public enum Http503VerbosityLevel : long { Basic = 0, - Full = 2, Limited = 1, + Full = 2, } - public static class HttpSysDefaults { - public const string AuthenticationScheme = default; + public static string AuthenticationScheme; } - public class HttpSysException : System.ComponentModel.Win32Exception { public override int ErrorCode { get => throw null; } } - public class HttpSysOptions { - public bool AllowSynchronousIO { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.AuthenticationManager Authentication { get => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.ClientCertificateMethod ClientCertificateMethod { get => throw null; set => throw null; } - public bool EnableResponseCaching { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.Http503VerbosityLevel Http503Verbosity { get => throw null; set => throw null; } public HttpSysOptions() => throw null; - public int MaxAccepts { get => throw null; set => throw null; } - public System.Int64? MaxConnections { get => throw null; set => throw null; } - public System.Int64? MaxRequestBodySize { get => throw null; set => throw null; } - public System.Int64 RequestQueueLimit { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.RequestQueueMode RequestQueueMode { get => throw null; set => throw null; } - public string RequestQueueName { get => throw null; set => throw null; } - public bool ThrowWriteExceptions { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.HttpSys.TimeoutManager Timeouts { get => throw null; } - public bool UnsafePreferInlineScheduling { get => throw null; set => throw null; } + public string RequestQueueName { get => throw null; set { } } + public Microsoft.AspNetCore.Server.HttpSys.RequestQueueMode RequestQueueMode { get => throw null; set { } } + public Microsoft.AspNetCore.Server.HttpSys.ClientCertificateMethod ClientCertificateMethod { get => throw null; set { } } + public int MaxAccepts { get => throw null; set { } } + public bool EnableResponseCaching { get => throw null; set { } } public Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection UrlPrefixes { get => throw null; } - public bool UseLatin1RequestHeaders { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Server.HttpSys.AuthenticationManager Authentication { get => throw null; } + public Microsoft.AspNetCore.Server.HttpSys.TimeoutManager Timeouts { get => throw null; } + public bool ThrowWriteExceptions { get => throw null; set { } } + public long? MaxConnections { get => throw null; set { } } + public long RequestQueueLimit { get => throw null; set { } } + public long? MaxRequestBodySize { get => throw null; set { } } + public bool AllowSynchronousIO { get => throw null; set { } } + public Microsoft.AspNetCore.Server.HttpSys.Http503VerbosityLevel Http503Verbosity { get => throw null; set { } } + public bool UnsafePreferInlineScheduling { get => throw null; set { } } + public bool UseLatin1RequestHeaders { get => throw null; set { } } } - public interface IHttpSysRequestDelegationFeature { - bool CanDelegate { get; } void DelegateRequest(Microsoft.AspNetCore.Server.HttpSys.DelegationRule destination); + bool CanDelegate { get; } } - public interface IHttpSysRequestInfoFeature { - System.Collections.Generic.IReadOnlyDictionary> RequestInfo { get; } + System.Collections.Generic.IReadOnlyDictionary> RequestInfo { get; } } - public interface IServerDelegationFeature { Microsoft.AspNetCore.Server.HttpSys.DelegationRule CreateDelegationRule(string queueName, string urlPrefix); } - - public enum RequestQueueMode : int + public enum RequestQueueMode { - Attach = 1, Create = 0, + Attach = 1, CreateOrAttach = 2, } - - public class TimeoutManager + public sealed class TimeoutManager { - public System.TimeSpan DrainEntityBody { get => throw null; set => throw null; } - public System.TimeSpan EntityBody { get => throw null; set => throw null; } - public System.TimeSpan HeaderWait { get => throw null; set => throw null; } - public System.TimeSpan IdleConnection { get => throw null; set => throw null; } - public System.Int64 MinSendBytesPerSecond { get => throw null; set => throw null; } - public System.TimeSpan RequestQueue { get => throw null; set => throw null; } + public System.TimeSpan EntityBody { get => throw null; set { } } + public System.TimeSpan DrainEntityBody { get => throw null; set { } } + public System.TimeSpan RequestQueue { get => throw null; set { } } + public System.TimeSpan IdleConnection { get => throw null; set { } } + public System.TimeSpan HeaderWait { get => throw null; set { } } + public long MinSendBytesPerSecond { get => throw null; set { } } } - public class UrlPrefix { - public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create(string prefix) => throw null; - public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create(string scheme, string host, int? portValue, string path) => throw null; public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create(string scheme, string host, string port, string path) => throw null; + public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create(string scheme, string host, int? portValue, string path) => throw null; + public static Microsoft.AspNetCore.Server.HttpSys.UrlPrefix Create(string prefix) => throw null; public override bool Equals(object obj) => throw null; - public string FullPrefix { get => throw null; } public override int GetHashCode() => throw null; - public string Host { get => throw null; } + public override string ToString() => throw null; public bool IsHttps { get => throw null; } - public string Path { get => throw null; } + public string Scheme { get => throw null; } + public string Host { get => throw null; } public string Port { get => throw null; } public int PortValue { get => throw null; } - public string Scheme { get => throw null; } - public override string ToString() => throw null; + public string Path { get => throw null; } + public string FullPrefix { get => throw null; } } - public class UrlPrefixCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public void Add(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item) => throw null; public void Add(string prefix) => throw null; + public void Add(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item) => throw null; public void Clear() => throw null; public bool Contains(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item) => throw null; public void CopyTo(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } + public bool Remove(string prefix) => throw null; + public bool Remove(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item) => throw null; public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public int Count { get => throw null; } public bool IsReadOnly { get => throw null; } - public bool Remove(Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item) => throw null; - public bool Remove(string prefix) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IIS.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IIS.cs index 55673f87da0a0..7e7d8061fd7fe 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IIS.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IIS.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.IIS, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,14 +8,13 @@ namespace Builder { public class IISServerOptions { - public bool AllowSynchronousIO { get => throw null; set => throw null; } - public string AuthenticationDisplayName { get => throw null; set => throw null; } - public bool AutomaticAuthentication { get => throw null; set => throw null; } public IISServerOptions() => throw null; - public int MaxRequestBodyBufferSize { get => throw null; set => throw null; } - public System.Int64? MaxRequestBodySize { get => throw null; set => throw null; } + public bool AllowSynchronousIO { get => throw null; set { } } + public bool AutomaticAuthentication { get => throw null; set { } } + public string AuthenticationDisplayName { get => throw null; set { } } + public int MaxRequestBodyBufferSize { get => throw null; set { } } + public long? MaxRequestBodySize { get => throw null; set { } } } - } namespace Hosting { @@ -24,33 +22,25 @@ public static partial class WebHostBuilderIISExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseIIS(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; } - } namespace Server { namespace IIS { - public class BadHttpRequestException : Microsoft.AspNetCore.Http.BadHttpRequestException + public sealed class BadHttpRequestException : Microsoft.AspNetCore.Http.BadHttpRequestException { - internal BadHttpRequestException(string message, int statusCode, Microsoft.AspNetCore.Server.IIS.RequestRejectionReason reason) : base(default(string)) => throw null; public int StatusCode { get => throw null; } + internal BadHttpRequestException() : base(default(string)) { } } - - public static class HttpContextExtensions + public static partial class HttpContextExtensions { public static string GetIISServerVariable(this Microsoft.AspNetCore.Http.HttpContext context, string variableName) => throw null; } - public class IISServerDefaults { - public const string AuthenticationScheme = default; + public static string AuthenticationScheme; public IISServerDefaults() => throw null; } - - internal enum RequestRejectionReason : int - { - } - namespace Core { public class IISServerAuthenticationHandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler @@ -58,36 +48,33 @@ public class IISServerAuthenticationHandler : Microsoft.AspNetCore.Authenticatio public System.Threading.Tasks.Task AuthenticateAsync() => throw null; public System.Threading.Tasks.Task ChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; public System.Threading.Tasks.Task ForbidAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties) => throw null; - public IISServerAuthenticationHandler() => throw null; public System.Threading.Tasks.Task InitializeAsync(Microsoft.AspNetCore.Authentication.AuthenticationScheme scheme, Microsoft.AspNetCore.Http.HttpContext context) => throw null; + public IISServerAuthenticationHandler() => throw null; } - public class ThrowingWasUpgradedWriteOnlyStream : Microsoft.AspNetCore.Server.IIS.Core.WriteOnlyStream { + public override void Write(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; public override void Flush() => throw null; - public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin origin) => throw null; - public override void SetLength(System.Int64 value) => throw null; + public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null; + public override void SetLength(long value) => throw null; public ThrowingWasUpgradedWriteOnlyStream() => throw null; - public override void Write(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; } - public abstract class WriteOnlyStream : System.IO.Stream { + public override int Read(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; + public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null; + public override void SetLength(long value) => throw null; + protected WriteOnlyStream() => throw null; public override bool CanRead { get => throw null; } - public override bool CanSeek { get => throw null; } public override bool CanWrite { get => throw null; } - public override System.Int64 Length { get => throw null; } - public override System.Int64 Position { get => throw null; set => throw null; } - public override int Read(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task ReadAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; - public override int ReadTimeout { get => throw null; set => throw null; } - public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin origin) => throw null; - public override void SetLength(System.Int64 value) => throw null; - protected WriteOnlyStream() => throw null; + public override int ReadTimeout { get => throw null; set { } } + public override bool CanSeek { get => throw null; } + public override long Length { get => throw null; } + public override long Position { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IISIntegration.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IISIntegration.cs index 6ce7423ade81d..27deeca816c88 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IISIntegration.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.IISIntegration.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.IISIntegration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,12 +8,11 @@ namespace Builder { public class IISOptions { - public string AuthenticationDisplayName { get => throw null; set => throw null; } - public bool AutomaticAuthentication { get => throw null; set => throw null; } - public bool ForwardClientCertificate { get => throw null; set => throw null; } public IISOptions() => throw null; + public bool AutomaticAuthentication { get => throw null; set { } } + public string AuthenticationDisplayName { get => throw null; set { } } + public bool ForwardClientCertificate { get => throw null; set { } } } - } namespace Hosting { @@ -22,7 +20,6 @@ public static partial class WebHostBuilderIISExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseIISIntegration(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; } - } namespace Server { @@ -30,25 +27,22 @@ namespace IISIntegration { public class IISDefaults { - public const string AuthenticationScheme = default; + public static string AuthenticationScheme; + public static string Negotiate; + public static string Ntlm; public IISDefaults() => throw null; - public const string Negotiate = default; - public const string Ntlm = default; } - public class IISHostingStartup : Microsoft.AspNetCore.Hosting.IHostingStartup { public void Configure(Microsoft.AspNetCore.Hosting.IWebHostBuilder builder) => throw null; public IISHostingStartup() => throw null; } - public class IISMiddleware { public IISMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options, string pairingToken, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime) => throw null; public IISMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions options, string pairingToken, bool isWebsocketsSupported, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext httpContext) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Core.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Core.cs index f2d392840f8b0..8f1c37d522922 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Core.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Core.cs @@ -1,43 +1,39 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.Kestrel.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Hosting { - public static class KestrelServerOptionsSystemdExtensions - { - public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd(this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd(this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options, System.Action configure) => throw null; - } - - public static class ListenOptionsConnectionLoggingExtensions - { - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string loggerName) => throw null; - } - - public static class ListenOptionsHttpsExtensions + public static partial class ListenOptionsHttpsExtensions { public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Action configureOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions httpsOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state, System.TimeSpan handshakeTimeout) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location, System.Action configureOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.TlsHandshakeCallbackOptions callbackOptions) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate) => throw null; public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.X509Certificate2 serverCertificate, System.Action configureOptions) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password) => throw null; - public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string fileName, string password, System.Action configureOptions) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Action configureOptions) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions httpsOptions) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Net.Security.ServerOptionsSelectionCallback serverOptionsSelectionCallback, object state, System.TimeSpan handshakeTimeout) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, Microsoft.AspNetCore.Server.Kestrel.Https.TlsHandshakeCallbackOptions callbackOptions) => throw null; + } + public static partial class ListenOptionsConnectionLoggingExtensions + { + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseConnectionLogging(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, string loggerName) => throw null; + } + public static partial class KestrelServerOptionsSystemdExtensions + { + public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd(this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options) => throw null; + public static Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions UseSystemd(this Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions options, System.Action configure) => throw null; } - } namespace Server { @@ -45,195 +41,176 @@ namespace Kestrel { public class EndpointConfiguration { - public Microsoft.Extensions.Configuration.IConfigurationSection ConfigSection { get => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions HttpsOptions { get => throw null; } public bool IsHttps { get => throw null; } public Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions ListenOptions { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions HttpsOptions { get => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationSection ConfigSection { get => throw null; } } - public class KestrelConfigurationLoader { - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port, System.Action configure) => throw null; - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(string name, System.Action configureOptions) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPAddress address, int port) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPAddress address, int port, System.Action configure) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPEndPoint endPoint) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(System.Net.IPEndPoint endPoint, System.Action configure) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Endpoint(string name, System.Action configureOptions) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader HandleEndpoint(System.UInt64 handle) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader HandleEndpoint(System.UInt64 handle, System.Action configure) => throw null; - public void Load() => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint(int port) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint(int port, System.Action configure) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions Options { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port) => throw null; + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader AnyIPEndpoint(int port, System.Action configure) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader UnixSocketEndpoint(string socketPath) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader UnixSocketEndpoint(string socketPath, System.Action configure) => throw null; + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader HandleEndpoint(ulong handle) => throw null; + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader HandleEndpoint(ulong handle, System.Action configure) => throw null; + public void Load() => throw null; + public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions Options { get => throw null; } + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; } } - namespace Core { - public class BadHttpRequestException : Microsoft.AspNetCore.Http.BadHttpRequestException + public sealed class BadHttpRequestException : Microsoft.AspNetCore.Http.BadHttpRequestException { - internal BadHttpRequestException(string message, int statusCode, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason reason) : base(default(string)) => throw null; - internal BadHttpRequestException(string message, int statusCode, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.RequestRejectionReason reason, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod? requiredMethod) : base(default(string)) => throw null; public int StatusCode { get => throw null; } + internal BadHttpRequestException() : base(default(string)) { } } - public class Http2Limits { - public int HeaderTableSize { get => throw null; set => throw null; } public Http2Limits() => throw null; - public int InitialConnectionWindowSize { get => throw null; set => throw null; } - public int InitialStreamWindowSize { get => throw null; set => throw null; } - public System.TimeSpan KeepAlivePingDelay { get => throw null; set => throw null; } - public System.TimeSpan KeepAlivePingTimeout { get => throw null; set => throw null; } - public int MaxFrameSize { get => throw null; set => throw null; } - public int MaxRequestHeaderFieldSize { get => throw null; set => throw null; } - public int MaxStreamsPerConnection { get => throw null; set => throw null; } + public int MaxStreamsPerConnection { get => throw null; set { } } + public int HeaderTableSize { get => throw null; set { } } + public int MaxFrameSize { get => throw null; set { } } + public int MaxRequestHeaderFieldSize { get => throw null; set { } } + public int InitialConnectionWindowSize { get => throw null; set { } } + public int InitialStreamWindowSize { get => throw null; set { } } + public System.TimeSpan KeepAlivePingDelay { get => throw null; set { } } + public System.TimeSpan KeepAlivePingTimeout { get => throw null; set { } } } - public class Http3Limits { public Http3Limits() => throw null; - public int MaxRequestHeaderFieldSize { get => throw null; set => throw null; } + public int MaxRequestHeaderFieldSize { get => throw null; set { } } } - [System.Flags] - public enum HttpProtocols : int + public enum HttpProtocols { + None = 0, Http1 = 1, - Http1AndHttp2 = 3, - Http1AndHttp2AndHttp3 = 7, Http2 = 2, + Http1AndHttp2 = 3, Http3 = 4, - None = 0, + Http1AndHttp2AndHttp3 = 7, } - public class KestrelServer : Microsoft.AspNetCore.Hosting.Server.IServer, System.IDisposable { - public void Dispose() => throw null; - public Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } public KestrelServer(Microsoft.Extensions.Options.IOptions options, Microsoft.AspNetCore.Connections.IConnectionListenerFactory transportFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions Options { get => throw null; } public System.Threading.Tasks.Task StartAsync(Microsoft.AspNetCore.Hosting.Server.IHttpApplication application, System.Threading.CancellationToken cancellationToken) => throw null; public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public void Dispose() => throw null; + public Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions Options { get => throw null; } } - public class KestrelServerLimits { + public KestrelServerLimits() => throw null; + public long? MaxResponseBufferSize { get => throw null; set { } } + public long? MaxRequestBufferSize { get => throw null; set { } } + public int MaxRequestLineSize { get => throw null; set { } } + public int MaxRequestHeadersTotalSize { get => throw null; set { } } + public int MaxRequestHeaderCount { get => throw null; set { } } + public long? MaxRequestBodySize { get => throw null; set { } } + public System.TimeSpan KeepAliveTimeout { get => throw null; set { } } + public System.TimeSpan RequestHeadersTimeout { get => throw null; set { } } + public long? MaxConcurrentConnections { get => throw null; set { } } + public long? MaxConcurrentUpgradedConnections { get => throw null; set { } } public Microsoft.AspNetCore.Server.Kestrel.Core.Http2Limits Http2 { get => throw null; } public Microsoft.AspNetCore.Server.Kestrel.Core.Http3Limits Http3 { get => throw null; } - public System.TimeSpan KeepAliveTimeout { get => throw null; set => throw null; } - public KestrelServerLimits() => throw null; - public System.Int64? MaxConcurrentConnections { get => throw null; set => throw null; } - public System.Int64? MaxConcurrentUpgradedConnections { get => throw null; set => throw null; } - public System.Int64? MaxRequestBodySize { get => throw null; set => throw null; } - public System.Int64? MaxRequestBufferSize { get => throw null; set => throw null; } - public int MaxRequestHeaderCount { get => throw null; set => throw null; } - public int MaxRequestHeadersTotalSize { get => throw null; set => throw null; } - public int MaxRequestLineSize { get => throw null; set => throw null; } - public System.Int64? MaxResponseBufferSize { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinRequestBodyDataRate { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinResponseDataRate { get => throw null; set => throw null; } - public System.TimeSpan RequestHeadersTimeout { get => throw null; set => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinRequestBodyDataRate { get => throw null; set { } } + public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinResponseDataRate { get => throw null; set { } } } - public class KestrelServerOptions { - public bool AddServerHeader { get => throw null; set => throw null; } - public bool AllowAlternateSchemes { get => throw null; set => throw null; } - public bool AllowResponseHeaderCompression { get => throw null; set => throw null; } - public bool AllowSynchronousIO { get => throw null; set => throw null; } - public System.IServiceProvider ApplicationServices { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader ConfigurationLoader { get => throw null; set => throw null; } + public void ConfigureEndpointDefaults(System.Action configureOptions) => throw null; + public void ConfigureHttpsDefaults(System.Action configureOptions) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure() => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure(Microsoft.Extensions.Configuration.IConfiguration config) => throw null; public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure(Microsoft.Extensions.Configuration.IConfiguration config, bool reloadOnChange) => throw null; - public void ConfigureEndpointDefaults(System.Action configureOptions) => throw null; - public void ConfigureHttpsDefaults(System.Action configureOptions) => throw null; - public bool DisableStringReuse { get => throw null; set => throw null; } - public bool EnableAltSvc { get => throw null; set => throw null; } - public KestrelServerOptions() => throw null; - public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerLimits Limits { get => throw null; } - public void Listen(System.Net.EndPoint endPoint) => throw null; - public void Listen(System.Net.EndPoint endPoint, System.Action configure) => throw null; public void Listen(System.Net.IPAddress address, int port) => throw null; public void Listen(System.Net.IPAddress address, int port, System.Action configure) => throw null; public void Listen(System.Net.IPEndPoint endPoint) => throw null; + public void Listen(System.Net.EndPoint endPoint) => throw null; public void Listen(System.Net.IPEndPoint endPoint, System.Action configure) => throw null; - public void ListenAnyIP(int port) => throw null; - public void ListenAnyIP(int port, System.Action configure) => throw null; - public void ListenHandle(System.UInt64 handle) => throw null; - public void ListenHandle(System.UInt64 handle, System.Action configure) => throw null; + public void Listen(System.Net.EndPoint endPoint, System.Action configure) => throw null; public void ListenLocalhost(int port) => throw null; public void ListenLocalhost(int port, System.Action configure) => throw null; + public void ListenAnyIP(int port) => throw null; + public void ListenAnyIP(int port, System.Action configure) => throw null; public void ListenUnixSocket(string socketPath) => throw null; public void ListenUnixSocket(string socketPath, System.Action configure) => throw null; - public System.Func RequestHeaderEncodingSelector { get => throw null; set => throw null; } - public System.Func ResponseHeaderEncodingSelector { get => throw null; set => throw null; } + public void ListenHandle(ulong handle) => throw null; + public void ListenHandle(ulong handle, System.Action configure) => throw null; + public KestrelServerOptions() => throw null; + public bool AddServerHeader { get => throw null; set { } } + public bool AllowResponseHeaderCompression { get => throw null; set { } } + public bool AllowSynchronousIO { get => throw null; set { } } + public bool AllowAlternateSchemes { get => throw null; set { } } + public bool DisableStringReuse { get => throw null; set { } } + public bool EnableAltSvc { get => throw null; set { } } + public System.Func RequestHeaderEncodingSelector { get => throw null; set { } } + public System.Func ResponseHeaderEncodingSelector { get => throw null; set { } } + public System.IServiceProvider ApplicationServices { get => throw null; set { } } + public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerLimits Limits { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader ConfigurationLoader { get => throw null; set { } } } - public class ListenOptions : Microsoft.AspNetCore.Connections.IConnectionBuilder, Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder { - public System.IServiceProvider ApplicationServices { get => throw null; } + public override string ToString() => throw null; + public Microsoft.AspNetCore.Connections.IConnectionBuilder Use(System.Func middleware) => throw null; + Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder.Use(System.Func middleware) => throw null; public Microsoft.AspNetCore.Connections.ConnectionDelegate Build() => throw null; Microsoft.AspNetCore.Connections.MultiplexedConnectionDelegate Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder.Build() => throw null; - public bool DisableAltSvcHeader { get => throw null; set => throw null; } - public System.Net.EndPoint EndPoint { get => throw null; set => throw null; } - public System.UInt64 FileHandle { get => throw null; } + public System.Net.EndPoint EndPoint { get => throw null; } public System.Net.IPEndPoint IPEndPoint { get => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions KestrelServerOptions { get => throw null; set => throw null; } - internal ListenOptions(System.Net.EndPoint endPoint) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols Protocols { get => throw null; set => throw null; } public string SocketPath { get => throw null; } - public override string ToString() => throw null; - public Microsoft.AspNetCore.Connections.IConnectionBuilder Use(System.Func middleware) => throw null; - Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder Microsoft.AspNetCore.Connections.IMultiplexedConnectionBuilder.Use(System.Func middleware) => throw null; + public ulong FileHandle { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions KestrelServerOptions { get => throw null; } + public Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols Protocols { get => throw null; set { } } + public bool DisableAltSvcHeader { get => throw null; set { } } + public System.IServiceProvider ApplicationServices { get => throw null; } } - public class MinDataRate { - public double BytesPerSecond { get => throw null; } - public System.TimeSpan GracePeriod { get => throw null; } public MinDataRate(double bytesPerSecond, System.TimeSpan gracePeriod) => throw null; public override string ToString() => throw null; + public double BytesPerSecond { get => throw null; } + public System.TimeSpan GracePeriod { get => throw null; } } - namespace Features { public interface IConnectionTimeoutFeature { - void CancelTimeout(); - void ResetTimeout(System.TimeSpan timeSpan); void SetTimeout(System.TimeSpan timeSpan); + void ResetTimeout(System.TimeSpan timeSpan); + void CancelTimeout(); } - public interface IDecrementConcurrentConnectionCountFeature { void ReleaseConnection(); } - public interface IHttp2StreamIdFeature { int StreamId { get; } } - public interface IHttpMinRequestBodyDataRateFeature { Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinDataRate { get; set; } } - public interface IHttpMinResponseDataRateFeature { Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinDataRate { get; set; } } - public interface ITlsApplicationProtocolFeature { - System.ReadOnlyMemory ApplicationProtocol { get; } + System.ReadOnlyMemory ApplicationProtocol { get; } } - } namespace Internal { @@ -241,82 +218,64 @@ namespace Http { public enum HttpMethod : byte { - Connect = 7, - Custom = 9, - Delete = 2, Get = 0, - Head = 4, - None = 255, - Options = 8, - Patch = 6, - Post = 3, Put = 1, + Delete = 2, + Post = 3, + Head = 4, Trace = 5, + Patch = 6, + Connect = 7, + Options = 8, + Custom = 9, + None = 255, } - public class HttpParser where TRequestHandler : Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpHeadersHandler, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpRequestLineHandler { public HttpParser() => throw null; public HttpParser(bool showErrorDetails) => throw null; - public bool ParseHeaders(TRequestHandler handler, ref System.Buffers.SequenceReader reader) => throw null; - public bool ParseRequestLine(TRequestHandler handler, ref System.Buffers.SequenceReader reader) => throw null; + public bool ParseRequestLine(TRequestHandler handler, ref System.Buffers.SequenceReader reader) => throw null; + public bool ParseHeaders(TRequestHandler handler, ref System.Buffers.SequenceReader reader) => throw null; } - - public enum HttpScheme : int + public enum HttpScheme { + Unknown = -1, Http = 0, Https = 1, - Unknown = -1, } - public enum HttpVersion : sbyte { + Unknown = -1, Http10 = 0, Http11 = 1, Http2 = 2, Http3 = 3, - Unknown = -1, } - - public struct HttpVersionAndMethod - { - // Stub generator skipped constructor - public HttpVersionAndMethod(Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod method, int methodEnd) => throw null; - public Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod Method { get => throw null; } - public int MethodEnd { get => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpVersion Version { get => throw null; set => throw null; } - } - public interface IHttpHeadersHandler { - void OnHeader(System.ReadOnlySpan name, System.ReadOnlySpan value); - void OnHeadersComplete(bool endStream); void OnStaticIndexedHeader(int index); - void OnStaticIndexedHeader(int index, System.ReadOnlySpan value); - } - - internal interface IHttpParser where TRequestHandler : Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpHeadersHandler, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpRequestLineHandler - { + void OnStaticIndexedHeader(int index, System.ReadOnlySpan value); + void OnHeader(System.ReadOnlySpan name, System.ReadOnlySpan value); + void OnHeadersComplete(bool endStream); } - public interface IHttpRequestLineHandler { - void OnStartLine(Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpVersionAndMethod versionAndMethod, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.TargetOffsetPathLength targetPath, System.Span startLine); + void OnStartLine(Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpVersionAndMethod versionAndMethod, Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.TargetOffsetPathLength targetPath, System.Span startLine); } - - internal enum RequestRejectionReason : int + public struct HttpVersionAndMethod { + public HttpVersionAndMethod(Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod method, int methodEnd) => throw null; + public Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpVersion Version { get => throw null; set { } } + public Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpMethod Method { get => throw null; } + public int MethodEnd { get => throw null; } } - public struct TargetOffsetPathLength { - public bool IsEncoded { get => throw null; } - public int Length { get => throw null; } - public int Offset { get => throw null; } - // Stub generator skipped constructor public TargetOffsetPathLength(int offset, int length, bool isEncoded) => throw null; + public int Offset { get => throw null; } + public int Length { get => throw null; } + public bool IsEncoded { get => throw null; } } - } } } @@ -326,49 +285,44 @@ public static class CertificateLoader { public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert(string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid) => throw null; } - - public enum ClientCertificateMode : int + public enum ClientCertificateMode { - AllowCertificate = 1, - DelayCertificate = 3, NoCertificate = 0, + AllowCertificate = 1, RequireCertificate = 2, + DelayCertificate = 3, } - public class HttpsConnectionAdapterOptions { - public void AllowAnyClientCertificate() => throw null; - public bool CheckCertificateRevocation { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Server.Kestrel.Https.ClientCertificateMode ClientCertificateMode { get => throw null; set => throw null; } - public System.Func ClientCertificateValidation { get => throw null; set => throw null; } - public System.TimeSpan HandshakeTimeout { get => throw null; set => throw null; } public HttpsConnectionAdapterOptions() => throw null; - public System.Action OnAuthenticate { get => throw null; set => throw null; } - public System.Security.Cryptography.X509Certificates.X509Certificate2 ServerCertificate { get => throw null; set => throw null; } - public System.Security.Cryptography.X509Certificates.X509Certificate2Collection ServerCertificateChain { get => throw null; set => throw null; } - public System.Func ServerCertificateSelector { get => throw null; set => throw null; } - public System.Security.Authentication.SslProtocols SslProtocols { get => throw null; set => throw null; } + public void AllowAnyClientCertificate() => throw null; + public System.Security.Cryptography.X509Certificates.X509Certificate2 ServerCertificate { get => throw null; set { } } + public System.Security.Cryptography.X509Certificates.X509Certificate2Collection ServerCertificateChain { get => throw null; set { } } + public System.Func ServerCertificateSelector { get => throw null; set { } } + public Microsoft.AspNetCore.Server.Kestrel.Https.ClientCertificateMode ClientCertificateMode { get => throw null; set { } } + public System.Func ClientCertificateValidation { get => throw null; set { } } + public System.Security.Authentication.SslProtocols SslProtocols { get => throw null; set { } } + public bool CheckCertificateRevocation { get => throw null; set { } } + public System.Action OnAuthenticate { get => throw null; set { } } + public System.TimeSpan HandshakeTimeout { get => throw null; set { } } } - public class TlsHandshakeCallbackContext { - public bool AllowDelayedClientCertificateNegotation { get => throw null; set => throw null; } - public System.Threading.CancellationToken CancellationToken { get => throw null; set => throw null; } - public System.Net.Security.SslClientHelloInfo ClientHelloInfo { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Connections.ConnectionContext Connection { get => throw null; set => throw null; } - public System.Net.Security.SslStream SslStream { get => throw null; set => throw null; } - public object State { get => throw null; set => throw null; } public TlsHandshakeCallbackContext() => throw null; + public System.Net.Security.SslStream SslStream { get => throw null; } + public System.Net.Security.SslClientHelloInfo ClientHelloInfo { get => throw null; } + public object State { get => throw null; } + public System.Threading.CancellationToken CancellationToken { get => throw null; } + public Microsoft.AspNetCore.Connections.ConnectionContext Connection { get => throw null; } + public bool AllowDelayedClientCertificateNegotation { get => throw null; set { } } } - public class TlsHandshakeCallbackOptions { - public System.TimeSpan HandshakeTimeout { get => throw null; set => throw null; } - public System.Func> OnConnection { get => throw null; set => throw null; } - public object OnConnectionState { get => throw null; set => throw null; } public TlsHandshakeCallbackOptions() => throw null; + public System.Func> OnConnection { get => throw null; set { } } + public object OnConnectionState { get => throw null; set { } } + public System.TimeSpan HandshakeTimeout { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.cs index d5561036f80d9..11f037367e54e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.cs @@ -1,18 +1,16 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.Kestrel.Transport.Quic, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Hosting { - public static class WebHostBuilderQuicExtensions + public static partial class WebHostBuilderQuicExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseQuic(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseQuic(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureOptions) => throw null; } - } namespace Server { @@ -22,18 +20,17 @@ namespace Transport { namespace Quic { - public class QuicTransportOptions + public sealed class QuicTransportOptions { - public int Backlog { get => throw null; set => throw null; } - public System.Int64 DefaultCloseErrorCode { get => throw null; set => throw null; } - public System.Int64 DefaultStreamErrorCode { get => throw null; set => throw null; } - public int MaxBidirectionalStreamCount { get => throw null; set => throw null; } - public System.Int64? MaxReadBufferSize { get => throw null; set => throw null; } - public int MaxUnidirectionalStreamCount { get => throw null; set => throw null; } - public System.Int64? MaxWriteBufferSize { get => throw null; set => throw null; } public QuicTransportOptions() => throw null; + public int MaxBidirectionalStreamCount { get => throw null; set { } } + public int MaxUnidirectionalStreamCount { get => throw null; set { } } + public long? MaxReadBufferSize { get => throw null; set { } } + public long? MaxWriteBufferSize { get => throw null; set { } } + public int Backlog { get => throw null; set { } } + public long DefaultStreamErrorCode { get => throw null; set { } } + public long DefaultCloseErrorCode { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.cs index 7ad604b14b30e..a659148dbea51 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.cs @@ -1,18 +1,16 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Hosting { - public static class WebHostBuilderSocketExtensions + public static partial class WebHostBuilderSocketExtensions { public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSockets(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSockets(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureOptions) => throw null; } - } namespace Server { @@ -22,43 +20,39 @@ namespace Transport { namespace Sockets { - public class SocketConnectionContextFactory : System.IDisposable + public sealed class SocketConnectionContextFactory : System.IDisposable { + public SocketConnectionContextFactory(Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionFactoryOptions options, Microsoft.Extensions.Logging.ILogger logger) => throw null; public Microsoft.AspNetCore.Connections.ConnectionContext Create(System.Net.Sockets.Socket socket) => throw null; public void Dispose() => throw null; - public SocketConnectionContextFactory(Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionFactoryOptions options, Microsoft.Extensions.Logging.ILogger logger) => throw null; } - public class SocketConnectionFactoryOptions { - public int IOQueueCount { get => throw null; set => throw null; } - public System.Int64? MaxReadBufferSize { get => throw null; set => throw null; } - public System.Int64? MaxWriteBufferSize { get => throw null; set => throw null; } public SocketConnectionFactoryOptions() => throw null; - public bool UnsafePreferInlineScheduling { get => throw null; set => throw null; } - public bool WaitForDataBeforeAllocatingBuffer { get => throw null; set => throw null; } + public int IOQueueCount { get => throw null; set { } } + public bool WaitForDataBeforeAllocatingBuffer { get => throw null; set { } } + public long? MaxReadBufferSize { get => throw null; set { } } + public long? MaxWriteBufferSize { get => throw null; set { } } + public bool UnsafePreferInlineScheduling { get => throw null; set { } } } - - public class SocketTransportFactory : Microsoft.AspNetCore.Connections.IConnectionListenerFactory + public sealed class SocketTransportFactory : Microsoft.AspNetCore.Connections.IConnectionListenerFactory { - public System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; public SocketTransportFactory(Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.ValueTask BindAsync(System.Net.EndPoint endpoint, System.Threading.CancellationToken cancellationToken) => throw null; } - public class SocketTransportOptions { - public int Backlog { get => throw null; set => throw null; } - public System.Func CreateBoundListenSocket { get => throw null; set => throw null; } public static System.Net.Sockets.Socket CreateDefaultBoundListenSocket(System.Net.EndPoint endpoint) => throw null; - public int IOQueueCount { get => throw null; set => throw null; } - public System.Int64? MaxReadBufferSize { get => throw null; set => throw null; } - public System.Int64? MaxWriteBufferSize { get => throw null; set => throw null; } - public bool NoDelay { get => throw null; set => throw null; } public SocketTransportOptions() => throw null; - public bool UnsafePreferInlineScheduling { get => throw null; set => throw null; } - public bool WaitForDataBeforeAllocatingBuffer { get => throw null; set => throw null; } + public int IOQueueCount { get => throw null; set { } } + public bool WaitForDataBeforeAllocatingBuffer { get => throw null; set { } } + public bool NoDelay { get => throw null; set { } } + public int Backlog { get => throw null; set { } } + public long? MaxReadBufferSize { get => throw null; set { } } + public long? MaxWriteBufferSize { get => throw null; set { } } + public bool UnsafePreferInlineScheduling { get => throw null; set { } } + public System.Func CreateBoundListenSocket { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.cs index c823cee8ba806..6a2dad7bcc9f5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Server.Kestrel.cs @@ -1,21 +1,19 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Server.Kestrel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Hosting { - public static class WebHostBuilderKestrelExtensions + public static partial class WebHostBuilderKestrelExtensions { - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action options) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureOptions) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action options) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action options) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureOptions) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel(this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Session.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Session.cs index 28e8d10f16446..33807936c369c 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Session.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.Session.cs @@ -1,84 +1,74 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.Session, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class SessionMiddlewareExtensions + public static partial class SessionMiddlewareExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSession(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseSession(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.SessionOptions options) => throw null; } - public class SessionOptions { - public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set => throw null; } - public System.TimeSpan IOTimeout { get => throw null; set => throw null; } - public System.TimeSpan IdleTimeout { get => throw null; set => throw null; } public SessionOptions() => throw null; + public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } } + public System.TimeSpan IdleTimeout { get => throw null; set { } } + public System.TimeSpan IOTimeout { get => throw null; set { } } } - } namespace Session { public class DistributedSession : Microsoft.AspNetCore.Http.ISession { - public void Clear() => throw null; - public System.Threading.Tasks.Task CommitAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; public DistributedSession(Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string sessionKey, System.TimeSpan idleTimeout, System.TimeSpan ioTimeout, System.Func tryEstablishSession, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool isNewSessionKey) => throw null; - public string Id { get => throw null; } + public bool TryGetValue(string key, out byte[] value) => throw null; + public void Set(string key, byte[] value) => throw null; + public void Remove(string key) => throw null; + public void Clear() => throw null; + public System.Threading.Tasks.Task LoadAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public System.Threading.Tasks.Task CommitAsync(System.Threading.CancellationToken cancellationToken) => throw null; public bool IsAvailable { get => throw null; } + public string Id { get => throw null; } public System.Collections.Generic.IEnumerable Keys { get => throw null; } - public System.Threading.Tasks.Task LoadAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public void Remove(string key) => throw null; - public void Set(string key, System.Byte[] value) => throw null; - public bool TryGetValue(string key, out System.Byte[] value) => throw null; } - public class DistributedSessionStore : Microsoft.AspNetCore.Session.ISessionStore { - public Microsoft.AspNetCore.Http.ISession Create(string sessionKey, System.TimeSpan idleTimeout, System.TimeSpan ioTimeout, System.Func tryEstablishSession, bool isNewSessionKey) => throw null; public DistributedSessionStore(Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public Microsoft.AspNetCore.Http.ISession Create(string sessionKey, System.TimeSpan idleTimeout, System.TimeSpan ioTimeout, System.Func tryEstablishSession, bool isNewSessionKey) => throw null; } - public interface ISessionStore { Microsoft.AspNetCore.Http.ISession Create(string sessionKey, System.TimeSpan idleTimeout, System.TimeSpan ioTimeout, System.Func tryEstablishSession, bool isNewSessionKey); } - public static class SessionDefaults { public static string CookieName; public static string CookiePath; } - public class SessionFeature : Microsoft.AspNetCore.Http.Features.ISessionFeature { - public Microsoft.AspNetCore.Http.ISession Session { get => throw null; set => throw null; } public SessionFeature() => throw null; + public Microsoft.AspNetCore.Http.ISession Session { get => throw null; set { } } } - public class SessionMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public SessionMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider dataProtectionProvider, Microsoft.AspNetCore.Session.ISessionStore sessionStore, Microsoft.Extensions.Options.IOptions options) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - } } namespace Extensions { namespace DependencyInjection { - public static class SessionServiceCollectionExtensions + public static partial class SessionServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSession(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSession(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Common.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Common.cs index 3cd6eb28f509e..bd9f75f413926 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Common.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Common.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.SignalR.Common, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,170 +9,148 @@ namespace SignalR public class HubException : System.Exception { public HubException() => throw null; - public HubException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public HubException(string message) => throw null; public HubException(string message, System.Exception innerException) => throw null; + public HubException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; } - public interface IInvocationBinder { - System.Collections.Generic.IReadOnlyList GetParameterTypes(string methodName); System.Type GetReturnType(string invocationId); + System.Collections.Generic.IReadOnlyList GetParameterTypes(string methodName); System.Type GetStreamItemType(string streamId); - string GetTarget(System.ReadOnlySpan utf8Bytes) => throw null; + virtual string GetTarget(System.ReadOnlySpan utf8Bytes) => throw null; } - public interface ISignalRBuilder { Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - namespace Protocol { public class CancelInvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubInvocationMessage { public CancelInvocationMessage(string invocationId) : base(default(string)) => throw null; } - public class CloseMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { - public bool AllowReconnect { get => throw null; } + public static Microsoft.AspNetCore.SignalR.Protocol.CloseMessage Empty; public CloseMessage(string error) => throw null; public CloseMessage(string error, bool allowReconnect) => throw null; - public static Microsoft.AspNetCore.SignalR.Protocol.CloseMessage Empty; public string Error { get => throw null; } + public bool AllowReconnect { get => throw null; } } - public class CompletionMessage : Microsoft.AspNetCore.SignalR.Protocol.HubInvocationMessage { public CompletionMessage(string invocationId, string error, object result, bool hasResult) : base(default(string)) => throw null; - public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage Empty(string invocationId) => throw null; - public string Error { get => throw null; } - public bool HasResult { get => throw null; } - public object Result { get => throw null; } public override string ToString() => throw null; public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithError(string invocationId, string error) => throw null; public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithResult(string invocationId, object payload) => throw null; + public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage Empty(string invocationId) => throw null; + public string Error { get => throw null; } + public object Result { get => throw null; } + public bool HasResult { get => throw null; } } - public static class HandshakeProtocol { - public static System.ReadOnlySpan GetSuccessfulHandshake(Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol) => throw null; - public static bool TryParseRequestMessage(ref System.Buffers.ReadOnlySequence buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage) => throw null; - public static bool TryParseResponseMessage(ref System.Buffers.ReadOnlySequence buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage) => throw null; - public static void WriteRequestMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage, System.Buffers.IBufferWriter output) => throw null; - public static void WriteResponseMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage, System.Buffers.IBufferWriter output) => throw null; + public static System.ReadOnlySpan GetSuccessfulHandshake(Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol) => throw null; + public static void WriteRequestMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage, System.Buffers.IBufferWriter output) => throw null; + public static void WriteResponseMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage, System.Buffers.IBufferWriter output) => throw null; + public static bool TryParseResponseMessage(ref System.Buffers.ReadOnlySequence buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage) => throw null; + public static bool TryParseRequestMessage(ref System.Buffers.ReadOnlySequence buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage) => throw null; } - public class HandshakeRequestMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { public HandshakeRequestMessage(string protocol, int version) => throw null; public string Protocol { get => throw null; } public int Version { get => throw null; } } - public class HandshakeResponseMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { public static Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage Empty; - public string Error { get => throw null; } public HandshakeResponseMessage(string error) => throw null; + public string Error { get => throw null; } } - public abstract class HubInvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { - public System.Collections.Generic.IDictionary Headers { get => throw null; set => throw null; } protected HubInvocationMessage(string invocationId) => throw null; + public System.Collections.Generic.IDictionary Headers { get => throw null; set { } } public string InvocationId { get => throw null; } } - public abstract class HubMessage { protected HubMessage() => throw null; } - public abstract class HubMethodInvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubInvocationMessage { - public object[] Arguments { get => throw null; } - protected HubMethodInvocationMessage(string invocationId, string target, object[] arguments) : base(default(string)) => throw null; protected HubMethodInvocationMessage(string invocationId, string target, object[] arguments, string[] streamIds) : base(default(string)) => throw null; - public string[] StreamIds { get => throw null; } + protected HubMethodInvocationMessage(string invocationId, string target, object[] arguments) : base(default(string)) => throw null; public string Target { get => throw null; } + public object[] Arguments { get => throw null; } + public string[] StreamIds { get => throw null; } + } + public class InvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage + { + public InvocationMessage(string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; + public InvocationMessage(string invocationId, string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; + public InvocationMessage(string invocationId, string target, object[] arguments, string[] streamIds) : base(default(string), default(string), default(object[])) => throw null; + public override string ToString() => throw null; + } + public class StreamInvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage + { + public StreamInvocationMessage(string invocationId, string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; + public StreamInvocationMessage(string invocationId, string target, object[] arguments, string[] streamIds) : base(default(string), default(string), default(object[])) => throw null; + public override string ToString() => throw null; } - public static class HubProtocolConstants { - public const int CancelInvocationMessageType = default; - public const int CloseMessageType = default; - public const int CompletionMessageType = default; - public const int InvocationMessageType = default; - public const int PingMessageType = default; - public const int StreamInvocationMessageType = default; - public const int StreamItemMessageType = default; + public static int InvocationMessageType; + public static int StreamItemMessageType; + public static int CompletionMessageType; + public static int StreamInvocationMessageType; + public static int CancelInvocationMessageType; + public static int PingMessageType; + public static int CloseMessageType; } - - public static class HubProtocolExtensions + public static partial class HubProtocolExtensions { - public static System.Byte[] GetMessageBytes(this Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol hubProtocol, Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; + public static byte[] GetMessageBytes(this Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol hubProtocol, Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; } - public interface IHubProtocol { - System.ReadOnlyMemory GetMessageBytes(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message); + bool TryParseMessage(ref System.Buffers.ReadOnlySequence input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message); + void WriteMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Buffers.IBufferWriter output); + System.ReadOnlyMemory GetMessageBytes(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message); bool IsVersionSupported(int version); string Name { get; } - Microsoft.AspNetCore.Connections.TransferFormat TransferFormat { get; } - bool TryParseMessage(ref System.Buffers.ReadOnlySequence input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message); int Version { get; } - void WriteMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Buffers.IBufferWriter output); + Microsoft.AspNetCore.Connections.TransferFormat TransferFormat { get; } } - public class InvocationBindingFailureMessage : Microsoft.AspNetCore.SignalR.Protocol.HubInvocationMessage { - public System.Runtime.ExceptionServices.ExceptionDispatchInfo BindingFailure { get => throw null; } public InvocationBindingFailureMessage(string invocationId, string target, System.Runtime.ExceptionServices.ExceptionDispatchInfo bindingFailure) : base(default(string)) => throw null; + public System.Runtime.ExceptionServices.ExceptionDispatchInfo BindingFailure { get => throw null; } public string Target { get => throw null; } } - - public class InvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage - { - public InvocationMessage(string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; - public InvocationMessage(string invocationId, string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; - public InvocationMessage(string invocationId, string target, object[] arguments, string[] streamIds) : base(default(string), default(string), default(object[])) => throw null; - public override string ToString() => throw null; - } - public class PingMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { public static Microsoft.AspNetCore.SignalR.Protocol.PingMessage Instance; } - - public class RawResult + public sealed class RawResult { - public RawResult(System.Buffers.ReadOnlySequence rawBytes) => throw null; - public System.Buffers.ReadOnlySequence RawSerializedData { get => throw null; } + public RawResult(System.Buffers.ReadOnlySequence rawBytes) => throw null; + public System.Buffers.ReadOnlySequence RawSerializedData { get => throw null; } } - public class StreamBindingFailureMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMessage { - public System.Runtime.ExceptionServices.ExceptionDispatchInfo BindingFailure { get => throw null; } - public string Id { get => throw null; } public StreamBindingFailureMessage(string id, System.Runtime.ExceptionServices.ExceptionDispatchInfo bindingFailure) => throw null; + public string Id { get => throw null; } + public System.Runtime.ExceptionServices.ExceptionDispatchInfo BindingFailure { get => throw null; } } - - public class StreamInvocationMessage : Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage - { - public StreamInvocationMessage(string invocationId, string target, object[] arguments) : base(default(string), default(string), default(object[])) => throw null; - public StreamInvocationMessage(string invocationId, string target, object[] arguments, string[] streamIds) : base(default(string), default(string), default(object[])) => throw null; - public override string ToString() => throw null; - } - public class StreamItemMessage : Microsoft.AspNetCore.SignalR.Protocol.HubInvocationMessage { - public object Item { get => throw null; set => throw null; } public StreamItemMessage(string invocationId, object item) : base(default(string)) => throw null; public override string ToString() => throw null; + public object Item { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Core.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Core.cs index 2858ce517d6c4..dea11dc1e6f9a 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Core.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Core.cs @@ -1,14 +1,24 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.SignalR.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace SignalR { - public static class ClientProxyExtensions - { + public static partial class ClientProxyExtensions + { + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, System.Threading.CancellationToken cancellationToken) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, object arg1, System.Threading.CancellationToken cancellationToken) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, object arg1, object arg2, System.Threading.CancellationToken cancellationToken) => throw null; @@ -20,102 +30,82 @@ public static class ClientProxyExtensions public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken) => throw null; public static System.Threading.Tasks.Task InvokeAsync(this Microsoft.AspNetCore.SignalR.ISingleClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SendAsync(this Microsoft.AspNetCore.SignalR.IClientProxy clientProxy, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - } - + } public class DefaultHubLifetimeManager : Microsoft.AspNetCore.SignalR.HubLifetimeManager where THub : Microsoft.AspNetCore.SignalR.Hub { - public override System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; public DefaultHubLifetimeManager(Microsoft.Extensions.Logging.ILogger> logger) => throw null; - public override System.Threading.Tasks.Task InvokeConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendAllAsync(string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendGroupAsync(string groupName, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendGroupsAsync(System.Collections.Generic.IReadOnlyList groupNames, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendGroupExceptAsync(string groupName, string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendUserAsync(string userId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; public override System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; public override System.Threading.Tasks.Task OnDisconnectedAsync(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; - public override System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendAllAsync(string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendAllExceptAsync(string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendConnectionsAsync(System.Collections.Generic.IReadOnlyList connectionIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendGroupAsync(string groupName, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendGroupExceptAsync(string groupName, string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendGroupsAsync(System.Collections.Generic.IReadOnlyList groupNames, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendUserAsync(string userId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task SendUsersAsync(System.Collections.Generic.IReadOnlyList userIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public override System.Threading.Tasks.Task SendAllExceptAsync(string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendConnectionsAsync(System.Collections.Generic.IReadOnlyList connectionIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task SendUsersAsync(System.Collections.Generic.IReadOnlyList userIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task InvokeConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; public override System.Threading.Tasks.Task SetConnectionResultAsync(string connectionId, Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage result) => throw null; public override bool TryGetReturnType(string invocationId, out System.Type type) => throw null; } - public class DefaultUserIdProvider : Microsoft.AspNetCore.SignalR.IUserIdProvider { - public DefaultUserIdProvider() => throw null; public virtual string GetUserId(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; + public DefaultUserIdProvider() => throw null; } - public abstract class DynamicHub : Microsoft.AspNetCore.SignalR.Hub { - public Microsoft.AspNetCore.SignalR.DynamicHubClients Clients { get => throw null; set => throw null; } protected DynamicHub() => throw null; + public Microsoft.AspNetCore.SignalR.DynamicHubClients Clients { get => throw null; set { } } } - public class DynamicHubClients { - public dynamic All { get => throw null; } + public DynamicHubClients(Microsoft.AspNetCore.SignalR.IHubCallerClients clients) => throw null; public dynamic AllExcept(System.Collections.Generic.IReadOnlyList excludedConnectionIds) => throw null; - public dynamic Caller { get => throw null; } public dynamic Client(string connectionId) => throw null; public dynamic Clients(System.Collections.Generic.IReadOnlyList connectionIds) => throw null; - public DynamicHubClients(Microsoft.AspNetCore.SignalR.IHubCallerClients clients) => throw null; public dynamic Group(string groupName) => throw null; - public dynamic GroupExcept(string groupName, System.Collections.Generic.IReadOnlyList excludedConnectionIds) => throw null; public dynamic Groups(System.Collections.Generic.IReadOnlyList groupNames) => throw null; - public dynamic Others { get => throw null; } + public dynamic GroupExcept(string groupName, System.Collections.Generic.IReadOnlyList excludedConnectionIds) => throw null; public dynamic OthersInGroup(string groupName) => throw null; public dynamic User(string userId) => throw null; public dynamic Users(System.Collections.Generic.IReadOnlyList userIds) => throw null; + public dynamic All { get => throw null; } + public dynamic Caller { get => throw null; } + public dynamic Others { get => throw null; } } - public abstract class Hub : System.IDisposable { - public Microsoft.AspNetCore.SignalR.IHubCallerClients Clients { get => throw null; set => throw null; } - public Microsoft.AspNetCore.SignalR.HubCallerContext Context { get => throw null; set => throw null; } - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public Microsoft.AspNetCore.SignalR.IGroupManager Groups { get => throw null; set => throw null; } - protected Hub() => throw null; public virtual System.Threading.Tasks.Task OnConnectedAsync() => throw null; public virtual System.Threading.Tasks.Task OnDisconnectedAsync(System.Exception exception) => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public void Dispose() => throw null; + protected Hub() => throw null; + public Microsoft.AspNetCore.SignalR.IHubCallerClients Clients { get => throw null; set { } } + public Microsoft.AspNetCore.SignalR.HubCallerContext Context { get => throw null; set { } } + public Microsoft.AspNetCore.SignalR.IGroupManager Groups { get => throw null; set { } } } - public abstract class Hub : Microsoft.AspNetCore.SignalR.Hub where T : class { - public Microsoft.AspNetCore.SignalR.IHubCallerClients Clients { get => throw null; set => throw null; } protected Hub() => throw null; + public Microsoft.AspNetCore.SignalR.IHubCallerClients Clients { get => throw null; set { } } } - public abstract class HubCallerContext { public abstract void Abort(); - public abstract System.Threading.CancellationToken ConnectionAborted { get; } - public abstract string ConnectionId { get; } - public abstract Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } protected HubCallerContext() => throw null; - public abstract System.Collections.Generic.IDictionary Items { get; } - public abstract System.Security.Claims.ClaimsPrincipal User { get; } + public abstract string ConnectionId { get; } public abstract string UserIdentifier { get; } + public abstract System.Security.Claims.ClaimsPrincipal User { get; } + public abstract System.Collections.Generic.IDictionary Items { get; } + public abstract Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get; } + public abstract System.Threading.CancellationToken ConnectionAborted { get; } } - - public static class HubClientsExtensions + public static partial class HubClientsExtensions { - public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable excludedConnectionIds) => throw null; public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1) => throw null; public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2) => throw null; public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3) => throw null; @@ -124,7 +114,7 @@ public static class HubClientsExtensions public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6) => throw null; public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7) => throw null; public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7, string excludedConnectionId8) => throw null; - public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable connectionIds) => throw null; + public static T AllExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable excludedConnectionIds) => throw null; public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1) => throw null; public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2) => throw null; public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3) => throw null; @@ -133,16 +123,7 @@ public static class HubClientsExtensions public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6) => throw null; public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6, string connection7) => throw null; public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string connection1, string connection2, string connection3, string connection4, string connection5, string connection6, string connection7, string connection8) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, System.Collections.Generic.IEnumerable excludedConnectionIds) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7) => throw null; - public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7, string excludedConnectionId8) => throw null; - public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable groupNames) => throw null; + public static T Clients(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable connectionIds) => throw null; public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1) => throw null; public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2) => throw null; public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3) => throw null; @@ -151,7 +132,16 @@ public static class HubClientsExtensions public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6) => throw null; public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6, string group7) => throw null; public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string group1, string group2, string group3, string group4, string group5, string group6, string group7, string group8) => throw null; - public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable userIds) => throw null; + public static T Groups(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable groupNames) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, string excludedConnectionId1, string excludedConnectionId2, string excludedConnectionId3, string excludedConnectionId4, string excludedConnectionId5, string excludedConnectionId6, string excludedConnectionId7, string excludedConnectionId8) => throw null; + public static T GroupExcept(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string groupName, System.Collections.Generic.IEnumerable excludedConnectionIds) => throw null; public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1) => throw null; public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2) => throw null; public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2, string user3) => throw null; @@ -160,265 +150,229 @@ public static class HubClientsExtensions public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2, string user3, string user4, string user5, string user6) => throw null; public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2, string user3, string user4, string user5, string user6, string user7) => throw null; public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, string user1, string user2, string user3, string user4, string user5, string user6, string user7, string user8) => throw null; + public static T Users(this Microsoft.AspNetCore.SignalR.IHubClients hubClients, System.Collections.Generic.IEnumerable userIds) => throw null; } - public class HubConnectionContext { + public HubConnectionContext(Microsoft.AspNetCore.Connections.ConnectionContext connectionContext, Microsoft.AspNetCore.SignalR.HubConnectionContextOptions contextOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public virtual System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.SignalR.SerializedHubMessage message, System.Threading.CancellationToken cancellationToken) => throw null; public virtual void Abort() => throw null; public virtual System.Threading.CancellationToken ConnectionAborted { get => throw null; } public virtual string ConnectionId { get => throw null; } + public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } public virtual Microsoft.AspNetCore.Http.Features.IFeatureCollection Features { get => throw null; } - public HubConnectionContext(Microsoft.AspNetCore.Connections.ConnectionContext connectionContext, Microsoft.AspNetCore.SignalR.HubConnectionContextOptions contextOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public virtual System.Collections.Generic.IDictionary Items { get => throw null; } - public virtual Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol Protocol { get => throw null; set => throw null; } - public virtual System.Security.Claims.ClaimsPrincipal User { get => throw null; } - public string UserIdentifier { get => throw null; set => throw null; } - public virtual System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.ValueTask WriteAsync(Microsoft.AspNetCore.SignalR.SerializedHubMessage message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public string UserIdentifier { get => throw null; set { } } + public virtual Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol Protocol { get => throw null; set { } } } - public class HubConnectionContextOptions { - public System.TimeSpan ClientTimeoutInterval { get => throw null; set => throw null; } public HubConnectionContextOptions() => throw null; - public System.TimeSpan KeepAliveInterval { get => throw null; set => throw null; } - public int MaximumParallelInvocations { get => throw null; set => throw null; } - public System.Int64? MaximumReceiveMessageSize { get => throw null; set => throw null; } - public int StreamBufferCapacity { get => throw null; set => throw null; } + public System.TimeSpan KeepAliveInterval { get => throw null; set { } } + public System.TimeSpan ClientTimeoutInterval { get => throw null; set { } } + public int StreamBufferCapacity { get => throw null; set { } } + public long? MaximumReceiveMessageSize { get => throw null; set { } } + public int MaximumParallelInvocations { get => throw null; set { } } } - public class HubConnectionHandler : Microsoft.AspNetCore.Connections.ConnectionHandler where THub : Microsoft.AspNetCore.SignalR.Hub { public HubConnectionHandler(Microsoft.AspNetCore.SignalR.HubLifetimeManager lifetimeManager, Microsoft.AspNetCore.SignalR.IHubProtocolResolver protocolResolver, Microsoft.Extensions.Options.IOptions globalHubOptions, Microsoft.Extensions.Options.IOptions> hubOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.SignalR.IUserIdProvider userIdProvider, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory) => throw null; public override System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.Connections.ConnectionContext connection) => throw null; } - public class HubConnectionStore { + public void Add(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; + public void Remove(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; + public Microsoft.AspNetCore.SignalR.HubConnectionStore.Enumerator GetEnumerator() => throw null; + public HubConnectionStore() => throw null; + public Microsoft.AspNetCore.SignalR.HubConnectionContext this[string connectionId] { get => throw null; } + public int Count { get => throw null; } public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable { - public Microsoft.AspNetCore.SignalR.HubConnectionContext Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor public Enumerator(Microsoft.AspNetCore.SignalR.HubConnectionStore hubConnectionList) => throw null; + public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; + public Microsoft.AspNetCore.SignalR.HubConnectionContext Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - - - public void Add(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; - public int Count { get => throw null; } - public Microsoft.AspNetCore.SignalR.HubConnectionStore.Enumerator GetEnumerator() => throw null; - public HubConnectionStore() => throw null; - public Microsoft.AspNetCore.SignalR.HubConnectionContext this[string connectionId] { get => throw null; } - public void Remove(Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; } - public class HubInvocationContext { + public HubInvocationContext(Microsoft.AspNetCore.SignalR.HubCallerContext context, System.IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub, System.Reflection.MethodInfo hubMethod, System.Collections.Generic.IReadOnlyList hubMethodArguments) => throw null; public Microsoft.AspNetCore.SignalR.HubCallerContext Context { get => throw null; } public Microsoft.AspNetCore.SignalR.Hub Hub { get => throw null; } - public HubInvocationContext(Microsoft.AspNetCore.SignalR.HubCallerContext context, System.IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub, System.Reflection.MethodInfo hubMethod, System.Collections.Generic.IReadOnlyList hubMethodArguments) => throw null; - public System.Reflection.MethodInfo HubMethod { get => throw null; } - public System.Collections.Generic.IReadOnlyList HubMethodArguments { get => throw null; } public string HubMethodName { get => throw null; } + public System.Collections.Generic.IReadOnlyList HubMethodArguments { get => throw null; } public System.IServiceProvider ServiceProvider { get => throw null; } + public System.Reflection.MethodInfo HubMethod { get => throw null; } } - - public class HubLifetimeContext + public sealed class HubLifetimeContext { + public HubLifetimeContext(Microsoft.AspNetCore.SignalR.HubCallerContext context, System.IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub) => throw null; public Microsoft.AspNetCore.SignalR.HubCallerContext Context { get => throw null; } public Microsoft.AspNetCore.SignalR.Hub Hub { get => throw null; } - public HubLifetimeContext(Microsoft.AspNetCore.SignalR.HubCallerContext context, System.IServiceProvider serviceProvider, Microsoft.AspNetCore.SignalR.Hub hub) => throw null; public System.IServiceProvider ServiceProvider { get => throw null; } } - public abstract class HubLifetimeManager where THub : Microsoft.AspNetCore.SignalR.Hub { - public abstract System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected HubLifetimeManager() => throw null; - public virtual System.Threading.Tasks.Task InvokeConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; public abstract System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.SignalR.HubConnectionContext connection); public abstract System.Threading.Tasks.Task OnDisconnectedAsync(Microsoft.AspNetCore.SignalR.HubConnectionContext connection); - public abstract System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendAllAsync(string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendAllExceptAsync(string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendConnectionsAsync(System.Collections.Generic.IReadOnlyList connectionIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendGroupAsync(string groupName, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendGroupExceptAsync(string groupName, string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendGroupsAsync(System.Collections.Generic.IReadOnlyList groupNames, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendUserAsync(string userId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task SendUsersAsync(System.Collections.Generic.IReadOnlyList userIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public abstract System.Threading.Tasks.Task SendAllAsync(string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendAllExceptAsync(string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendConnectionsAsync(System.Collections.Generic.IReadOnlyList connectionIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendGroupAsync(string groupName, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendGroupsAsync(System.Collections.Generic.IReadOnlyList groupNames, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendGroupExceptAsync(string groupName, string methodName, object[] args, System.Collections.Generic.IReadOnlyList excludedConnectionIds, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendUserAsync(string userId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task SendUsersAsync(System.Collections.Generic.IReadOnlyList userIds, string methodName, object[] args, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task InvokeConnectionAsync(string connectionId, string methodName, object[] args, System.Threading.CancellationToken cancellationToken) => throw null; public virtual System.Threading.Tasks.Task SetConnectionResultAsync(string connectionId, Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage result) => throw null; public virtual bool TryGetReturnType(string invocationId, out System.Type type) => throw null; + protected HubLifetimeManager() => throw null; } - public class HubMetadata { public HubMetadata(System.Type hubType) => throw null; public System.Type HubType { get => throw null; } } - public class HubMethodNameAttribute : System.Attribute { public HubMethodNameAttribute(string name) => throw null; public string Name { get => throw null; } } - public class HubOptions { - public System.TimeSpan? ClientTimeoutInterval { get => throw null; set => throw null; } - public bool DisableImplicitFromServicesParameters { get => throw null; set => throw null; } - public bool? EnableDetailedErrors { get => throw null; set => throw null; } - public System.TimeSpan? HandshakeTimeout { get => throw null; set => throw null; } public HubOptions() => throw null; - public System.TimeSpan? KeepAliveInterval { get => throw null; set => throw null; } - public int MaximumParallelInvocationsPerClient { get => throw null; set => throw null; } - public System.Int64? MaximumReceiveMessageSize { get => throw null; set => throw null; } - public int? StreamBufferCapacity { get => throw null; set => throw null; } - public System.Collections.Generic.IList SupportedProtocols { get => throw null; set => throw null; } + public System.TimeSpan? HandshakeTimeout { get => throw null; set { } } + public System.TimeSpan? KeepAliveInterval { get => throw null; set { } } + public System.TimeSpan? ClientTimeoutInterval { get => throw null; set { } } + public System.Collections.Generic.IList SupportedProtocols { get => throw null; set { } } + public long? MaximumReceiveMessageSize { get => throw null; set { } } + public bool? EnableDetailedErrors { get => throw null; set { } } + public int? StreamBufferCapacity { get => throw null; set { } } + public int MaximumParallelInvocationsPerClient { get => throw null; set { } } + public bool DisableImplicitFromServicesParameters { get => throw null; set { } } } - public class HubOptions : Microsoft.AspNetCore.SignalR.HubOptions where THub : Microsoft.AspNetCore.SignalR.Hub { public HubOptions() => throw null; } - - public static class HubOptionsExtensions + public static partial class HubOptionsExtensions { public static void AddFilter(this Microsoft.AspNetCore.SignalR.HubOptions options, Microsoft.AspNetCore.SignalR.IHubFilter hubFilter) => throw null; - public static void AddFilter(this Microsoft.AspNetCore.SignalR.HubOptions options, System.Type filterType) => throw null; public static void AddFilter(this Microsoft.AspNetCore.SignalR.HubOptions options) where TFilter : Microsoft.AspNetCore.SignalR.IHubFilter => throw null; + public static void AddFilter(this Microsoft.AspNetCore.SignalR.HubOptions options, System.Type filterType) => throw null; } - public class HubOptionsSetup : Microsoft.Extensions.Options.IConfigureOptions { - public void Configure(Microsoft.AspNetCore.SignalR.HubOptions options) => throw null; public HubOptionsSetup(System.Collections.Generic.IEnumerable protocols) => throw null; + public void Configure(Microsoft.AspNetCore.SignalR.HubOptions options) => throw null; } - public class HubOptionsSetup : Microsoft.Extensions.Options.IConfigureOptions> where THub : Microsoft.AspNetCore.SignalR.Hub { - public void Configure(Microsoft.AspNetCore.SignalR.HubOptions options) => throw null; public HubOptionsSetup(Microsoft.Extensions.Options.IOptions options) => throw null; + public void Configure(Microsoft.AspNetCore.SignalR.HubOptions options) => throw null; } - public interface IClientProxy { - System.Threading.Tasks.Task SendCoreAsync(string method, object[] args, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SendCoreAsync(string method, object[] args, System.Threading.CancellationToken cancellationToken); } - public interface IGroupManager { - System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddToGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RemoveFromGroupAsync(string connectionId, string groupName, System.Threading.CancellationToken cancellationToken); } - public interface IHubActivator where THub : Microsoft.AspNetCore.SignalR.Hub { THub Create(); void Release(THub hub); } - public interface IHubCallerClients : Microsoft.AspNetCore.SignalR.IHubCallerClients, Microsoft.AspNetCore.SignalR.IHubClients { - Microsoft.AspNetCore.SignalR.ISingleClientProxy Caller { get => throw null; } - Microsoft.AspNetCore.SignalR.ISingleClientProxy Client(string connectionId) => throw null; + virtual Microsoft.AspNetCore.SignalR.ISingleClientProxy Client(string connectionId) => throw null; + virtual Microsoft.AspNetCore.SignalR.ISingleClientProxy Caller { get => throw null; } } - public interface IHubCallerClients : Microsoft.AspNetCore.SignalR.IHubClients { + T OthersInGroup(string groupName); T Caller { get; } T Others { get; } - T OthersInGroup(string groupName); } - public interface IHubClients : Microsoft.AspNetCore.SignalR.IHubClients { - Microsoft.AspNetCore.SignalR.ISingleClientProxy Client(string connectionId) => throw null; + virtual Microsoft.AspNetCore.SignalR.ISingleClientProxy Client(string connectionId) => throw null; } - public interface IHubClients { - T All { get; } T AllExcept(System.Collections.Generic.IReadOnlyList excludedConnectionIds); T Client(string connectionId); T Clients(System.Collections.Generic.IReadOnlyList connectionIds); T Group(string groupName); - T GroupExcept(string groupName, System.Collections.Generic.IReadOnlyList excludedConnectionIds); T Groups(System.Collections.Generic.IReadOnlyList groupNames); + T GroupExcept(string groupName, System.Collections.Generic.IReadOnlyList excludedConnectionIds); T User(string userId); T Users(System.Collections.Generic.IReadOnlyList userIds); + T All { get; } } - public interface IHubContext { Microsoft.AspNetCore.SignalR.IHubClients Clients { get; } Microsoft.AspNetCore.SignalR.IGroupManager Groups { get; } } - - public interface IHubContext where T : class where THub : Microsoft.AspNetCore.SignalR.Hub + public interface IHubContext where THub : Microsoft.AspNetCore.SignalR.Hub { - Microsoft.AspNetCore.SignalR.IHubClients Clients { get; } + Microsoft.AspNetCore.SignalR.IHubClients Clients { get; } Microsoft.AspNetCore.SignalR.IGroupManager Groups { get; } } - - public interface IHubContext where THub : Microsoft.AspNetCore.SignalR.Hub + public interface IHubContext where THub : Microsoft.AspNetCore.SignalR.Hub where T : class { - Microsoft.AspNetCore.SignalR.IHubClients Clients { get; } + Microsoft.AspNetCore.SignalR.IHubClients Clients { get; } Microsoft.AspNetCore.SignalR.IGroupManager Groups { get; } } - public interface IHubFilter { - System.Threading.Tasks.ValueTask InvokeMethodAsync(Microsoft.AspNetCore.SignalR.HubInvocationContext invocationContext, System.Func> next) => throw null; - System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.SignalR.HubLifetimeContext context, System.Func next) => throw null; - System.Threading.Tasks.Task OnDisconnectedAsync(Microsoft.AspNetCore.SignalR.HubLifetimeContext context, System.Exception exception, System.Func next) => throw null; + virtual System.Threading.Tasks.ValueTask InvokeMethodAsync(Microsoft.AspNetCore.SignalR.HubInvocationContext invocationContext, System.Func> next) => throw null; + virtual System.Threading.Tasks.Task OnConnectedAsync(Microsoft.AspNetCore.SignalR.HubLifetimeContext context, System.Func next) => throw null; + virtual System.Threading.Tasks.Task OnDisconnectedAsync(Microsoft.AspNetCore.SignalR.HubLifetimeContext context, System.Exception exception, System.Func next) => throw null; } - public interface IHubProtocolResolver { - System.Collections.Generic.IReadOnlyList AllProtocols { get; } Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol GetProtocol(string protocolName, System.Collections.Generic.IReadOnlyList supportedProtocols); + System.Collections.Generic.IReadOnlyList AllProtocols { get; } } - public interface ISignalRServerBuilder : Microsoft.AspNetCore.SignalR.ISignalRBuilder { } - public interface ISingleClientProxy : Microsoft.AspNetCore.SignalR.IClientProxy { System.Threading.Tasks.Task InvokeCoreAsync(string method, object[] args, System.Threading.CancellationToken cancellationToken); } - public interface IUserIdProvider { string GetUserId(Microsoft.AspNetCore.SignalR.HubConnectionContext connection); } - public class SerializedHubMessage { - public System.ReadOnlyMemory GetSerializedMessage(Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol) => throw null; - public Microsoft.AspNetCore.SignalR.Protocol.HubMessage Message { get => throw null; } - public SerializedHubMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; public SerializedHubMessage(System.Collections.Generic.IReadOnlyList messages) => throw null; + public SerializedHubMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; + public System.ReadOnlyMemory GetSerializedMessage(Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol) => throw null; + public Microsoft.AspNetCore.SignalR.Protocol.HubMessage Message { get => throw null; } } - public struct SerializedMessage { + public SerializedMessage(string protocolName, System.ReadOnlyMemory serialized) => throw null; public string ProtocolName { get => throw null; } - public System.ReadOnlyMemory Serialized { get => throw null; } - // Stub generator skipped constructor - public SerializedMessage(string protocolName, System.ReadOnlyMemory serialized) => throw null; + public System.ReadOnlyMemory Serialized { get => throw null; } } - - public static class SignalRConnectionBuilderExtensions + public static partial class SignalRConnectionBuilderExtensions { public static Microsoft.AspNetCore.Connections.IConnectionBuilder UseHub(this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder) where THub : Microsoft.AspNetCore.SignalR.Hub => throw null; } - } } namespace Extensions @@ -429,7 +383,6 @@ public static partial class SignalRDependencyInjectionExtensions { public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddSignalRCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Protocols.Json.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Protocols.Json.cs index ff4830b57eec2..b73730ff6f87e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Protocols.Json.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.Protocols.Json.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.SignalR.Protocols.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -10,24 +9,22 @@ namespace SignalR public class JsonHubProtocolOptions { public JsonHubProtocolOptions() => throw null; - public System.Text.Json.JsonSerializerOptions PayloadSerializerOptions { get => throw null; set => throw null; } + public System.Text.Json.JsonSerializerOptions PayloadSerializerOptions { get => throw null; set { } } } - namespace Protocol { - public class JsonHubProtocol : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol + public sealed class JsonHubProtocol : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol { - public System.ReadOnlyMemory GetMessageBytes(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; - public bool IsVersionSupported(int version) => throw null; public JsonHubProtocol() => throw null; public JsonHubProtocol(Microsoft.Extensions.Options.IOptions options) => throw null; + public bool IsVersionSupported(int version) => throw null; + public bool TryParseMessage(ref System.Buffers.ReadOnlySequence input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; + public void WriteMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Buffers.IBufferWriter output) => throw null; + public System.ReadOnlyMemory GetMessageBytes(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; public string Name { get => throw null; } - public Microsoft.AspNetCore.Connections.TransferFormat TransferFormat { get => throw null; } - public bool TryParseMessage(ref System.Buffers.ReadOnlySequence input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message) => throw null; public int Version { get => throw null; } - public void WriteMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Buffers.IBufferWriter output) => throw null; + public Microsoft.AspNetCore.Connections.TransferFormat TransferFormat { get => throw null; } } - } } } @@ -35,12 +32,11 @@ namespace Extensions { namespace DependencyInjection { - public static class JsonProtocolDependencyInjectionExtensions + public static partial class JsonProtocolDependencyInjectionExtensions { public static TBuilder AddJsonProtocol(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.SignalR.ISignalRBuilder => throw null; public static TBuilder AddJsonProtocol(this TBuilder builder, System.Action configure) where TBuilder : Microsoft.AspNetCore.SignalR.ISignalRBuilder => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.cs index 9eb2652e6dc33..23935f02f58e1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.SignalR.cs @@ -1,37 +1,32 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.SignalR, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public class HubEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder, Microsoft.AspNetCore.Builder.IHubEndpointConventionBuilder + public sealed class HubEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IHubEndpointConventionBuilder, Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { public void Add(System.Action convention) => throw null; public void Finally(System.Action finalConvention) => throw null; } - - public static class HubEndpointRouteBuilderExtensions + public static partial class HubEndpointRouteBuilderExtensions { public static Microsoft.AspNetCore.Builder.HubEndpointConventionBuilder MapHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern) where THub : Microsoft.AspNetCore.SignalR.Hub => throw null; public static Microsoft.AspNetCore.Builder.HubEndpointConventionBuilder MapHub(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, System.Action configureOptions) where THub : Microsoft.AspNetCore.SignalR.Hub => throw null; } - public interface IHubEndpointConventionBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder { } - } namespace SignalR { - public static class GetHttpContextExtensions + public static partial class GetHttpContextExtensions { public static Microsoft.AspNetCore.Http.HttpContext GetHttpContext(this Microsoft.AspNetCore.SignalR.HubCallerContext connection) => throw null; public static Microsoft.AspNetCore.Http.HttpContext GetHttpContext(this Microsoft.AspNetCore.SignalR.HubConnectionContext connection) => throw null; } - } } namespace Extensions @@ -44,7 +39,6 @@ public static partial class SignalRDependencyInjectionExtensions public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddSignalR(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddSignalR(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.StaticFiles.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.StaticFiles.cs index 6e68ef66b3682..f108653cfaf5c 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.StaticFiles.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.StaticFiles.cs @@ -1,84 +1,74 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.StaticFiles, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class DefaultFilesExtensions + public static partial class DefaultFilesExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DefaultFilesOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDefaultFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DefaultFilesOptions options) => throw null; } - public class DefaultFilesOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase { - public System.Collections.Generic.IList DefaultFileNames { get => throw null; set => throw null; } public DefaultFilesOptions() : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; public DefaultFilesOptions(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions sharedOptions) : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; + public System.Collections.Generic.IList DefaultFileNames { get => throw null; set { } } } - - public static class DirectoryBrowserExtensions + public static partial class DirectoryBrowserExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DirectoryBrowserOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDirectoryBrowser(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DirectoryBrowserOptions options) => throw null; } - public class DirectoryBrowserOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase { public DirectoryBrowserOptions() : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; public DirectoryBrowserOptions(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions sharedOptions) : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; - public Microsoft.AspNetCore.StaticFiles.IDirectoryFormatter Formatter { get => throw null; set => throw null; } + public Microsoft.AspNetCore.StaticFiles.IDirectoryFormatter Formatter { get => throw null; set { } } } - - public static class FileServerExtensions + public static partial class FileServerExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseFileServer(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseFileServer(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.FileServerOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseFileServer(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, bool enableDirectoryBrowsing) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseFileServer(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseFileServer(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.FileServerOptions options) => throw null; } - public class FileServerOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase { - public Microsoft.AspNetCore.Builder.DefaultFilesOptions DefaultFilesOptions { get => throw null; } - public Microsoft.AspNetCore.Builder.DirectoryBrowserOptions DirectoryBrowserOptions { get => throw null; } - public bool EnableDefaultFiles { get => throw null; set => throw null; } - public bool EnableDirectoryBrowsing { get => throw null; set => throw null; } public FileServerOptions() : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; public Microsoft.AspNetCore.Builder.StaticFileOptions StaticFileOptions { get => throw null; } + public Microsoft.AspNetCore.Builder.DirectoryBrowserOptions DirectoryBrowserOptions { get => throw null; } + public Microsoft.AspNetCore.Builder.DefaultFilesOptions DefaultFilesOptions { get => throw null; } + public bool EnableDirectoryBrowsing { get => throw null; set { } } + public bool EnableDefaultFiles { get => throw null; set { } } } - - public static class StaticFileExtensions + public static partial class StaticFileExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; - public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.StaticFileOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string requestPath) => throw null; + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStaticFiles(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.StaticFileOptions options) => throw null; } - public class StaticFileOptions : Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase { - public Microsoft.AspNetCore.StaticFiles.IContentTypeProvider ContentTypeProvider { get => throw null; set => throw null; } - public string DefaultContentType { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.Features.HttpsCompressionMode HttpsCompression { get => throw null; set => throw null; } - public System.Action OnPrepareResponse { get => throw null; set => throw null; } - public bool ServeUnknownFileTypes { get => throw null; set => throw null; } public StaticFileOptions() : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; public StaticFileOptions(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions sharedOptions) : base(default(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)) => throw null; + public Microsoft.AspNetCore.StaticFiles.IContentTypeProvider ContentTypeProvider { get => throw null; set { } } + public string DefaultContentType { get => throw null; set { } } + public bool ServeUnknownFileTypes { get => throw null; set { } } + public Microsoft.AspNetCore.Http.Features.HttpsCompressionMode HttpsCompression { get => throw null; set { } } + public System.Action OnPrepareResponse { get => throw null; set { } } } - - public static class StaticFilesEndpointRouteBuilderExtensions + public static partial class StaticFilesEndpointRouteBuilderExtensions { public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToFile(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string filePath) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToFile(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string filePath, Microsoft.AspNetCore.Builder.StaticFileOptions options) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToFile(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string filePath) => throw null; public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToFile(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string filePath, Microsoft.AspNetCore.Builder.StaticFileOptions options) => throw null; } - } namespace StaticFiles { @@ -87,70 +77,60 @@ public class DefaultFilesMiddleware public DefaultFilesMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class DirectoryBrowserMiddleware { - public DirectoryBrowserMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions options) => throw null; public DirectoryBrowserMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions options) => throw null; + public DirectoryBrowserMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, System.Text.Encodings.Web.HtmlEncoder encoder, Microsoft.Extensions.Options.IOptions options) => throw null; public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class FileExtensionContentTypeProvider : Microsoft.AspNetCore.StaticFiles.IContentTypeProvider { public FileExtensionContentTypeProvider() => throw null; public FileExtensionContentTypeProvider(System.Collections.Generic.IDictionary mapping) => throw null; - public System.Collections.Generic.IDictionary Mappings { get => throw null; } public bool TryGetContentType(string subpath, out string contentType) => throw null; + public System.Collections.Generic.IDictionary Mappings { get => throw null; } } - public class HtmlDirectoryFormatter : Microsoft.AspNetCore.StaticFiles.IDirectoryFormatter { - public virtual System.Threading.Tasks.Task GenerateContentAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IEnumerable contents) => throw null; public HtmlDirectoryFormatter(System.Text.Encodings.Web.HtmlEncoder encoder) => throw null; + public virtual System.Threading.Tasks.Task GenerateContentAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IEnumerable contents) => throw null; } - public interface IContentTypeProvider { bool TryGetContentType(string subpath, out string contentType); } - public interface IDirectoryFormatter { System.Threading.Tasks.Task GenerateContentAsync(Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IEnumerable contents); } - public class StaticFileMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public StaticFileMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - public class StaticFileResponseContext { + public StaticFileResponseContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.Extensions.FileProviders.IFileInfo file) => throw null; public Microsoft.AspNetCore.Http.HttpContext Context { get => throw null; } public Microsoft.Extensions.FileProviders.IFileInfo File { get => throw null; } - public StaticFileResponseContext(Microsoft.AspNetCore.Http.HttpContext context, Microsoft.Extensions.FileProviders.IFileInfo file) => throw null; } - namespace Infrastructure { public class SharedOptions { - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public bool RedirectToAppendTrailingSlash { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString RequestPath { get => throw null; set => throw null; } public SharedOptions() => throw null; + public Microsoft.AspNetCore.Http.PathString RequestPath { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } + public bool RedirectToAppendTrailingSlash { get => throw null; set { } } } - public abstract class SharedOptionsBase { - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public bool RedirectToAppendTrailingSlash { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Http.PathString RequestPath { get => throw null; set => throw null; } - protected Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions SharedOptions { get => throw null; } protected SharedOptionsBase(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions sharedOptions) => throw null; + protected Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions SharedOptions { get => throw null; } + public Microsoft.AspNetCore.Http.PathString RequestPath { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } + public bool RedirectToAppendTrailingSlash { get => throw null; set { } } } - } } } @@ -158,11 +138,10 @@ namespace Extensions { namespace DependencyInjection { - public static class DirectoryBrowserServiceExtensions + public static partial class DirectoryBrowserServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDirectoryBrowser(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebSockets.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebSockets.cs index 72f1e6ca3ca81..03ff665e27f2f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebSockets.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebSockets.cs @@ -1,48 +1,42 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.WebSockets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { namespace Builder { - public static class WebSocketMiddlewareExtensions + public static partial class WebSocketMiddlewareExtensions { public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets(this Microsoft.AspNetCore.Builder.IApplicationBuilder app) => throw null; public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseWebSockets(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.WebSocketOptions options) => throw null; } - public class WebSocketOptions { - public System.Collections.Generic.IList AllowedOrigins { get => throw null; } - public System.TimeSpan KeepAliveInterval { get => throw null; set => throw null; } - public int ReceiveBufferSize { get => throw null; set => throw null; } public WebSocketOptions() => throw null; + public System.TimeSpan KeepAliveInterval { get => throw null; set { } } + public int ReceiveBufferSize { get => throw null; set { } } + public System.Collections.Generic.IList AllowedOrigins { get => throw null; } } - } namespace WebSockets { public class ExtendedWebSocketAcceptContext : Microsoft.AspNetCore.Http.WebSocketAcceptContext { public ExtendedWebSocketAcceptContext() => throw null; - public System.TimeSpan? KeepAliveInterval { get => throw null; set => throw null; } - public int? ReceiveBufferSize { get => throw null; set => throw null; } - public override string SubProtocol { get => throw null; set => throw null; } + public override string SubProtocol { get => throw null; set { } } + public int? ReceiveBufferSize { get => throw null; set { } } + public System.TimeSpan? KeepAliveInterval { get => throw null; set { } } } - public class WebSocketMiddleware { - public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; public WebSocketMiddleware(Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public System.Threading.Tasks.Task Invoke(Microsoft.AspNetCore.Http.HttpContext context) => throw null; } - - public static class WebSocketsDependencyInjectionExtensions + public static partial class WebSocketsDependencyInjectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebSockets(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebUtilities.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebUtilities.cs index 8ffc0cbc62e8b..83ac236e1af9d 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebUtilities.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.WebUtilities.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore.WebUtilities, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,293 +8,265 @@ namespace WebUtilities { public static class Base64UrlTextEncoder { - public static System.Byte[] Decode(string text) => throw null; - public static string Encode(System.Byte[] data) => throw null; + public static string Encode(byte[] data) => throw null; + public static byte[] Decode(string text) => throw null; } - public class BufferedReadStream : System.IO.Stream { - public System.ArraySegment BufferedData { get => throw null; } public BufferedReadStream(System.IO.Stream inner, int bufferSize) => throw null; - public BufferedReadStream(System.IO.Stream inner, int bufferSize, System.Buffers.ArrayPool bytePool) => throw null; - public override bool CanRead { get => throw null; } - public override bool CanSeek { get => throw null; } - public override bool CanTimeout { get => throw null; } - public override bool CanWrite { get => throw null; } + public BufferedReadStream(System.IO.Stream inner, int bufferSize, System.Buffers.ArrayPool bytePool) => throw null; + public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null; + public override void SetLength(long value) => throw null; protected override void Dispose(bool disposing) => throw null; + public override void Flush() => throw null; + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public override void Write(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override int Read(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; public bool EnsureBuffered() => throw null; - public bool EnsureBuffered(int minCount) => throw null; public System.Threading.Tasks.Task EnsureBufferedAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public bool EnsureBuffered(int minCount) => throw null; public System.Threading.Tasks.Task EnsureBufferedAsync(int minCount, System.Threading.CancellationToken cancellationToken) => throw null; - public override void Flush() => throw null; - public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Int64 Length { get => throw null; } - public override System.Int64 Position { get => throw null; set => throw null; } - public override int Read(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task ReadAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; public string ReadLine(int lengthLimit) => throw null; public System.Threading.Tasks.Task ReadLineAsync(int lengthLimit, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin origin) => throw null; - public override void SetLength(System.Int64 value) => throw null; - public override void Write(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken) => throw null; - } - - public class FileBufferingReadStream : System.IO.Stream - { + public System.ArraySegment BufferedData { get => throw null; } public override bool CanRead { get => throw null; } public override bool CanSeek { get => throw null; } + public override bool CanTimeout { get => throw null; } public override bool CanWrite { get => throw null; } + public override long Length { get => throw null; } + public override long Position { get => throw null; set { } } + } + public class FileBufferingReadStream : System.IO.Stream + { + public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold) => throw null; + public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, long? bufferLimit, System.Func tempFileDirectoryAccessor) => throw null; + public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, long? bufferLimit, System.Func tempFileDirectoryAccessor, System.Buffers.ArrayPool bytePool) => throw null; + public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory) => throw null; + public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, long? bufferLimit, string tempFileDirectory, System.Buffers.ArrayPool bytePool) => throw null; + public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null; + public override int Read(System.Span buffer) => throw null; + public override int Read(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; + public override void Write(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override void SetLength(long value) => throw null; + public override void Flush() => throw null; public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) => throw null; protected override void Dispose(bool disposing) => throw null; public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold) => throw null; - public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, System.Int64? bufferLimit, System.Func tempFileDirectoryAccessor) => throw null; - public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, System.Int64? bufferLimit, System.Func tempFileDirectoryAccessor, System.Buffers.ArrayPool bytePool) => throw null; - public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, System.Int64? bufferLimit, string tempFileDirectory) => throw null; - public FileBufferingReadStream(System.IO.Stream inner, int memoryThreshold, System.Int64? bufferLimit, string tempFileDirectory, System.Buffers.ArrayPool bytePool) => throw null; - public override void Flush() => throw null; - public bool InMemory { get => throw null; } - public override System.Int64 Length { get => throw null; } public int MemoryThreshold { get => throw null; } - public override System.Int64 Position { get => throw null; set => throw null; } - public override int Read(System.Byte[] buffer, int offset, int count) => throw null; - public override int Read(System.Span buffer) => throw null; - public override System.Threading.Tasks.Task ReadAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin origin) => throw null; - public override void SetLength(System.Int64 value) => throw null; + public bool InMemory { get => throw null; } public string TempFileName { get => throw null; } - public override void Write(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken) => throw null; - } - - public class FileBufferingWriteStream : System.IO.Stream - { public override bool CanRead { get => throw null; } public override bool CanSeek { get => throw null; } public override bool CanWrite { get => throw null; } - protected override void Dispose(bool disposing) => throw null; - public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - public System.Threading.Tasks.Task DrainBufferAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public System.Threading.Tasks.Task DrainBufferAsync(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public FileBufferingWriteStream(int memoryThreshold = default(int), System.Int64? bufferLimit = default(System.Int64?), System.Func tempFileDirectoryAccessor = default(System.Func)) => throw null; + public override long Length { get => throw null; } + public override long Position { get => throw null; set { } } + } + public sealed class FileBufferingWriteStream : System.IO.Stream + { + public FileBufferingWriteStream(int memoryThreshold, long? bufferLimit, System.Func tempFileDirectoryAccessor) => throw null; + public override long Seek(long offset, System.IO.SeekOrigin origin) => throw null; + public override int Read(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; + public override void Write(byte[] buffer, int offset, int count) => throw null; + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken) => throw null; public override void Flush() => throw null; public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Int64 Length { get => throw null; } + public override void SetLength(long value) => throw null; + public System.Threading.Tasks.Task DrainBufferAsync(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken) => throw null; + public System.Threading.Tasks.Task DrainBufferAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken) => throw null; + protected override void Dispose(bool disposing) => throw null; + public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; public int MemoryThreshold { get => throw null; } - public override System.Int64 Position { get => throw null; set => throw null; } - public override int Read(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task ReadAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Int64 Seek(System.Int64 offset, System.IO.SeekOrigin origin) => throw null; - public override void SetLength(System.Int64 value) => throw null; - public override void Write(System.Byte[] buffer, int offset, int count) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) => throw null; - public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public override bool CanRead { get => throw null; } + public override bool CanSeek { get => throw null; } + public override bool CanWrite { get => throw null; } + public override long Length { get => throw null; } + public override long Position { get => throw null; set { } } } - public class FileMultipartSection { public FileMultipartSection(Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; public FileMultipartSection(Microsoft.AspNetCore.WebUtilities.MultipartSection section, Microsoft.Net.Http.Headers.ContentDispositionHeaderValue header) => throw null; - public string FileName { get => throw null; } + public Microsoft.AspNetCore.WebUtilities.MultipartSection Section { get => throw null; } public System.IO.Stream FileStream { get => throw null; } public string Name { get => throw null; } - public Microsoft.AspNetCore.WebUtilities.MultipartSection Section { get => throw null; } + public string FileName { get => throw null; } } - public class FormMultipartSection { public FormMultipartSection(Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; public FormMultipartSection(Microsoft.AspNetCore.WebUtilities.MultipartSection section, Microsoft.Net.Http.Headers.ContentDispositionHeaderValue header) => throw null; public System.Threading.Tasks.Task GetValueAsync() => throw null; public System.Threading.Tasks.ValueTask GetValueAsync(System.Threading.CancellationToken cancellationToken) => throw null; - public string Name { get => throw null; } public Microsoft.AspNetCore.WebUtilities.MultipartSection Section { get => throw null; } + public string Name { get => throw null; } } - public class FormPipeReader { public FormPipeReader(System.IO.Pipelines.PipeReader pipeReader) => throw null; public FormPipeReader(System.IO.Pipelines.PipeReader pipeReader, System.Text.Encoding encoding) => throw null; - public int KeyLengthLimit { get => throw null; set => throw null; } - public System.Threading.Tasks.Task> ReadFormAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public int ValueCountLimit { get => throw null; set => throw null; } - public int ValueLengthLimit { get => throw null; set => throw null; } + public System.Threading.Tasks.Task> ReadFormAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public int ValueCountLimit { get => throw null; set { } } + public int KeyLengthLimit { get => throw null; set { } } + public int ValueLengthLimit { get => throw null; set { } } } - public class FormReader : System.IDisposable { - public const int DefaultKeyLengthLimit = default; - public const int DefaultValueCountLimit = default; - public const int DefaultValueLengthLimit = default; - public void Dispose() => throw null; + public static int DefaultValueCountLimit; + public static int DefaultKeyLengthLimit; + public static int DefaultValueLengthLimit; + public FormReader(string data) => throw null; + public FormReader(string data, System.Buffers.ArrayPool charPool) => throw null; public FormReader(System.IO.Stream stream) => throw null; public FormReader(System.IO.Stream stream, System.Text.Encoding encoding) => throw null; - public FormReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Buffers.ArrayPool charPool) => throw null; - public FormReader(string data) => throw null; - public FormReader(string data, System.Buffers.ArrayPool charPool) => throw null; - public int KeyLengthLimit { get => throw null; set => throw null; } - public System.Collections.Generic.Dictionary ReadForm() => throw null; - public System.Threading.Tasks.Task> ReadFormAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public FormReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Buffers.ArrayPool charPool) => throw null; public System.Collections.Generic.KeyValuePair? ReadNextPair() => throw null; - public System.Threading.Tasks.Task?> ReadNextPairAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public int ValueCountLimit { get => throw null; set => throw null; } - public int ValueLengthLimit { get => throw null; set => throw null; } + public System.Threading.Tasks.Task?> ReadNextPairAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public System.Collections.Generic.Dictionary ReadForm() => throw null; + public System.Threading.Tasks.Task> ReadFormAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public void Dispose() => throw null; + public int ValueCountLimit { get => throw null; set { } } + public int KeyLengthLimit { get => throw null; set { } } + public int ValueLengthLimit { get => throw null; set { } } } - public class HttpRequestStreamReader : System.IO.TextReader { - protected override void Dispose(bool disposing) => throw null; public HttpRequestStreamReader(System.IO.Stream stream, System.Text.Encoding encoding) => throw null; public HttpRequestStreamReader(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) => throw null; - public HttpRequestStreamReader(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize, System.Buffers.ArrayPool bytePool, System.Buffers.ArrayPool charPool) => throw null; + public HttpRequestStreamReader(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize, System.Buffers.ArrayPool bytePool, System.Buffers.ArrayPool charPool) => throw null; + protected override void Dispose(bool disposing) => throw null; public override int Peek() => throw null; public override int Read() => throw null; - public override int Read(System.Char[] buffer, int index, int count) => throw null; - public override int Read(System.Span buffer) => throw null; - public override System.Threading.Tasks.Task ReadAsync(System.Char[] buffer, int index, int count) => throw null; - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override string ReadLine() => throw null; + public override int Read(char[] buffer, int index, int count) => throw null; + public override int Read(System.Span buffer) => throw null; + public override System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) => throw null; + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken) => throw null; public override System.Threading.Tasks.Task ReadLineAsync() => throw null; + public override string ReadLine() => throw null; public override System.Threading.Tasks.Task ReadToEndAsync() => throw null; } - public class HttpResponseStreamWriter : System.IO.TextWriter { - protected override void Dispose(bool disposing) => throw null; - public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - public override System.Text.Encoding Encoding { get => throw null; } - public override void Flush() => throw null; - public override System.Threading.Tasks.Task FlushAsync() => throw null; public HttpResponseStreamWriter(System.IO.Stream stream, System.Text.Encoding encoding) => throw null; public HttpResponseStreamWriter(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) => throw null; - public HttpResponseStreamWriter(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize, System.Buffers.ArrayPool bytePool, System.Buffers.ArrayPool charPool) => throw null; - public override void Write(System.Char[] values, int index, int count) => throw null; - public override void Write(System.ReadOnlySpan value) => throw null; - public override void Write(System.Char value) => throw null; + public HttpResponseStreamWriter(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize, System.Buffers.ArrayPool bytePool, System.Buffers.ArrayPool charPool) => throw null; + public override void Write(char value) => throw null; + public override void Write(char[] values, int index, int count) => throw null; + public override void Write(System.ReadOnlySpan value) => throw null; public override void Write(string value) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Char[] values, int index, int count) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task WriteAsync(System.Char value) => throw null; + public override void WriteLine(System.ReadOnlySpan value) => throw null; + public override System.Threading.Tasks.Task WriteAsync(char value) => throw null; + public override System.Threading.Tasks.Task WriteAsync(char[] values, int index, int count) => throw null; public override System.Threading.Tasks.Task WriteAsync(string value) => throw null; - public override void WriteLine(System.ReadOnlySpan value) => throw null; - public override System.Threading.Tasks.Task WriteLineAsync(System.Char[] values, int index, int count) => throw null; - public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public override System.Threading.Tasks.Task WriteLineAsync(System.Char value) => throw null; + public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory value, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory value, System.Threading.CancellationToken cancellationToken) => throw null; + public override System.Threading.Tasks.Task WriteLineAsync(char[] values, int index, int count) => throw null; + public override System.Threading.Tasks.Task WriteLineAsync(char value) => throw null; public override System.Threading.Tasks.Task WriteLineAsync(string value) => throw null; + public override void Flush() => throw null; + public override System.Threading.Tasks.Task FlushAsync() => throw null; + protected override void Dispose(bool disposing) => throw null; + public override System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + public override System.Text.Encoding Encoding { get => throw null; } } - public struct KeyValueAccumulator { public void Append(string key, string value) => throw null; public System.Collections.Generic.Dictionary GetResults() => throw null; public bool HasValues { get => throw null; } public int KeyCount { get => throw null; } - // Stub generator skipped constructor public int ValueCount { get => throw null; } } - public class MultipartReader { - public System.Int64? BodyLengthLimit { get => throw null; set => throw null; } - public const int DefaultHeadersCountLimit = default; - public const int DefaultHeadersLengthLimit = default; - public int HeadersCountLimit { get => throw null; set => throw null; } - public int HeadersLengthLimit { get => throw null; set => throw null; } + public static int DefaultHeadersCountLimit; + public static int DefaultHeadersLengthLimit; public MultipartReader(string boundary, System.IO.Stream stream) => throw null; public MultipartReader(string boundary, System.IO.Stream stream, int bufferSize) => throw null; - public System.Threading.Tasks.Task ReadNextSectionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public System.Threading.Tasks.Task ReadNextSectionAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public int HeadersCountLimit { get => throw null; set { } } + public int HeadersLengthLimit { get => throw null; set { } } + public long? BodyLengthLimit { get => throw null; set { } } } - public class MultipartSection { - public System.Int64? BaseStreamOffset { get => throw null; set => throw null; } - public System.IO.Stream Body { get => throw null; set => throw null; } - public string ContentDisposition { get => throw null; } - public string ContentType { get => throw null; } - public System.Collections.Generic.Dictionary Headers { get => throw null; set => throw null; } public MultipartSection() => throw null; + public string ContentType { get => throw null; } + public string ContentDisposition { get => throw null; } + public System.Collections.Generic.Dictionary Headers { get => throw null; set { } } + public System.IO.Stream Body { get => throw null; set { } } + public long? BaseStreamOffset { get => throw null; set { } } } - - public static class MultipartSectionConverterExtensions + public static partial class MultipartSectionConverterExtensions { public static Microsoft.AspNetCore.WebUtilities.FileMultipartSection AsFileSection(this Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; public static Microsoft.AspNetCore.WebUtilities.FormMultipartSection AsFormDataSection(this Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; public static Microsoft.Net.Http.Headers.ContentDispositionHeaderValue GetContentDispositionHeader(this Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; } - - public static class MultipartSectionStreamExtensions + public static partial class MultipartSectionStreamExtensions { public static System.Threading.Tasks.Task ReadAsStringAsync(this Microsoft.AspNetCore.WebUtilities.MultipartSection section) => throw null; public static System.Threading.Tasks.ValueTask ReadAsStringAsync(this Microsoft.AspNetCore.WebUtilities.MultipartSection section, System.Threading.CancellationToken cancellationToken) => throw null; } - public static class QueryHelpers { + public static string AddQueryString(string uri, string name, string value) => throw null; public static string AddQueryString(string uri, System.Collections.Generic.IDictionary queryString) => throw null; public static string AddQueryString(string uri, System.Collections.Generic.IEnumerable> queryString) => throw null; public static string AddQueryString(string uri, System.Collections.Generic.IEnumerable> queryString) => throw null; - public static string AddQueryString(string uri, string name, string value) => throw null; - public static System.Collections.Generic.Dictionary ParseNullableQuery(string queryString) => throw null; public static System.Collections.Generic.Dictionary ParseQuery(string queryString) => throw null; + public static System.Collections.Generic.Dictionary ParseNullableQuery(string queryString) => throw null; + } + public static class ReasonPhrases + { + public static string GetReasonPhrase(int statusCode) => throw null; + } + public static partial class StreamHelperExtensions + { + public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, long? limit, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, System.Buffers.ArrayPool bytePool, long? limit, System.Threading.CancellationToken cancellationToken) => throw null; } - public struct QueryStringEnumerable { + public QueryStringEnumerable(string queryString) => throw null; + public QueryStringEnumerable(System.ReadOnlyMemory queryString) => throw null; + public Microsoft.AspNetCore.WebUtilities.QueryStringEnumerable.Enumerator GetEnumerator() => throw null; public struct EncodedNameValuePair { - public System.ReadOnlyMemory DecodeName() => throw null; - public System.ReadOnlyMemory DecodeValue() => throw null; - public System.ReadOnlyMemory EncodedName { get => throw null; } - // Stub generator skipped constructor - public System.ReadOnlyMemory EncodedValue { get => throw null; } + public System.ReadOnlyMemory DecodeName() => throw null; + public System.ReadOnlyMemory DecodeValue() => throw null; + public System.ReadOnlyMemory EncodedName { get => throw null; } + public System.ReadOnlyMemory EncodedValue { get => throw null; } } - - public struct Enumerator { - public Microsoft.AspNetCore.WebUtilities.QueryStringEnumerable.EncodedNameValuePair Current { get => throw null; } - // Stub generator skipped constructor public bool MoveNext() => throw null; + public Microsoft.AspNetCore.WebUtilities.QueryStringEnumerable.EncodedNameValuePair Current { get => throw null; } } - - - public Microsoft.AspNetCore.WebUtilities.QueryStringEnumerable.Enumerator GetEnumerator() => throw null; - // Stub generator skipped constructor - public QueryStringEnumerable(System.ReadOnlyMemory queryString) => throw null; - public QueryStringEnumerable(string queryString) => throw null; - } - - public static class ReasonPhrases - { - public static string GetReasonPhrase(int statusCode) => throw null; - } - - public static class StreamHelperExtensions - { - public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, System.Buffers.ArrayPool bytePool, System.Int64? limit, System.Threading.CancellationToken cancellationToken) => throw null; - public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) => throw null; - public static System.Threading.Tasks.Task DrainAsync(this System.IO.Stream stream, System.Int64? limit, System.Threading.CancellationToken cancellationToken) => throw null; } - public static class WebEncoders { - public static System.Byte[] Base64UrlDecode(string input) => throw null; - public static System.Byte[] Base64UrlDecode(string input, int offset, System.Char[] buffer, int bufferOffset, int count) => throw null; - public static System.Byte[] Base64UrlDecode(string input, int offset, int count) => throw null; - public static string Base64UrlEncode(System.Byte[] input) => throw null; - public static int Base64UrlEncode(System.Byte[] input, int offset, System.Char[] output, int outputOffset, int count) => throw null; - public static string Base64UrlEncode(System.Byte[] input, int offset, int count) => throw null; - public static string Base64UrlEncode(System.ReadOnlySpan input) => throw null; + public static byte[] Base64UrlDecode(string input) => throw null; + public static byte[] Base64UrlDecode(string input, int offset, int count) => throw null; + public static byte[] Base64UrlDecode(string input, int offset, char[] buffer, int bufferOffset, int count) => throw null; public static int GetArraySizeRequiredToDecode(int count) => throw null; + public static string Base64UrlEncode(byte[] input) => throw null; + public static string Base64UrlEncode(byte[] input, int offset, int count) => throw null; + public static int Base64UrlEncode(byte[] input, int offset, char[] output, int outputOffset, int count) => throw null; public static int GetArraySizeRequiredToEncode(int count) => throw null; + public static string Base64UrlEncode(System.ReadOnlySpan input) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.cs index be27bb030ef22..7bd0e73db150b 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.cs @@ -1,114 +1,106 @@ // This file contains auto-generated code. // Generated from `Microsoft.AspNetCore, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore { public static class WebHost { - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder() => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder(string[] args) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder(string[] args) where TStartup : class => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHost Start(System.Action routeBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHost Start(Microsoft.AspNetCore.Http.RequestDelegate app) => throw null; - public static Microsoft.AspNetCore.Hosting.IWebHost Start(string url, System.Action routeBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHost Start(string url, Microsoft.AspNetCore.Http.RequestDelegate app) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHost Start(System.Action routeBuilder) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHost Start(string url, System.Action routeBuilder) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHost StartWith(System.Action app) => throw null; public static Microsoft.AspNetCore.Hosting.IWebHost StartWith(string url, System.Action app) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder() => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder(string[] args) => throw null; + public static Microsoft.AspNetCore.Hosting.IWebHostBuilder CreateDefaultBuilder(string[] args) where TStartup : class => throw null; } - namespace Builder { - public class ConfigureHostBuilder : Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsConfigureWebHost, Microsoft.Extensions.Hosting.IHostBuilder + public sealed class ConfigureHostBuilder : Microsoft.Extensions.Hosting.IHostBuilder, Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsConfigureWebHost { Microsoft.Extensions.Hosting.IHost Microsoft.Extensions.Hosting.IHostBuilder.Build() => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices(System.Action configureDelegate) => throw null; + public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory) => throw null; + public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory) => throw null; Microsoft.Extensions.Hosting.IHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsConfigureWebHost.ConfigureWebHost(System.Action configure, System.Action configureOptions) => throw null; public System.Collections.Generic.IDictionary Properties { get => throw null; } - public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory) => throw null; - public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory) => throw null; } - - public class ConfigureWebHostBuilder : Microsoft.AspNetCore.Hosting.IWebHostBuilder, Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup + public sealed class ConfigureWebHostBuilder : Microsoft.AspNetCore.Hosting.IWebHostBuilder, Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup { Microsoft.AspNetCore.Hosting.IWebHost Microsoft.AspNetCore.Hosting.IWebHostBuilder.Build() => throw null; - Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.Configure(System.Action configure) => throw null; - Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.Configure(System.Action configure) => throw null; public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureAppConfiguration(System.Action configureDelegate) => throw null; - public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; + public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureServices(System.Action configureServices) => throw null; public string GetSetting(string key) => throw null; public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseSetting(string key, string value) => throw null; + Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.Configure(System.Action configure) => throw null; + Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.Configure(System.Action configure) => throw null; Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.UseStartup(System.Type startupType) => throw null; Microsoft.AspNetCore.Hosting.IWebHostBuilder Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsStartup.UseStartup(System.Func startupFactory) => throw null; } - - public class WebApplication : Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Routing.IEndpointRouteBuilder, Microsoft.Extensions.Hosting.IHost, System.IAsyncDisposable, System.IDisposable + public sealed class WebApplication : Microsoft.Extensions.Hosting.IHost, System.IDisposable, Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Routing.IEndpointRouteBuilder, System.IAsyncDisposable { - System.IServiceProvider Microsoft.AspNetCore.Builder.IApplicationBuilder.ApplicationServices { get => throw null; set => throw null; } - Microsoft.AspNetCore.Http.RequestDelegate Microsoft.AspNetCore.Builder.IApplicationBuilder.Build() => throw null; - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; } - public static Microsoft.AspNetCore.Builder.WebApplication Create(string[] args = default(string[])) => throw null; - Microsoft.AspNetCore.Builder.IApplicationBuilder Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.CreateApplicationBuilder() => throw null; + public static Microsoft.AspNetCore.Builder.WebApplication Create(string[] args) => throw null; public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder() => throw null; public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder(string[] args) => throw null; public static Microsoft.AspNetCore.Builder.WebApplicationBuilder CreateBuilder(Microsoft.AspNetCore.Builder.WebApplicationOptions options) => throw null; - System.Collections.Generic.ICollection Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.DataSources { get => throw null; } + public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public System.Threading.Tasks.Task RunAsync(string url) => throw null; + public void Run(string url) => throw null; void System.IDisposable.Dispose() => throw null; public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + Microsoft.AspNetCore.Http.RequestDelegate Microsoft.AspNetCore.Builder.IApplicationBuilder.Build() => throw null; + Microsoft.AspNetCore.Builder.IApplicationBuilder Microsoft.AspNetCore.Builder.IApplicationBuilder.New() => throw null; + public Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware) => throw null; + Microsoft.AspNetCore.Builder.IApplicationBuilder Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.CreateApplicationBuilder() => throw null; + public System.IServiceProvider Services { get => throw null; } + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; } public Microsoft.AspNetCore.Hosting.IWebHostEnvironment Environment { get => throw null; } public Microsoft.Extensions.Hosting.IHostApplicationLifetime Lifetime { get => throw null; } public Microsoft.Extensions.Logging.ILogger Logger { get => throw null; } - Microsoft.AspNetCore.Builder.IApplicationBuilder Microsoft.AspNetCore.Builder.IApplicationBuilder.New() => throw null; - System.Collections.Generic.IDictionary Microsoft.AspNetCore.Builder.IApplicationBuilder.Properties { get => throw null; } - public void Run(string url = default(string)) => throw null; - public System.Threading.Tasks.Task RunAsync(string url = default(string)) => throw null; + public System.Collections.Generic.ICollection Urls { get => throw null; } + System.IServiceProvider Microsoft.AspNetCore.Builder.IApplicationBuilder.ApplicationServices { get => throw null; set { } } Microsoft.AspNetCore.Http.Features.IFeatureCollection Microsoft.AspNetCore.Builder.IApplicationBuilder.ServerFeatures { get => throw null; } + System.Collections.Generic.IDictionary Microsoft.AspNetCore.Builder.IApplicationBuilder.Properties { get => throw null; } + System.Collections.Generic.ICollection Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.DataSources { get => throw null; } System.IServiceProvider Microsoft.AspNetCore.Routing.IEndpointRouteBuilder.ServiceProvider { get => throw null; } - public System.IServiceProvider Services { get => throw null; } - public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public System.Collections.Generic.ICollection Urls { get => throw null; } - public Microsoft.AspNetCore.Builder.IApplicationBuilder Use(System.Func middleware) => throw null; } - - public class WebApplicationBuilder + public sealed class WebApplicationBuilder { public Microsoft.AspNetCore.Builder.WebApplication Build() => throw null; - public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; } public Microsoft.AspNetCore.Hosting.IWebHostEnvironment Environment { get => throw null; } - public Microsoft.AspNetCore.Builder.ConfigureHostBuilder Host { get => throw null; } - public Microsoft.Extensions.Logging.ILoggingBuilder Logging { get => throw null; } public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } + public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; } + public Microsoft.Extensions.Logging.ILoggingBuilder Logging { get => throw null; } public Microsoft.AspNetCore.Builder.ConfigureWebHostBuilder WebHost { get => throw null; } + public Microsoft.AspNetCore.Builder.ConfigureHostBuilder Host { get => throw null; } } - public class WebApplicationOptions { - public string ApplicationName { get => throw null; set => throw null; } - public string[] Args { get => throw null; set => throw null; } - public string ContentRootPath { get => throw null; set => throw null; } - public string EnvironmentName { get => throw null; set => throw null; } public WebApplicationOptions() => throw null; - public string WebRootPath { get => throw null; set => throw null; } + public string[] Args { get => throw null; set { } } + public string EnvironmentName { get => throw null; set { } } + public string ApplicationName { get => throw null; set { } } + public string ContentRootPath { get => throw null; set { } } + public string WebRootPath { get => throw null; set { } } } - } } namespace Extensions { namespace Hosting { - public static class GenericHostBuilderExtensions + public static partial class GenericHostBuilderExtensions { public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHostDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHostDefaults(this Microsoft.Extensions.Hosting.IHostBuilder builder, System.Action configure, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Abstractions.cs index 0dd4639daa738..149e9ff5e399e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Caching.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,49 +8,45 @@ namespace Caching { namespace Distributed { - public static class DistributedCacheEntryExtensions + public static partial class DistributedCacheEntryExtensions { public static Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions SetAbsoluteExpiration(this Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.DateTimeOffset absolute) => throw null; public static Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions SetAbsoluteExpiration(this Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.TimeSpan relative) => throw null; public static Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions SetSlidingExpiration(this Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.TimeSpan offset) => throw null; } - public class DistributedCacheEntryOptions { - public System.DateTimeOffset? AbsoluteExpiration { get => throw null; set => throw null; } - public System.TimeSpan? AbsoluteExpirationRelativeToNow { get => throw null; set => throw null; } public DistributedCacheEntryOptions() => throw null; - public System.TimeSpan? SlidingExpiration { get => throw null; set => throw null; } + public System.DateTimeOffset? AbsoluteExpiration { get => throw null; set { } } + public System.TimeSpan? AbsoluteExpirationRelativeToNow { get => throw null; set { } } + public System.TimeSpan? SlidingExpiration { get => throw null; set { } } } - - public static class DistributedCacheExtensions + public static partial class DistributedCacheExtensions { public static string GetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key) => throw null; - public static System.Threading.Tasks.Task GetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; - public static void Set(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, System.Byte[] value) => throw null; - public static System.Threading.Tasks.Task SetAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, System.Byte[] value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task GetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, System.Threading.CancellationToken token) => throw null; + public static void Set(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value) => throw null; + public static System.Threading.Tasks.Task SetAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value, System.Threading.CancellationToken token) => throw null; public static void SetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value) => throw null; public static void SetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; - public static System.Threading.Tasks.Task SetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task SetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task SetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token) => throw null; + public static System.Threading.Tasks.Task SetStringAsync(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, System.Threading.CancellationToken token) => throw null; } - public interface IDistributedCache { - System.Byte[] Get(string key); - System.Threading.Tasks.Task GetAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + byte[] Get(string key); + System.Threading.Tasks.Task GetAsync(string key, System.Threading.CancellationToken token); void Refresh(string key); - System.Threading.Tasks.Task RefreshAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task RefreshAsync(string key, System.Threading.CancellationToken token); void Remove(string key); - System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); - void Set(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options); - System.Threading.Tasks.Task SetAsync(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken token); + void Set(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options); + System.Threading.Tasks.Task SetAsync(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token); } - } namespace Memory { - public static class CacheEntryExtensions + public static partial class CacheEntryExtensions { public static Microsoft.Extensions.Caching.Memory.ICacheEntry AddExpirationToken(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Primitives.IChangeToken expirationToken) => throw null; public static Microsoft.Extensions.Caching.Memory.ICacheEntry RegisterPostEvictionCallback(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback) => throw null; @@ -60,43 +55,39 @@ public static class CacheEntryExtensions public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetAbsoluteExpiration(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, System.TimeSpan relative) => throw null; public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetOptions(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options) => throw null; public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetPriority(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority) => throw null; - public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSize(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, System.Int64 size) => throw null; + public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSize(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, long size) => throw null; public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSlidingExpiration(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, System.TimeSpan offset) => throw null; public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetValue(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, object value) => throw null; } - - public static class CacheExtensions + public static partial class CacheExtensions { public static object Get(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key) => throw null; - public static TItem Get(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key) => throw null; - public static TItem GetOrCreate(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func factory) => throw null; public static System.Threading.Tasks.Task GetOrCreateAsync(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func> factory) => throw null; + public static TItem GetOrCreate(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func factory) => throw null; + public static TItem Get(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key) => throw null; public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value) => throw null; - public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, System.DateTimeOffset absoluteExpiration) => throw null; - public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, Microsoft.Extensions.Primitives.IChangeToken expirationToken) => throw null; public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options) => throw null; + public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, Microsoft.Extensions.Primitives.IChangeToken expirationToken) => throw null; + public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, System.DateTimeOffset absoluteExpiration) => throw null; public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value, System.TimeSpan absoluteExpirationRelativeToNow) => throw null; public static bool TryGetValue(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, out TItem value) => throw null; } - - public enum CacheItemPriority : int + public enum CacheItemPriority { - High = 2, Low = 0, - NeverRemove = 3, Normal = 1, + High = 2, + NeverRemove = 3, } - - public enum EvictionReason : int + public enum EvictionReason { - Capacity = 5, - Expired = 3, None = 0, Removed = 1, Replaced = 2, + Expired = 3, TokenExpired = 4, + Capacity = 5, } - public interface ICacheEntry : System.IDisposable { System.DateTimeOffset? AbsoluteExpiration { get; set; } @@ -105,20 +96,18 @@ public interface ICacheEntry : System.IDisposable object Key { get; } System.Collections.Generic.IList PostEvictionCallbacks { get; } Microsoft.Extensions.Caching.Memory.CacheItemPriority Priority { get; set; } - System.Int64? Size { get; set; } + long? Size { get; set; } System.TimeSpan? SlidingExpiration { get; set; } object Value { get; set; } } - public interface IMemoryCache : System.IDisposable { Microsoft.Extensions.Caching.Memory.ICacheEntry CreateEntry(object key); - Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics GetCurrentStatistics() => throw null; void Remove(object key); bool TryGetValue(object key, out object value); + virtual Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics GetCurrentStatistics() => throw null; } - - public static class MemoryCacheEntryExtensions + public static partial class MemoryCacheEntryExtensions { public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions AddExpirationToken(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Primitives.IChangeToken expirationToken) => throw null; public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback) => throw null; @@ -126,40 +115,35 @@ public static class MemoryCacheEntryExtensions public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetAbsoluteExpiration(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, System.DateTimeOffset absolute) => throw null; public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetAbsoluteExpiration(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, System.TimeSpan relative) => throw null; public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetPriority(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority) => throw null; - public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetSize(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, System.Int64 size) => throw null; + public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetSize(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, long size) => throw null; public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetSlidingExpiration(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, System.TimeSpan offset) => throw null; } - public class MemoryCacheEntryOptions { - public System.DateTimeOffset? AbsoluteExpiration { get => throw null; set => throw null; } - public System.TimeSpan? AbsoluteExpirationRelativeToNow { get => throw null; set => throw null; } - public System.Collections.Generic.IList ExpirationTokens { get => throw null; } public MemoryCacheEntryOptions() => throw null; + public System.DateTimeOffset? AbsoluteExpiration { get => throw null; set { } } + public System.TimeSpan? AbsoluteExpirationRelativeToNow { get => throw null; set { } } + public System.Collections.Generic.IList ExpirationTokens { get => throw null; } public System.Collections.Generic.IList PostEvictionCallbacks { get => throw null; } - public Microsoft.Extensions.Caching.Memory.CacheItemPriority Priority { get => throw null; set => throw null; } - public System.Int64? Size { get => throw null; set => throw null; } - public System.TimeSpan? SlidingExpiration { get => throw null; set => throw null; } + public Microsoft.Extensions.Caching.Memory.CacheItemPriority Priority { get => throw null; set { } } + public long? Size { get => throw null; set { } } + public System.TimeSpan? SlidingExpiration { get => throw null; set { } } } - public class MemoryCacheStatistics { - public System.Int64 CurrentEntryCount { get => throw null; set => throw null; } - public System.Int64? CurrentEstimatedSize { get => throw null; set => throw null; } public MemoryCacheStatistics() => throw null; - public System.Int64 TotalHits { get => throw null; set => throw null; } - public System.Int64 TotalMisses { get => throw null; set => throw null; } + public long CurrentEntryCount { get => throw null; set { } } + public long? CurrentEstimatedSize { get => throw null; set { } } + public long TotalHits { get => throw null; set { } } + public long TotalMisses { get => throw null; set { } } } - public class PostEvictionCallbackRegistration { - public Microsoft.Extensions.Caching.Memory.PostEvictionDelegate EvictionCallback { get => throw null; set => throw null; } public PostEvictionCallbackRegistration() => throw null; - public object State { get => throw null; set => throw null; } + public Microsoft.Extensions.Caching.Memory.PostEvictionDelegate EvictionCallback { get => throw null; set { } } + public object State { get => throw null; set { } } } - public delegate void PostEvictionDelegate(object key, object value, Microsoft.Extensions.Caching.Memory.EvictionReason reason, object state); - } } namespace Internal @@ -168,13 +152,11 @@ public interface ISystemClock { System.DateTimeOffset UtcNow { get; } } - public class SystemClock : Microsoft.Extensions.Internal.ISystemClock { public SystemClock() => throw null; public System.DateTimeOffset UtcNow { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Memory.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Memory.cs index c6e3f69b3c5b8..c319c02f75c7a 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Memory.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Caching.Memory.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Caching.Memory, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -11,66 +10,60 @@ namespace Distributed { public class MemoryDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache { - public System.Byte[] Get(string key) => throw null; - public System.Threading.Tasks.Task GetAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; public MemoryDistributedCache(Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; public MemoryDistributedCache(Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; + public byte[] Get(string key) => throw null; + public System.Threading.Tasks.Task GetAsync(string key, System.Threading.CancellationToken token) => throw null; public void Refresh(string key) => throw null; - public System.Threading.Tasks.Task RefreshAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public System.Threading.Tasks.Task RefreshAsync(string key, System.Threading.CancellationToken token) => throw null; public void Remove(string key) => throw null; - public System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; - public void Set(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; - public System.Threading.Tasks.Task SetAsync(string key, System.Byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public System.Threading.Tasks.Task RemoveAsync(string key, System.Threading.CancellationToken token) => throw null; + public void Set(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options) => throw null; + public System.Threading.Tasks.Task SetAsync(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token) => throw null; } - } namespace Memory { public class MemoryCache : Microsoft.Extensions.Caching.Memory.IMemoryCache, System.IDisposable { + public MemoryCache(Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; + public MemoryCache(Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public void Clear() => throw null; public void Compact(double percentage) => throw null; - public int Count { get => throw null; } public Microsoft.Extensions.Caching.Memory.ICacheEntry CreateEntry(object key) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; public Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics GetCurrentStatistics() => throw null; - public MemoryCache(Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; - public MemoryCache(Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; public void Remove(object key) => throw null; public bool TryGetValue(object key, out object result) => throw null; - // ERR: Stub generator didn't handle member: ~MemoryCache + public int Count { get => throw null; } } - public class MemoryCacheOptions : Microsoft.Extensions.Options.IOptions { - public Microsoft.Extensions.Internal.ISystemClock Clock { get => throw null; set => throw null; } - public double CompactionPercentage { get => throw null; set => throw null; } - public System.TimeSpan ExpirationScanFrequency { get => throw null; set => throw null; } public MemoryCacheOptions() => throw null; - public System.Int64? SizeLimit { get => throw null; set => throw null; } - public bool TrackLinkedCacheEntries { get => throw null; set => throw null; } - public bool TrackStatistics { get => throw null; set => throw null; } + public Microsoft.Extensions.Internal.ISystemClock Clock { get => throw null; set { } } + public double CompactionPercentage { get => throw null; set { } } + public System.TimeSpan ExpirationScanFrequency { get => throw null; set { } } Microsoft.Extensions.Caching.Memory.MemoryCacheOptions Microsoft.Extensions.Options.IOptions.Value { get => throw null; } + public long? SizeLimit { get => throw null; set { } } + public bool TrackLinkedCacheEntries { get => throw null; set { } } + public bool TrackStatistics { get => throw null; set { } } } - public class MemoryDistributedCacheOptions : Microsoft.Extensions.Caching.Memory.MemoryCacheOptions { public MemoryDistributedCacheOptions() => throw null; } - } } namespace DependencyInjection { - public static class MemoryCacheServiceCollectionExtensions + public static partial class MemoryCacheServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDistributedMemoryCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDistributedMemoryCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMemoryCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMemoryCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Abstractions.cs index 8018c018121d9..4c7e18efc1eb2 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Abstractions.cs @@ -1,23 +1,12 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public struct ConfigurationDebugViewContext - { - // Stub generator skipped constructor - public ConfigurationDebugViewContext(string path, string key, string value, Microsoft.Extensions.Configuration.IConfigurationProvider configurationProvider) => throw null; - public Microsoft.Extensions.Configuration.IConfigurationProvider ConfigurationProvider { get => throw null; } - public string Key { get => throw null; } - public string Path { get => throw null; } - public string Value { get => throw null; } - } - - public static class ConfigurationExtensions + public static partial class ConfigurationExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder Add(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) where TSource : Microsoft.Extensions.Configuration.IConfigurationSource, new() => throw null; public static System.Collections.Generic.IEnumerable> AsEnumerable(this Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; @@ -26,28 +15,32 @@ public static class ConfigurationExtensions public static string GetConnectionString(this Microsoft.Extensions.Configuration.IConfiguration configuration, string name) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationSection GetRequiredSection(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key) => throw null; } - - public class ConfigurationKeyNameAttribute : System.Attribute + public sealed class ConfigurationKeyNameAttribute : System.Attribute { public ConfigurationKeyNameAttribute(string name) => throw null; public string Name { get => throw null; } } - public static class ConfigurationPath { + public static string KeyDelimiter; public static string Combine(System.Collections.Generic.IEnumerable pathSegments) => throw null; public static string Combine(params string[] pathSegments) => throw null; public static string GetParentPath(string path) => throw null; public static string GetSectionKey(string path) => throw null; - public static string KeyDelimiter; } - - public static class ConfigurationRootExtensions + public static partial class ConfigurationRootExtensions { public static string GetDebugView(this Microsoft.Extensions.Configuration.IConfigurationRoot root) => throw null; public static string GetDebugView(this Microsoft.Extensions.Configuration.IConfigurationRoot root, System.Func processValue) => throw null; } - + public struct ConfigurationDebugViewContext + { + public ConfigurationDebugViewContext(string path, string key, string value, Microsoft.Extensions.Configuration.IConfigurationProvider configurationProvider) => throw null; + public string Path { get => throw null; } + public string Key { get => throw null; } + public string Value { get => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationProvider ConfigurationProvider { get => throw null; } + } public interface IConfiguration { System.Collections.Generic.IEnumerable GetChildren(); @@ -55,7 +48,6 @@ public interface IConfiguration Microsoft.Extensions.Configuration.IConfigurationSection GetSection(string key); string this[string key] { get; set; } } - public interface IConfigurationBuilder { Microsoft.Extensions.Configuration.IConfigurationBuilder Add(Microsoft.Extensions.Configuration.IConfigurationSource source); @@ -63,7 +55,6 @@ public interface IConfigurationBuilder System.Collections.Generic.IDictionary Properties { get; } System.Collections.Generic.IList Sources { get; } } - public interface IConfigurationProvider { System.Collections.Generic.IEnumerable GetChildKeys(System.Collections.Generic.IEnumerable earlierKeys, string parentPath); @@ -72,25 +63,21 @@ public interface IConfigurationProvider void Set(string key, string value); bool TryGet(string key, out string value); } - public interface IConfigurationRoot : Microsoft.Extensions.Configuration.IConfiguration { - System.Collections.Generic.IEnumerable Providers { get; } void Reload(); + System.Collections.Generic.IEnumerable Providers { get; } } - public interface IConfigurationSection : Microsoft.Extensions.Configuration.IConfiguration { string Key { get; } string Path { get; } string Value { get; set; } } - public interface IConfigurationSource { Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder); } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Binder.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Binder.cs index cec4928949413..d4a3d54790d4f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Binder.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Binder.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.Binder, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,11 +8,10 @@ namespace Configuration { public class BinderOptions { - public bool BindNonPublicProperties { get => throw null; set => throw null; } public BinderOptions() => throw null; - public bool ErrorOnUnknownConfiguration { get => throw null; set => throw null; } + public bool BindNonPublicProperties { get => throw null; set { } } + public bool ErrorOnUnknownConfiguration { get => throw null; set { } } } - public static class ConfigurationBinder { public static void Bind(this Microsoft.Extensions.Configuration.IConfiguration configuration, object instance) => throw null; @@ -21,14 +19,13 @@ public static class ConfigurationBinder public static void Bind(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key, object instance) => throw null; public static object Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Type type) => throw null; public static object Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Type type, System.Action configureOptions) => throw null; - public static T Get(this Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; - public static T Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Action configureOptions) => throw null; public static object GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Type type, string key) => throw null; public static object GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Type type, string key, object defaultValue) => throw null; public static T GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key) => throw null; public static T GetValue(this Microsoft.Extensions.Configuration.IConfiguration configuration, string key, T defaultValue) => throw null; + public static T Get(this Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; + public static T Get(this Microsoft.Extensions.Configuration.IConfiguration configuration, System.Action configureOptions) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.CommandLine.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.CommandLine.cs index 19426be86bd2a..d7016c42f88f5 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.CommandLine.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.CommandLine.cs @@ -1,36 +1,32 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.CommandLine, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class CommandLineConfigurationExtensions + public static partial class CommandLineConfigurationExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string[] args) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string[] args, System.Collections.Generic.IDictionary switchMappings) => throw null; } - namespace CommandLine { public class CommandLineConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider { - protected System.Collections.Generic.IEnumerable Args { get => throw null; } - public CommandLineConfigurationProvider(System.Collections.Generic.IEnumerable args, System.Collections.Generic.IDictionary switchMappings = default(System.Collections.Generic.IDictionary)) => throw null; + public CommandLineConfigurationProvider(System.Collections.Generic.IEnumerable args, System.Collections.Generic.IDictionary switchMappings) => throw null; public override void Load() => throw null; + protected System.Collections.Generic.IEnumerable Args { get => throw null; } } - public class CommandLineConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public System.Collections.Generic.IEnumerable Args { get => throw null; set => throw null; } - public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public CommandLineConfigurationSource() => throw null; - public System.Collections.Generic.IDictionary SwitchMappings { get => throw null; set => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; + public System.Collections.Generic.IEnumerable Args { get => throw null; set { } } + public System.Collections.Generic.IDictionary SwitchMappings { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.EnvironmentVariables.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.EnvironmentVariables.cs index 532a50ee8d9c2..82667e093f162 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.EnvironmentVariables.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.EnvironmentVariables.cs @@ -1,19 +1,17 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.EnvironmentVariables, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class EnvironmentVariablesExtensions + public static partial class EnvironmentVariablesExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string prefix) => throw null; } - namespace EnvironmentVariables { public class EnvironmentVariablesConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider @@ -23,14 +21,12 @@ public class EnvironmentVariablesConfigurationProvider : Microsoft.Extensions.Co public override void Load() => throw null; public override string ToString() => throw null; } - public class EnvironmentVariablesConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public EnvironmentVariablesConfigurationSource() => throw null; - public string Prefix { get => throw null; set => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; + public string Prefix { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.FileExtensions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.FileExtensions.cs index e6c8244ac6236..348276d0a24e7 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.FileExtensions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.FileExtensions.cs @@ -1,13 +1,12 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.FileExtensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class FileConfigurationExtensions + public static partial class FileConfigurationExtensions { public static System.Action GetFileLoadExceptionHandler(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public static Microsoft.Extensions.FileProviders.IFileProvider GetFileProvider(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; @@ -15,40 +14,36 @@ public static class FileConfigurationExtensions public static Microsoft.Extensions.Configuration.IConfigurationBuilder SetFileLoadExceptionHandler(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action handler) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder SetFileProvider(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider fileProvider) => throw null; } - public abstract class FileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, System.IDisposable { + public FileConfigurationProvider(Microsoft.Extensions.Configuration.FileConfigurationSource source) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public FileConfigurationProvider(Microsoft.Extensions.Configuration.FileConfigurationSource source) => throw null; public override void Load() => throw null; public abstract void Load(System.IO.Stream stream); - public Microsoft.Extensions.Configuration.FileConfigurationSource Source { get => throw null; } public override string ToString() => throw null; + public Microsoft.Extensions.Configuration.FileConfigurationSource Source { get => throw null; } } - public abstract class FileConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { + protected FileConfigurationSource() => throw null; public abstract Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder); public void EnsureDefaults(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; - protected FileConfigurationSource() => throw null; - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public System.Action OnLoadException { get => throw null; set => throw null; } - public bool Optional { get => throw null; set => throw null; } - public string Path { get => throw null; set => throw null; } - public int ReloadDelay { get => throw null; set => throw null; } - public bool ReloadOnChange { get => throw null; set => throw null; } public void ResolveFileProvider() => throw null; + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } + public System.Action OnLoadException { get => throw null; set { } } + public bool Optional { get => throw null; set { } } + public string Path { get => throw null; set { } } + public int ReloadDelay { get => throw null; set { } } + public bool ReloadOnChange { get => throw null; set { } } } - public class FileLoadExceptionContext { - public System.Exception Exception { get => throw null; set => throw null; } public FileLoadExceptionContext() => throw null; - public bool Ignore { get => throw null; set => throw null; } - public Microsoft.Extensions.Configuration.FileConfigurationProvider Provider { get => throw null; set => throw null; } + public System.Exception Exception { get => throw null; set { } } + public bool Ignore { get => throw null; set { } } + public Microsoft.Extensions.Configuration.FileConfigurationProvider Provider { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Ini.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Ini.cs index 781201b7ff329..61ac971b10651 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Ini.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Ini.cs @@ -1,22 +1,20 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.Ini, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class IniConfigurationExtensions + public static partial class IniConfigurationExtensions { - public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider provider, string path, bool optional, bool reloadOnChange) => throw null; + public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniStream(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.IO.Stream stream) => throw null; } - namespace Ini { public class IniConfigurationProvider : Microsoft.Extensions.Configuration.FileConfigurationProvider @@ -24,26 +22,22 @@ public class IniConfigurationProvider : Microsoft.Extensions.Configuration.FileC public IniConfigurationProvider(Microsoft.Extensions.Configuration.Ini.IniConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.FileConfigurationSource)) => throw null; public override void Load(System.IO.Stream stream) => throw null; } - public class IniConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public IniConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - public class IniStreamConfigurationProvider : Microsoft.Extensions.Configuration.StreamConfigurationProvider { public IniStreamConfigurationProvider(Microsoft.Extensions.Configuration.Ini.IniStreamConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.StreamConfigurationSource)) => throw null; public override void Load(System.IO.Stream stream) => throw null; public static System.Collections.Generic.IDictionary Read(System.IO.Stream stream) => throw null; } - public class IniStreamConfigurationSource : Microsoft.Extensions.Configuration.StreamConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public IniStreamConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Json.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Json.cs index f506e72a30f10..4f84dbcae7ad1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Json.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Json.cs @@ -1,22 +1,20 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class JsonConfigurationExtensions + public static partial class JsonConfigurationExtensions { - public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider provider, string path, bool optional, bool reloadOnChange) => throw null; + public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddJsonStream(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.IO.Stream stream) => throw null; } - namespace Json { public class JsonConfigurationProvider : Microsoft.Extensions.Configuration.FileConfigurationProvider @@ -24,25 +22,21 @@ public class JsonConfigurationProvider : Microsoft.Extensions.Configuration.File public JsonConfigurationProvider(Microsoft.Extensions.Configuration.Json.JsonConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.FileConfigurationSource)) => throw null; public override void Load(System.IO.Stream stream) => throw null; } - public class JsonConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public JsonConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - public class JsonStreamConfigurationProvider : Microsoft.Extensions.Configuration.StreamConfigurationProvider { public JsonStreamConfigurationProvider(Microsoft.Extensions.Configuration.Json.JsonStreamConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.StreamConfigurationSource)) => throw null; public override void Load(System.IO.Stream stream) => throw null; } - public class JsonStreamConfigurationSource : Microsoft.Extensions.Configuration.StreamConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public JsonStreamConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.KeyPerFile.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.KeyPerFile.cs index 44168c165bf24..eca2f46b4e3fd 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.KeyPerFile.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.KeyPerFile.cs @@ -1,43 +1,39 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.KeyPerFile, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class KeyPerFileConfigurationBuilderExtensions + public static partial class KeyPerFileConfigurationBuilderExtensions { - public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddKeyPerFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddKeyPerFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string directoryPath) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddKeyPerFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string directoryPath, bool optional) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddKeyPerFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string directoryPath, bool optional, bool reloadOnChange) => throw null; + public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddKeyPerFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; } - namespace KeyPerFile { public class KeyPerFileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, System.IDisposable { - public void Dispose() => throw null; public KeyPerFileConfigurationProvider(Microsoft.Extensions.Configuration.KeyPerFile.KeyPerFileConfigurationSource source) => throw null; public override void Load() => throw null; public override string ToString() => throw null; + public void Dispose() => throw null; } - public class KeyPerFileConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; - public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set => throw null; } - public System.Func IgnoreCondition { get => throw null; set => throw null; } - public string IgnorePrefix { get => throw null; set => throw null; } public KeyPerFileConfigurationSource() => throw null; - public bool Optional { get => throw null; set => throw null; } - public int ReloadDelay { get => throw null; set => throw null; } - public bool ReloadOnChange { get => throw null; set => throw null; } - public string SectionDelimiter { get => throw null; set => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; + public Microsoft.Extensions.FileProviders.IFileProvider FileProvider { get => throw null; set { } } + public string IgnorePrefix { get => throw null; set { } } + public System.Func IgnoreCondition { get => throw null; set { } } + public bool Optional { get => throw null; set { } } + public bool ReloadOnChange { get => throw null; set { } } + public int ReloadDelay { get => throw null; set { } } + public string SectionDelimiter { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.UserSecrets.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.UserSecrets.cs index c19f4ae088033..6b1a73e750a6e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.UserSecrets.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.UserSecrets.cs @@ -1,13 +1,12 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.UserSecrets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class UserSecretsConfigurationExtensions + public static partial class UserSecretsConfigurationExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddUserSecrets(this Microsoft.Extensions.Configuration.IConfigurationBuilder configuration, System.Reflection.Assembly assembly) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddUserSecrets(this Microsoft.Extensions.Configuration.IConfigurationBuilder configuration, System.Reflection.Assembly assembly, bool optional) => throw null; @@ -18,21 +17,18 @@ public static class UserSecretsConfigurationExtensions public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddUserSecrets(this Microsoft.Extensions.Configuration.IConfigurationBuilder configuration, bool optional) where T : class => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddUserSecrets(this Microsoft.Extensions.Configuration.IConfigurationBuilder configuration, bool optional, bool reloadOnChange) where T : class => throw null; } - namespace UserSecrets { public class PathHelper { - public static string GetSecretsPathFromSecretsId(string userSecretsId) => throw null; public PathHelper() => throw null; + public static string GetSecretsPathFromSecretsId(string userSecretsId) => throw null; } - public class UserSecretsIdAttribute : System.Attribute { - public string UserSecretsId { get => throw null; } public UserSecretsIdAttribute(string userSecretId) => throw null; + public string UserSecretsId { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Xml.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Xml.cs index 34bceff70a47f..32959e3d82a30 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Xml.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.Xml.cs @@ -1,57 +1,50 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration.Xml, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class XmlConfigurationExtensions + public static partial class XmlConfigurationExtensions { - public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider provider, string path, bool optional, bool reloadOnChange) => throw null; + public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.Action configureSource) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlFile(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddXmlStream(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.IO.Stream stream) => throw null; } - namespace Xml { public class XmlConfigurationProvider : Microsoft.Extensions.Configuration.FileConfigurationProvider { - public override void Load(System.IO.Stream stream) => throw null; public XmlConfigurationProvider(Microsoft.Extensions.Configuration.Xml.XmlConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.FileConfigurationSource)) => throw null; + public override void Load(System.IO.Stream stream) => throw null; } - public class XmlConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public XmlConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - public class XmlDocumentDecryptor { - public System.Xml.XmlReader CreateDecryptingXmlReader(System.IO.Stream input, System.Xml.XmlReaderSettings settings) => throw null; - protected virtual System.Xml.XmlReader DecryptDocumentAndCreateXmlReader(System.Xml.XmlDocument document) => throw null; public static Microsoft.Extensions.Configuration.Xml.XmlDocumentDecryptor Instance; protected XmlDocumentDecryptor() => throw null; + public System.Xml.XmlReader CreateDecryptingXmlReader(System.IO.Stream input, System.Xml.XmlReaderSettings settings) => throw null; + protected virtual System.Xml.XmlReader DecryptDocumentAndCreateXmlReader(System.Xml.XmlDocument document) => throw null; } - public class XmlStreamConfigurationProvider : Microsoft.Extensions.Configuration.StreamConfigurationProvider { + public XmlStreamConfigurationProvider(Microsoft.Extensions.Configuration.Xml.XmlStreamConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.StreamConfigurationSource)) => throw null; public override void Load(System.IO.Stream stream) => throw null; public static System.Collections.Generic.IDictionary Read(System.IO.Stream stream, Microsoft.Extensions.Configuration.Xml.XmlDocumentDecryptor decryptor) => throw null; - public XmlStreamConfigurationProvider(Microsoft.Extensions.Configuration.Xml.XmlStreamConfigurationSource source) : base(default(Microsoft.Extensions.Configuration.StreamConfigurationSource)) => throw null; } - public class XmlStreamConfigurationSource : Microsoft.Extensions.Configuration.StreamConfigurationSource { - public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public XmlStreamConfigurationSource() => throw null; + public override Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.cs index 9cb343bf310e2..0432e20b24a5e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Configuration.cs @@ -1,74 +1,66 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Configuration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Configuration { - public static class ChainedBuilderExtensions + public static partial class ChainedBuilderExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddConfiguration(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Microsoft.Extensions.Configuration.IConfiguration config) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddConfiguration(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, Microsoft.Extensions.Configuration.IConfiguration config, bool shouldDisposeConfiguration) => throw null; } - public class ChainedConfigurationProvider : Microsoft.Extensions.Configuration.IConfigurationProvider, System.IDisposable { public ChainedConfigurationProvider(Microsoft.Extensions.Configuration.ChainedConfigurationSource source) => throw null; - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; } public void Dispose() => throw null; public System.Collections.Generic.IEnumerable GetChildKeys(System.Collections.Generic.IEnumerable earlierKeys, string parentPath) => throw null; public Microsoft.Extensions.Primitives.IChangeToken GetReloadToken() => throw null; public void Load() => throw null; public void Set(string key, string value) => throw null; public bool TryGet(string key, out string value) => throw null; + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; } } - public class ChainedConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; public ChainedConfigurationSource() => throw null; - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set => throw null; } - public bool ShouldDisposeConfiguration { get => throw null; set => throw null; } + public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set { } } + public bool ShouldDisposeConfiguration { get => throw null; set { } } } - public class ConfigurationBuilder : Microsoft.Extensions.Configuration.IConfigurationBuilder { + public ConfigurationBuilder() => throw null; public Microsoft.Extensions.Configuration.IConfigurationBuilder Add(Microsoft.Extensions.Configuration.IConfigurationSource source) => throw null; public Microsoft.Extensions.Configuration.IConfigurationRoot Build() => throw null; - public ConfigurationBuilder() => throw null; public System.Collections.Generic.IDictionary Properties { get => throw null; } public System.Collections.Generic.IList Sources { get => throw null; } } - public class ConfigurationKeyComparer : System.Collections.Generic.IComparer { - public int Compare(string x, string y) => throw null; public ConfigurationKeyComparer() => throw null; + public int Compare(string x, string y) => throw null; public static Microsoft.Extensions.Configuration.ConfigurationKeyComparer Instance { get => throw null; } } - - public class ConfigurationManager : Microsoft.Extensions.Configuration.IConfiguration, Microsoft.Extensions.Configuration.IConfigurationBuilder, Microsoft.Extensions.Configuration.IConfigurationRoot, System.IDisposable + public sealed class ConfigurationManager : Microsoft.Extensions.Configuration.IConfiguration, Microsoft.Extensions.Configuration.IConfigurationBuilder, Microsoft.Extensions.Configuration.IConfigurationRoot, System.IDisposable { - Microsoft.Extensions.Configuration.IConfigurationBuilder Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(Microsoft.Extensions.Configuration.IConfigurationSource source) => throw null; - Microsoft.Extensions.Configuration.IConfigurationRoot Microsoft.Extensions.Configuration.IConfigurationBuilder.Build() => throw null; public ConfigurationManager() => throw null; public void Dispose() => throw null; public System.Collections.Generic.IEnumerable GetChildren() => throw null; - Microsoft.Extensions.Primitives.IChangeToken Microsoft.Extensions.Configuration.IConfiguration.GetReloadToken() => throw null; public Microsoft.Extensions.Configuration.IConfigurationSection GetSection(string key) => throw null; - public string this[string key] { get => throw null; set => throw null; } + Microsoft.Extensions.Primitives.IChangeToken Microsoft.Extensions.Configuration.IConfiguration.GetReloadToken() => throw null; + Microsoft.Extensions.Configuration.IConfigurationBuilder Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(Microsoft.Extensions.Configuration.IConfigurationSource source) => throw null; + Microsoft.Extensions.Configuration.IConfigurationRoot Microsoft.Extensions.Configuration.IConfigurationBuilder.Build() => throw null; + void Microsoft.Extensions.Configuration.IConfigurationRoot.Reload() => throw null; + public string this[string key] { get => throw null; set { } } System.Collections.Generic.IDictionary Microsoft.Extensions.Configuration.IConfigurationBuilder.Properties { get => throw null; } System.Collections.Generic.IEnumerable Microsoft.Extensions.Configuration.IConfigurationRoot.Providers { get => throw null; } - void Microsoft.Extensions.Configuration.IConfigurationRoot.Reload() => throw null; public System.Collections.Generic.IList Sources { get => throw null; } } - public abstract class ConfigurationProvider : Microsoft.Extensions.Configuration.IConfigurationProvider { protected ConfigurationProvider() => throw null; - protected System.Collections.Generic.IDictionary Data { get => throw null; set => throw null; } public virtual System.Collections.Generic.IEnumerable GetChildKeys(System.Collections.Generic.IEnumerable earlierKeys, string parentPath) => throw null; public Microsoft.Extensions.Primitives.IChangeToken GetReloadToken() => throw null; public virtual void Load() => throw null; @@ -76,17 +68,16 @@ public abstract class ConfigurationProvider : Microsoft.Extensions.Configuration public virtual void Set(string key, string value) => throw null; public override string ToString() => throw null; public virtual bool TryGet(string key, out string value) => throw null; + protected System.Collections.Generic.IDictionary Data { get => throw null; set { } } } - public class ConfigurationReloadToken : Microsoft.Extensions.Primitives.IChangeToken { - public bool ActiveChangeCallbacks { get => throw null; } public ConfigurationReloadToken() => throw null; - public bool HasChanged { get => throw null; } public void OnReload() => throw null; public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; + public bool ActiveChangeCallbacks { get => throw null; } + public bool HasChanged { get => throw null; } } - public class ConfigurationRoot : Microsoft.Extensions.Configuration.IConfiguration, Microsoft.Extensions.Configuration.IConfigurationRoot, System.IDisposable { public ConfigurationRoot(System.Collections.Generic.IList providers) => throw null; @@ -94,61 +85,54 @@ public class ConfigurationRoot : Microsoft.Extensions.Configuration.IConfigurati public System.Collections.Generic.IEnumerable GetChildren() => throw null; public Microsoft.Extensions.Primitives.IChangeToken GetReloadToken() => throw null; public Microsoft.Extensions.Configuration.IConfigurationSection GetSection(string key) => throw null; - public string this[string key] { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable Providers { get => throw null; } public void Reload() => throw null; + public string this[string key] { get => throw null; set { } } + public System.Collections.Generic.IEnumerable Providers { get => throw null; } } - public class ConfigurationSection : Microsoft.Extensions.Configuration.IConfiguration, Microsoft.Extensions.Configuration.IConfigurationSection { public ConfigurationSection(Microsoft.Extensions.Configuration.IConfigurationRoot root, string path) => throw null; public System.Collections.Generic.IEnumerable GetChildren() => throw null; public Microsoft.Extensions.Primitives.IChangeToken GetReloadToken() => throw null; public Microsoft.Extensions.Configuration.IConfigurationSection GetSection(string key) => throw null; - public string this[string key] { get => throw null; set => throw null; } + public string this[string key] { get => throw null; set { } } public string Key { get => throw null; } public string Path { get => throw null; } - public string Value { get => throw null; set => throw null; } + public string Value { get => throw null; set { } } } - - public static class MemoryConfigurationBuilderExtensions + public static partial class MemoryConfigurationBuilderExtensions { public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddInMemoryCollection(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder) => throw null; public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddInMemoryCollection(this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, System.Collections.Generic.IEnumerable> initialData) => throw null; } - public abstract class StreamConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider { + public StreamConfigurationProvider(Microsoft.Extensions.Configuration.StreamConfigurationSource source) => throw null; public override void Load() => throw null; public abstract void Load(System.IO.Stream stream); public Microsoft.Extensions.Configuration.StreamConfigurationSource Source { get => throw null; } - public StreamConfigurationProvider(Microsoft.Extensions.Configuration.StreamConfigurationSource source) => throw null; } - public abstract class StreamConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public abstract Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder); - public System.IO.Stream Stream { get => throw null; set => throw null; } protected StreamConfigurationSource() => throw null; + public abstract Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder); + public System.IO.Stream Stream { get => throw null; set { } } } - namespace Memory { public class MemoryConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { + public MemoryConfigurationProvider(Microsoft.Extensions.Configuration.Memory.MemoryConfigurationSource source) => throw null; public void Add(string key, string value) => throw null; public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public MemoryConfigurationProvider(Microsoft.Extensions.Configuration.Memory.MemoryConfigurationSource source) => throw null; } - public class MemoryConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource { - public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; - public System.Collections.Generic.IEnumerable> InitialData { get => throw null; set => throw null; } public MemoryConfigurationSource() => throw null; + public Microsoft.Extensions.Configuration.IConfigurationProvider Build(Microsoft.Extensions.Configuration.IConfigurationBuilder builder) => throw null; + public System.Collections.Generic.IEnumerable> InitialData { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.Abstractions.cs index 8d7706b9823ef..968544bf52551 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.DependencyInjection.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -15,184 +14,167 @@ public static class ActivatorUtilities public static object GetServiceOrCreateInstance(System.IServiceProvider provider, System.Type type) => throw null; public static T GetServiceOrCreateInstance(System.IServiceProvider provider) => throw null; } - public class ActivatorUtilitiesConstructorAttribute : System.Attribute { public ActivatorUtilitiesConstructorAttribute() => throw null; } - - public struct AsyncServiceScope : Microsoft.Extensions.DependencyInjection.IServiceScope, System.IAsyncDisposable, System.IDisposable + public struct AsyncServiceScope : Microsoft.Extensions.DependencyInjection.IServiceScope, System.IDisposable, System.IAsyncDisposable { - // Stub generator skipped constructor public AsyncServiceScope(Microsoft.Extensions.DependencyInjection.IServiceScope serviceScope) => throw null; public void Dispose() => throw null; public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; public System.IServiceProvider ServiceProvider { get => throw null; } } - - public interface IServiceCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable + public interface IServiceCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IList { } - public interface IServiceProviderFactory { TContainerBuilder CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services); System.IServiceProvider CreateServiceProvider(TContainerBuilder containerBuilder); } - public interface IServiceProviderIsService { bool IsService(System.Type serviceType); } - public interface IServiceScope : System.IDisposable { System.IServiceProvider ServiceProvider { get; } } - public interface IServiceScopeFactory { Microsoft.Extensions.DependencyInjection.IServiceScope CreateScope(); } - public interface ISupportRequiredService { object GetRequiredService(System.Type serviceType); } - public delegate object ObjectFactory(System.IServiceProvider serviceProvider, object[] arguments); - - public class ServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable + public class ServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IList { - void System.Collections.Generic.ICollection.Add(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; + public ServiceCollection() => throw null; public void Clear() => throw null; public bool Contains(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; public void CopyTo(Microsoft.Extensions.DependencyInjection.ServiceDescriptor[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public int IndexOf(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; public void Insert(int index, Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; - public bool IsReadOnly { get => throw null; } - public Microsoft.Extensions.DependencyInjection.ServiceDescriptor this[int index] { get => throw null; set => throw null; } public void MakeReadOnly() => throw null; public bool Remove(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; public void RemoveAt(int index) => throw null; - public ServiceCollection() => throw null; + void System.Collections.Generic.ICollection.Add(Microsoft.Extensions.DependencyInjection.ServiceDescriptor item) => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public int Count { get => throw null; } + public bool IsReadOnly { get => throw null; } + public Microsoft.Extensions.DependencyInjection.ServiceDescriptor this[int index] { get => throw null; set { } } } - - public static class ServiceCollectionServiceExtensions + public static partial class ServiceCollectionServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Func implementationFactory) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Type implementationType) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Func implementationFactory) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Type implementationType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, object implementationInstance) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Type implementationType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, TService implementationInstance) where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Func implementationFactory) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type serviceType, System.Type implementationType) => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; } - public class ServiceDescriptor { + public ServiceDescriptor(System.Type serviceType, System.Func factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; + public ServiceDescriptor(System.Type serviceType, object instance) => throw null; + public ServiceDescriptor(System.Type serviceType, System.Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Describe(System.Type serviceType, System.Func implementationFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Describe(System.Type serviceType, System.Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; - public System.Func ImplementationFactory { get => throw null; } - public object ImplementationInstance { get => throw null; } - public System.Type ImplementationType { get => throw null; } - public Microsoft.Extensions.DependencyInjection.ServiceLifetime Lifetime { get => throw null; } public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped(System.Type service, System.Func implementationFactory) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped(System.Type service, System.Type implementationType) => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped() where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped(System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class => throw null; - public ServiceDescriptor(System.Type serviceType, System.Func factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; - public ServiceDescriptor(System.Type serviceType, System.Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime) => throw null; - public ServiceDescriptor(System.Type serviceType, object instance) => throw null; - public System.Type ServiceType { get => throw null; } + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped() where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Type serviceType, System.Func implementationFactory) => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Type service, System.Type implementationType) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Type serviceType, object implementationInstance) => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton() where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Type service, System.Type implementationType) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(TService implementationInstance) where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton() where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; public override string ToString() => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient(System.Type service, System.Func implementationFactory) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient(System.Type service, System.Type implementationType) => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient() where TImplementation : class, TService where TService : class => throw null; - public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient(System.Func implementationFactory) where TImplementation : class, TService where TService : class => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient(System.Func implementationFactory) where TService : class => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient() where TService : class where TImplementation : class, TService => throw null; + public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient(System.Func implementationFactory) where TService : class where TImplementation : class, TService => throw null; + public System.Func ImplementationFactory { get => throw null; } + public object ImplementationInstance { get => throw null; } + public System.Type ImplementationType { get => throw null; } + public Microsoft.Extensions.DependencyInjection.ServiceLifetime Lifetime { get => throw null; } + public System.Type ServiceType { get => throw null; } } - - public enum ServiceLifetime : int + public enum ServiceLifetime { - Scoped = 1, Singleton = 0, + Scoped = 1, Transient = 2, } - - public static class ServiceProviderServiceExtensions + public static partial class ServiceProviderServiceExtensions { - public static Microsoft.Extensions.DependencyInjection.AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) => throw null; public static Microsoft.Extensions.DependencyInjection.AsyncServiceScope CreateAsyncScope(this Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory) => throw null; + public static Microsoft.Extensions.DependencyInjection.AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceScope CreateScope(this System.IServiceProvider provider) => throw null; public static object GetRequiredService(this System.IServiceProvider provider, System.Type serviceType) => throw null; public static T GetRequiredService(this System.IServiceProvider provider) => throw null; - public static T GetService(this System.IServiceProvider provider) => throw null; public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider, System.Type serviceType) => throw null; public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider) => throw null; + public static T GetService(this System.IServiceProvider provider) => throw null; } - namespace Extensions { - public static class ServiceCollectionDescriptorExtensions + public static partial class ServiceCollectionDescriptorExtensions { - public static Microsoft.Extensions.DependencyInjection.IServiceCollection Add(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection Add(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Microsoft.Extensions.DependencyInjection.ServiceDescriptor descriptor) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection Add(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAll(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type serviceType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection RemoveAll(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection Replace(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Microsoft.Extensions.DependencyInjection.ServiceDescriptor descriptor) => throw null; - public static void TryAdd(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) => throw null; public static void TryAdd(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, Microsoft.Extensions.DependencyInjection.ServiceDescriptor descriptor) => throw null; - public static void TryAddEnumerable(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) => throw null; + public static void TryAdd(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) => throw null; public static void TryAddEnumerable(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceDescriptor descriptor) => throw null; + public static void TryAddEnumerable(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) => throw null; public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service) => throw null; public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Func implementationFactory) => throw null; public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Type implementationType) => throw null; - public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TImplementation : class, TService where TService : class => throw null; public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class => throw null; public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; + public static void TryAddScoped(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class where TImplementation : class, TService => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service) => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Func implementationFactory) => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Type implementationType) => throw null; - public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TImplementation : class, TService where TService : class => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, TService instance) where TService : class => throw null; + public static void TryAddSingleton(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class where TImplementation : class, TService => throw null; public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service) => throw null; public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Func implementationFactory) => throw null; public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, System.Type service, System.Type implementationType) => throw null; - public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TImplementation : class, TService where TService : class => throw null; public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class => throw null; public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where TService : class => throw null; + public static void TryAddTransient(this Microsoft.Extensions.DependencyInjection.IServiceCollection collection) where TService : class where TImplementation : class, TService => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.cs index d0a76b8f06f7d..2d6fc019e1e54 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.DependencyInjection.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.DependencyInjection, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,33 +8,29 @@ namespace DependencyInjection { public class DefaultServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory { - public Microsoft.Extensions.DependencyInjection.IServiceCollection CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public System.IServiceProvider CreateServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection containerBuilder) => throw null; public DefaultServiceProviderFactory() => throw null; public DefaultServiceProviderFactory(Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options) => throw null; + public Microsoft.Extensions.DependencyInjection.IServiceCollection CreateBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public System.IServiceProvider CreateServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection containerBuilder) => throw null; } - - public static class ServiceCollectionContainerBuilderExtensions + public static partial class ServiceCollectionContainerBuilderExtensions { public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options) => throw null; public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, bool validateScopes) => throw null; } - - public class ServiceProvider : System.IAsyncDisposable, System.IDisposable, System.IServiceProvider + public sealed class ServiceProvider : System.IAsyncDisposable, System.IDisposable, System.IServiceProvider { public void Dispose() => throw null; public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; public object GetService(System.Type serviceType) => throw null; } - public class ServiceProviderOptions { public ServiceProviderOptions() => throw null; - public bool ValidateOnBuild { get => throw null; set => throw null; } - public bool ValidateScopes { get => throw null; set => throw null; } + public bool ValidateOnBuild { get => throw null; set { } } + public bool ValidateScopes { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.cs index 36b8d4078727f..c779c9bd26e4f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,77 +8,67 @@ namespace Diagnostics { namespace HealthChecks { - public class HealthCheckContext + public sealed class HealthCheckContext { public HealthCheckContext() => throw null; - public Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration Registration { get => throw null; set => throw null; } + public Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration Registration { get => throw null; set { } } } - - public class HealthCheckRegistration + public sealed class HealthCheckRegistration { - public System.Func Factory { get => throw null; set => throw null; } - public Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus FailureStatus { get => throw null; set => throw null; } - public HealthCheckRegistration(string name, System.Func factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags) => throw null; - public HealthCheckRegistration(string name, System.Func factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; public HealthCheckRegistration(string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags) => throw null; public HealthCheckRegistration(string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; - public string Name { get => throw null; set => throw null; } + public HealthCheckRegistration(string name, System.Func factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags) => throw null; + public HealthCheckRegistration(string name, System.Func factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; + public System.Func Factory { get => throw null; set { } } + public Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus FailureStatus { get => throw null; set { } } + public System.TimeSpan Timeout { get => throw null; set { } } + public string Name { get => throw null; set { } } public System.Collections.Generic.ISet Tags { get => throw null; } - public System.TimeSpan Timeout { get => throw null; set => throw null; } } - public struct HealthCheckResult { + public HealthCheckResult(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data) => throw null; + public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Healthy(string description, System.Collections.Generic.IReadOnlyDictionary data) => throw null; + public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Degraded(string description, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data) => throw null; + public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Unhealthy(string description, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data) => throw null; public System.Collections.Generic.IReadOnlyDictionary Data { get => throw null; } - public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Degraded(string description = default(string), System.Exception exception = default(System.Exception), System.Collections.Generic.IReadOnlyDictionary data = default(System.Collections.Generic.IReadOnlyDictionary)) => throw null; public string Description { get => throw null; } public System.Exception Exception { get => throw null; } - // Stub generator skipped constructor - public HealthCheckResult(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description = default(string), System.Exception exception = default(System.Exception), System.Collections.Generic.IReadOnlyDictionary data = default(System.Collections.Generic.IReadOnlyDictionary)) => throw null; - public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Healthy(string description = default(string), System.Collections.Generic.IReadOnlyDictionary data = default(System.Collections.Generic.IReadOnlyDictionary)) => throw null; public Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus Status { get => throw null; } - public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Unhealthy(string description = default(string), System.Exception exception = default(System.Exception), System.Collections.Generic.IReadOnlyDictionary data = default(System.Collections.Generic.IReadOnlyDictionary)) => throw null; } - - public class HealthReport + public sealed class HealthReport { - public System.Collections.Generic.IReadOnlyDictionary Entries { get => throw null; } - public HealthReport(System.Collections.Generic.IReadOnlyDictionary entries, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, System.TimeSpan totalDuration) => throw null; public HealthReport(System.Collections.Generic.IReadOnlyDictionary entries, System.TimeSpan totalDuration) => throw null; + public HealthReport(System.Collections.Generic.IReadOnlyDictionary entries, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, System.TimeSpan totalDuration) => throw null; + public System.Collections.Generic.IReadOnlyDictionary Entries { get => throw null; } public Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus Status { get => throw null; } public System.TimeSpan TotalDuration { get => throw null; } } - public struct HealthReportEntry { + public HealthReportEntry(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description, System.TimeSpan duration, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data) => throw null; + public HealthReportEntry(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description, System.TimeSpan duration, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data, System.Collections.Generic.IEnumerable tags) => throw null; public System.Collections.Generic.IReadOnlyDictionary Data { get => throw null; } public string Description { get => throw null; } public System.TimeSpan Duration { get => throw null; } public System.Exception Exception { get => throw null; } - // Stub generator skipped constructor - public HealthReportEntry(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description, System.TimeSpan duration, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data) => throw null; - public HealthReportEntry(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, string description, System.TimeSpan duration, System.Exception exception, System.Collections.Generic.IReadOnlyDictionary data, System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable)) => throw null; public Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus Status { get => throw null; } public System.Collections.Generic.IEnumerable Tags { get => throw null; } } - - public enum HealthStatus : int + public enum HealthStatus { + Unhealthy = 0, Degraded = 1, Healthy = 2, - Unhealthy = 0, } - public interface IHealthCheck { - System.Threading.Tasks.Task CheckHealthAsync(Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckContext context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CheckHealthAsync(Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckContext context, System.Threading.CancellationToken cancellationToken); } - public interface IHealthCheckPublisher { System.Threading.Tasks.Task PublishAsync(Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport report, System.Threading.CancellationToken cancellationToken); } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.cs index 7b0dead748d92..9670cab46b2fc 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Diagnostics.HealthChecks.cs @@ -1,74 +1,66 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Diagnostics.HealthChecks, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class HealthCheckServiceCollectionExtensions - { - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddHealthChecks(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - } - - public static class HealthChecksBuilderAddCheckExtensions + public static partial class HealthChecksBuilderAddCheckExtensions { public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus?), System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default(Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus?), System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan timeout, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddTypeActivatedCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable tags, System.TimeSpan timeout, params object[] args) where T : class, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck => throw null; } - - public static class HealthChecksBuilderDelegateExtensions + public static partial class HealthChecksBuilderDelegateExtensions { - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) => throw null; public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags = default(System.Collections.Generic.IEnumerable), System.TimeSpan? timeout = default(System.TimeSpan?)) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func check, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddAsyncCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, System.Func> check, System.Collections.Generic.IEnumerable tags, System.TimeSpan? timeout) => throw null; + } + public static partial class HealthCheckServiceCollectionExtensions + { + public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddHealthChecks(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; } - public interface IHealthChecksBuilder { Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder Add(Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration registration); Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - } namespace Diagnostics { namespace HealthChecks { - public class HealthCheckPublisherOptions + public sealed class HealthCheckPublisherOptions { - public System.TimeSpan Delay { get => throw null; set => throw null; } public HealthCheckPublisherOptions() => throw null; - public System.TimeSpan Period { get => throw null; set => throw null; } - public System.Func Predicate { get => throw null; set => throw null; } - public System.TimeSpan Timeout { get => throw null; set => throw null; } + public System.TimeSpan Delay { get => throw null; set { } } + public System.TimeSpan Period { get => throw null; set { } } + public System.Func Predicate { get => throw null; set { } } + public System.TimeSpan Timeout { get => throw null; set { } } } - public abstract class HealthCheckService { - public System.Threading.Tasks.Task CheckHealthAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract System.Threading.Tasks.Task CheckHealthAsync(System.Func predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public System.Threading.Tasks.Task CheckHealthAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public abstract System.Threading.Tasks.Task CheckHealthAsync(System.Func predicate, System.Threading.CancellationToken cancellationToken); protected HealthCheckService() => throw null; } - - public class HealthCheckServiceOptions + public sealed class HealthCheckServiceOptions { public HealthCheckServiceOptions() => throw null; public System.Collections.Generic.ICollection Registrations { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Features.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Features.cs index 69563ef43fc8e..285c4811b8bcb 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Features.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Features.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Features, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,53 +11,46 @@ namespace Features public class FeatureCollection : Microsoft.AspNetCore.Http.Features.IFeatureCollection, System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { public FeatureCollection() => throw null; - public FeatureCollection(Microsoft.AspNetCore.Http.Features.IFeatureCollection defaults) => throw null; public FeatureCollection(int initialCapacity) => throw null; - public TFeature Get() => throw null; - public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; + public FeatureCollection(Microsoft.AspNetCore.Http.Features.IFeatureCollection defaults) => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public bool IsReadOnly { get => throw null; } - public object this[System.Type key] { get => throw null; set => throw null; } - public virtual int Revision { get => throw null; } + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; + public TFeature Get() => throw null; public void Set(TFeature instance) => throw null; + public virtual int Revision { get => throw null; } + public bool IsReadOnly { get => throw null; } + public object this[System.Type key] { get => throw null; set { } } } - - public static class FeatureCollectionExtensions + public static partial class FeatureCollectionExtensions { - public static object GetRequiredFeature(this Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection, System.Type key) => throw null; public static TFeature GetRequiredFeature(this Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection) => throw null; + public static object GetRequiredFeature(this Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection, System.Type key) => throw null; } - public struct FeatureReference { public static Microsoft.AspNetCore.Http.Features.FeatureReference Default; - // Stub generator skipped constructor public T Fetch(Microsoft.AspNetCore.Http.Features.IFeatureCollection features) => throw null; public T Update(Microsoft.AspNetCore.Http.Features.IFeatureCollection features, T feature) => throw null; } - public struct FeatureReferences { public TCache Cache; - public Microsoft.AspNetCore.Http.Features.IFeatureCollection Collection { get => throw null; } - // Stub generator skipped constructor public FeatureReferences(Microsoft.AspNetCore.Http.Features.IFeatureCollection collection) => throw null; - public TFeature Fetch(ref TFeature cached, TState state, System.Func factory) where TFeature : class => throw null; - public TFeature Fetch(ref TFeature cached, System.Func factory) where TFeature : class => throw null; public void Initalize(Microsoft.AspNetCore.Http.Features.IFeatureCollection collection) => throw null; public void Initalize(Microsoft.AspNetCore.Http.Features.IFeatureCollection collection, int revision) => throw null; + public TFeature Fetch(ref TFeature cached, TState state, System.Func factory) where TFeature : class => throw null; + public TFeature Fetch(ref TFeature cached, System.Func factory) where TFeature : class => throw null; + public Microsoft.AspNetCore.Http.Features.IFeatureCollection Collection { get => throw null; } public int Revision { get => throw null; } } - public interface IFeatureCollection : System.Collections.Generic.IEnumerable>, System.Collections.IEnumerable { TFeature Get(); + void Set(TFeature instance); bool IsReadOnly { get; } - object this[System.Type key] { get; set; } int Revision { get; } - void Set(TFeature instance); + object this[System.Type key] { get; set; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Abstractions.cs index f09d2e0fc08c9..625f43a2d09e4 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.FileProviders.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -11,62 +10,55 @@ public interface IDirectoryContents : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public bool Exists { get => throw null; } + public NotFoundDirectoryContents() => throw null; public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public NotFoundDirectoryContents() => throw null; + public bool Exists { get => throw null; } public static Microsoft.Extensions.FileProviders.NotFoundDirectoryContents Singleton { get => throw null; } } - public class NotFoundFileInfo : Microsoft.Extensions.FileProviders.IFileInfo { + public NotFoundFileInfo(string name) => throw null; public System.IO.Stream CreateReadStream() => throw null; public bool Exists { get => throw null; } public bool IsDirectory { get => throw null; } public System.DateTimeOffset LastModified { get => throw null; } - public System.Int64 Length { get => throw null; } + public long Length { get => throw null; } public string Name { get => throw null; } - public NotFoundFileInfo(string name) => throw null; public string PhysicalPath { get => throw null; } } - public class NullChangeToken : Microsoft.Extensions.Primitives.IChangeToken { + public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; public bool ActiveChangeCallbacks { get => throw null; } public bool HasChanged { get => throw null; } - public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; public static Microsoft.Extensions.FileProviders.NullChangeToken Singleton { get => throw null; } } - public class NullFileProvider : Microsoft.Extensions.FileProviders.IFileProvider { + public NullFileProvider() => throw null; public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; - public NullFileProvider() => throw null; public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Composite.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Composite.cs index de2b0bdd3fd64..830d70d4c0b06 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Composite.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Composite.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.FileProviders.Composite, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,24 +8,22 @@ namespace FileProviders { public class CompositeFileProvider : Microsoft.Extensions.FileProviders.IFileProvider { - public CompositeFileProvider(System.Collections.Generic.IEnumerable fileProviders) => throw null; public CompositeFileProvider(params Microsoft.Extensions.FileProviders.IFileProvider[] fileProviders) => throw null; - public System.Collections.Generic.IEnumerable FileProviders { get => throw null; } + public CompositeFileProvider(System.Collections.Generic.IEnumerable fileProviders) => throw null; public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; public Microsoft.Extensions.Primitives.IChangeToken Watch(string pattern) => throw null; + public System.Collections.Generic.IEnumerable FileProviders { get => throw null; } } - namespace Composite { public class CompositeDirectoryContents : Microsoft.Extensions.FileProviders.IDirectoryContents, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { public CompositeDirectoryContents(System.Collections.Generic.IList fileProviders, string subpath) => throw null; - public bool Exists { get => throw null; } public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public bool Exists { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Embedded.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Embedded.cs index 98158803de53c..4905c2ec89822 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Embedded.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Embedded.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.FileProviders.Embedded, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -11,37 +10,34 @@ public class EmbeddedFileProvider : Microsoft.Extensions.FileProviders.IFileProv { public EmbeddedFileProvider(System.Reflection.Assembly assembly) => throw null; public EmbeddedFileProvider(System.Reflection.Assembly assembly, string baseNamespace) => throw null; - public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; + public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; public Microsoft.Extensions.Primitives.IChangeToken Watch(string pattern) => throw null; } - public class ManifestEmbeddedFileProvider : Microsoft.Extensions.FileProviders.IFileProvider { - public System.Reflection.Assembly Assembly { get => throw null; } - public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; - public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; public ManifestEmbeddedFileProvider(System.Reflection.Assembly assembly) => throw null; public ManifestEmbeddedFileProvider(System.Reflection.Assembly assembly, string root) => throw null; public ManifestEmbeddedFileProvider(System.Reflection.Assembly assembly, string root, System.DateTimeOffset lastModified) => throw null; public ManifestEmbeddedFileProvider(System.Reflection.Assembly assembly, string root, string manifestName, System.DateTimeOffset lastModified) => throw null; + public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; + public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter) => throw null; + public System.Reflection.Assembly Assembly { get => throw null; } } - namespace Embedded { public class EmbeddedResourceFileInfo : Microsoft.Extensions.FileProviders.IFileInfo { - public System.IO.Stream CreateReadStream() => throw null; public EmbeddedResourceFileInfo(System.Reflection.Assembly assembly, string resourcePath, string name, System.DateTimeOffset lastModified) => throw null; + public System.IO.Stream CreateReadStream() => throw null; public bool Exists { get => throw null; } - public bool IsDirectory { get => throw null; } - public System.DateTimeOffset LastModified { get => throw null; } - public System.Int64 Length { get => throw null; } - public string Name { get => throw null; } + public long Length { get => throw null; } public string PhysicalPath { get => throw null; } + public string Name { get => throw null; } + public System.DateTimeOffset LastModified { get => throw null; } + public bool IsDirectory { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Physical.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Physical.cs index 557246dd9f49e..7a99d3f062abd 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Physical.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileProviders.Physical.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.FileProviders.Physical, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,94 +8,84 @@ namespace FileProviders { public class PhysicalFileProvider : Microsoft.Extensions.FileProviders.IFileProvider, System.IDisposable { + public PhysicalFileProvider(string root) => throw null; + public PhysicalFileProvider(string root, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) => throw null; public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) => throw null; - public PhysicalFileProvider(string root) => throw null; - public PhysicalFileProvider(string root, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters) => throw null; - public string Root { get => throw null; } - public bool UseActivePolling { get => throw null; set => throw null; } - public bool UsePollingFileWatcher { get => throw null; set => throw null; } public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter) => throw null; - // ERR: Stub generator didn't handle member: ~PhysicalFileProvider + public string Root { get => throw null; } + public bool UseActivePolling { get => throw null; set { } } + public bool UsePollingFileWatcher { get => throw null; set { } } } - namespace Internal { public class PhysicalDirectoryContents : Microsoft.Extensions.FileProviders.IDirectoryContents, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public bool Exists { get => throw null; } - public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public PhysicalDirectoryContents(string directory) => throw null; public PhysicalDirectoryContents(string directory, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters) => throw null; + public System.Collections.Generic.IEnumerator GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; + public bool Exists { get => throw null; } } - } namespace Physical { [System.Flags] - public enum ExclusionFilters : int + public enum ExclusionFilters { + None = 0, DotPrefixed = 1, Hidden = 2, - None = 0, - Sensitive = 7, System = 4, + Sensitive = 7, } - public class PhysicalDirectoryInfo : Microsoft.Extensions.FileProviders.IFileInfo { + public PhysicalDirectoryInfo(System.IO.DirectoryInfo info) => throw null; public System.IO.Stream CreateReadStream() => throw null; public bool Exists { get => throw null; } public bool IsDirectory { get => throw null; } public System.DateTimeOffset LastModified { get => throw null; } - public System.Int64 Length { get => throw null; } + public long Length { get => throw null; } public string Name { get => throw null; } - public PhysicalDirectoryInfo(System.IO.DirectoryInfo info) => throw null; public string PhysicalPath { get => throw null; } } - public class PhysicalFileInfo : Microsoft.Extensions.FileProviders.IFileInfo { + public PhysicalFileInfo(System.IO.FileInfo info) => throw null; public System.IO.Stream CreateReadStream() => throw null; public bool Exists { get => throw null; } public bool IsDirectory { get => throw null; } public System.DateTimeOffset LastModified { get => throw null; } - public System.Int64 Length { get => throw null; } + public long Length { get => throw null; } public string Name { get => throw null; } - public PhysicalFileInfo(System.IO.FileInfo info) => throw null; public string PhysicalPath { get => throw null; } } - public class PhysicalFilesWatcher : System.IDisposable { + public PhysicalFilesWatcher(string root, System.IO.FileSystemWatcher fileSystemWatcher, bool pollForChanges) => throw null; + public PhysicalFilesWatcher(string root, System.IO.FileSystemWatcher fileSystemWatcher, bool pollForChanges, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters) => throw null; public Microsoft.Extensions.Primitives.IChangeToken CreateFileChangeToken(string filter) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public PhysicalFilesWatcher(string root, System.IO.FileSystemWatcher fileSystemWatcher, bool pollForChanges) => throw null; - public PhysicalFilesWatcher(string root, System.IO.FileSystemWatcher fileSystemWatcher, bool pollForChanges, Microsoft.Extensions.FileProviders.Physical.ExclusionFilters filters) => throw null; - // ERR: Stub generator didn't handle member: ~PhysicalFilesWatcher } - public class PollingFileChangeToken : Microsoft.Extensions.Primitives.IChangeToken { - public bool ActiveChangeCallbacks { get => throw null; } - public bool HasChanged { get => throw null; } public PollingFileChangeToken(System.IO.FileInfo fileInfo) => throw null; public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; + public bool ActiveChangeCallbacks { get => throw null; } + public bool HasChanged { get => throw null; } } - public class PollingWildCardChangeToken : Microsoft.Extensions.Primitives.IChangeToken { - public bool ActiveChangeCallbacks { get => throw null; } - protected virtual System.DateTime GetLastWriteUtc(string path) => throw null; - public bool HasChanged { get => throw null; } public PollingWildCardChangeToken(string root, string pattern) => throw null; + protected virtual System.DateTime GetLastWriteUtc(string path) => throw null; System.IDisposable Microsoft.Extensions.Primitives.IChangeToken.RegisterChangeCallback(System.Action callback, object state) => throw null; + public bool ActiveChangeCallbacks { get => throw null; } + public bool HasChanged { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileSystemGlobbing.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileSystemGlobbing.cs index 17b83af804019..695e14a2aecd3 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileSystemGlobbing.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.FileSystemGlobbing.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.FileSystemGlobbing, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,36 +8,32 @@ namespace FileSystemGlobbing { public struct FilePatternMatch : System.IEquatable { + public FilePatternMatch(string path, string stem) => throw null; public bool Equals(Microsoft.Extensions.FileSystemGlobbing.FilePatternMatch other) => throw null; public override bool Equals(object obj) => throw null; - // Stub generator skipped constructor - public FilePatternMatch(string path, string stem) => throw null; public override int GetHashCode() => throw null; public string Path { get => throw null; } public string Stem { get => throw null; } } - public class InMemoryDirectoryInfo : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase { + public InMemoryDirectoryInfo(string rootDir, System.Collections.Generic.IEnumerable files) => throw null; public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() => throw null; - public override string FullName { get => throw null; } public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase GetDirectory(string path) => throw null; public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase GetFile(string path) => throw null; - public InMemoryDirectoryInfo(string rootDir, System.Collections.Generic.IEnumerable files) => throw null; + public override string FullName { get => throw null; } public override string Name { get => throw null; } public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase ParentDirectory { get => throw null; } } - public class Matcher { + public Matcher() => throw null; + public Matcher(System.StringComparison comparisonType) => throw null; public virtual Microsoft.Extensions.FileSystemGlobbing.Matcher AddExclude(string pattern) => throw null; public virtual Microsoft.Extensions.FileSystemGlobbing.Matcher AddInclude(string pattern) => throw null; public virtual Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Execute(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directoryInfo) => throw null; - public Matcher() => throw null; - public Matcher(System.StringComparison comparisonType) => throw null; } - - public static class MatcherExtensions + public static partial class MatcherExtensions { public static void AddExcludePatterns(this Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, params System.Collections.Generic.IEnumerable[] excludePatternsGroups) => throw null; public static void AddIncludePatterns(this Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, params System.Collections.Generic.IEnumerable[] includePatternsGroups) => throw null; @@ -48,15 +43,13 @@ public static class MatcherExtensions public static Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Match(this Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, string rootDir, System.Collections.Generic.IEnumerable files) => throw null; public static Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Match(this Microsoft.Extensions.FileSystemGlobbing.Matcher matcher, string rootDir, string file) => throw null; } - public class PatternMatchingResult { - public System.Collections.Generic.IEnumerable Files { get => throw null; set => throw null; } - public bool HasMatches { get => throw null; } public PatternMatchingResult(System.Collections.Generic.IEnumerable files) => throw null; public PatternMatchingResult(System.Collections.Generic.IEnumerable files, bool hasMatches) => throw null; + public System.Collections.Generic.IEnumerable Files { get => throw null; set { } } + public bool HasMatches { get => throw null; } } - namespace Abstractions { public abstract class DirectoryInfoBase : Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileSystemInfoBase @@ -66,23 +59,20 @@ public abstract class DirectoryInfoBase : Microsoft.Extensions.FileSystemGlobbin public abstract Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase GetDirectory(string path); public abstract Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase GetFile(string path); } - public class DirectoryInfoWrapper : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase { public DirectoryInfoWrapper(System.IO.DirectoryInfo directoryInfo) => throw null; public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() => throw null; - public override string FullName { get => throw null; } public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase GetDirectory(string name) => throw null; public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase GetFile(string name) => throw null; + public override string FullName { get => throw null; } public override string Name { get => throw null; } public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase ParentDirectory { get => throw null; } } - public abstract class FileInfoBase : Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileSystemInfoBase { protected FileInfoBase() => throw null; } - public class FileInfoWrapper : Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase { public FileInfoWrapper(System.IO.FileInfo fileInfo) => throw null; @@ -90,7 +80,6 @@ public class FileInfoWrapper : Microsoft.Extensions.FileSystemGlobbing.Abstracti public override string Name { get => throw null; } public override Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase ParentDirectory { get => throw null; } } - public abstract class FileSystemInfoBase { protected FileSystemInfoBase() => throw null; @@ -98,7 +87,6 @@ public abstract class FileSystemInfoBase public abstract string Name { get; } public abstract Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase ParentDirectory { get; } } - } namespace Internal { @@ -106,19 +94,16 @@ public interface ILinearPattern : Microsoft.Extensions.FileSystemGlobbing.Intern { System.Collections.Generic.IList Segments { get; } } - public interface IPathSegment { - bool CanProduceStem { get; } bool Match(string value); + bool CanProduceStem { get; } } - public interface IPattern { Microsoft.Extensions.FileSystemGlobbing.Internal.IPatternContext CreatePatternContextForExclude(); Microsoft.Extensions.FileSystemGlobbing.Internal.IPatternContext CreatePatternContextForInclude(); } - public interface IPatternContext { void Declare(System.Action onDeclare); @@ -127,7 +112,6 @@ public interface IPatternContext bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory); Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file); } - public interface IRaggedPattern : Microsoft.Extensions.FileSystemGlobbing.Internal.IPattern { System.Collections.Generic.IList> Contains { get; } @@ -135,123 +119,104 @@ public interface IRaggedPattern : Microsoft.Extensions.FileSystemGlobbing.Intern System.Collections.Generic.IList Segments { get; } System.Collections.Generic.IList StartsWith { get; } } - public class MatcherContext { - public Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Execute() => throw null; public MatcherContext(System.Collections.Generic.IEnumerable includePatterns, System.Collections.Generic.IEnumerable excludePatterns, Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directoryInfo, System.StringComparison comparison) => throw null; + public Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Execute() => throw null; } - public struct PatternTestResult { public static Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Failed; + public static Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Success(string stem) => throw null; public bool IsSuccessful { get => throw null; } - // Stub generator skipped constructor public string Stem { get => throw null; } - public static Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Success(string stem) => throw null; } - namespace PathSegments { public class CurrentPathSegment : Microsoft.Extensions.FileSystemGlobbing.Internal.IPathSegment { - public bool CanProduceStem { get => throw null; } public CurrentPathSegment() => throw null; public bool Match(string value) => throw null; + public bool CanProduceStem { get => throw null; } } - public class LiteralPathSegment : Microsoft.Extensions.FileSystemGlobbing.Internal.IPathSegment { - public bool CanProduceStem { get => throw null; } + public LiteralPathSegment(string value, System.StringComparison comparisonType) => throw null; public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; - public LiteralPathSegment(string value, System.StringComparison comparisonType) => throw null; public bool Match(string value) => throw null; + public bool CanProduceStem { get => throw null; } public string Value { get => throw null; } } - public class ParentPathSegment : Microsoft.Extensions.FileSystemGlobbing.Internal.IPathSegment { - public bool CanProduceStem { get => throw null; } - public bool Match(string value) => throw null; public ParentPathSegment() => throw null; + public bool Match(string value) => throw null; + public bool CanProduceStem { get => throw null; } } - public class RecursiveWildcardSegment : Microsoft.Extensions.FileSystemGlobbing.Internal.IPathSegment { - public bool CanProduceStem { get => throw null; } - public bool Match(string value) => throw null; public RecursiveWildcardSegment() => throw null; + public bool Match(string value) => throw null; + public bool CanProduceStem { get => throw null; } } - public class WildcardPathSegment : Microsoft.Extensions.FileSystemGlobbing.Internal.IPathSegment { + public static Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.WildcardPathSegment MatchAll; + public WildcardPathSegment(string beginsWith, System.Collections.Generic.List contains, string endsWith, System.StringComparison comparisonType) => throw null; + public bool Match(string value) => throw null; public string BeginsWith { get => throw null; } public bool CanProduceStem { get => throw null; } public System.Collections.Generic.List Contains { get => throw null; } public string EndsWith { get => throw null; } - public bool Match(string value) => throw null; - public static Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments.WildcardPathSegment MatchAll; - public WildcardPathSegment(string beginsWith, System.Collections.Generic.List contains, string endsWith, System.StringComparison comparisonType) => throw null; } - } namespace PatternContexts { - public abstract class PatternContext : Microsoft.Extensions.FileSystemGlobbing.Internal.IPatternContext where TFrame : struct - { - public virtual void Declare(System.Action declare) => throw null; - protected TFrame Frame; - protected bool IsStackEmpty() => throw null; - protected PatternContext() => throw null; - public virtual void PopDirectory() => throw null; - protected void PushDataFrame(TFrame frame) => throw null; - public abstract void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory); - public abstract bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory); - public abstract Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file); - } - public abstract class PatternContextLinear : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContext { + public PatternContextLinear(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern pattern) => throw null; + protected string CalculateStem(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase matchedFile) => throw null; + protected bool IsLastSegment() => throw null; + public override void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; + public override Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file) => throw null; + protected bool TestMatchingSegment(string value) => throw null; + protected Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern Pattern { get => throw null; } public struct FrameData { - // Stub generator skipped constructor public bool InStem; public bool IsNotApplicable; public int SegmentIndex; public string Stem { get => throw null; } public System.Collections.Generic.IList StemItems { get => throw null; } } - - - protected string CalculateStem(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase matchedFile) => throw null; - protected bool IsLastSegment() => throw null; - protected Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern Pattern { get => throw null; } - public PatternContextLinear(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern pattern) => throw null; - public override void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; - public override Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file) => throw null; - protected bool TestMatchingSegment(string value) => throw null; } - public class PatternContextLinearExclude : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContextLinear { public PatternContextLinearExclude(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern pattern) : base(default(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern)) => throw null; public override bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; } - public class PatternContextLinearInclude : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContextLinear { - public override void Declare(System.Action onDeclare) => throw null; public PatternContextLinearInclude(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern pattern) : base(default(Microsoft.Extensions.FileSystemGlobbing.Internal.ILinearPattern)) => throw null; + public override void Declare(System.Action onDeclare) => throw null; public override bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; } - public abstract class PatternContextRagged : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContext { + public PatternContextRagged(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern pattern) => throw null; + protected string CalculateStem(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase matchedFile) => throw null; + protected bool IsEndingGroup() => throw null; + protected bool IsStartingGroup() => throw null; + public override void PopDirectory() => throw null; + public override sealed void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; + public override Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file) => throw null; + protected bool TestMatchingGroup(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileSystemInfoBase value) => throw null; + protected bool TestMatchingSegment(string value) => throw null; + protected Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern Pattern { get => throw null; } public struct FrameData { public int BacktrackAvailable; - // Stub generator skipped constructor public bool InStem; public bool IsNotApplicable; public System.Collections.Generic.IList SegmentGroup; @@ -260,44 +225,40 @@ public struct FrameData public string Stem { get => throw null; } public System.Collections.Generic.IList StemItems { get => throw null; } } - - - protected string CalculateStem(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase matchedFile) => throw null; - protected bool IsEndingGroup() => throw null; - protected bool IsStartingGroup() => throw null; - protected Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern Pattern { get => throw null; } - public PatternContextRagged(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern pattern) => throw null; - public override void PopDirectory() => throw null; - public override void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; - public override Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file) => throw null; - protected bool TestMatchingGroup(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileSystemInfoBase value) => throw null; - protected bool TestMatchingSegment(string value) => throw null; } - public class PatternContextRaggedExclude : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContextRagged { public PatternContextRaggedExclude(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern pattern) : base(default(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern)) => throw null; public override bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; } - public class PatternContextRaggedInclude : Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.PatternContextRagged { - public override void Declare(System.Action onDeclare) => throw null; public PatternContextRaggedInclude(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern pattern) : base(default(Microsoft.Extensions.FileSystemGlobbing.Internal.IRaggedPattern)) => throw null; + public override void Declare(System.Action onDeclare) => throw null; public override bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory) => throw null; } - + public abstract class PatternContext : Microsoft.Extensions.FileSystemGlobbing.Internal.IPatternContext where TFrame : struct + { + protected TFrame Frame; + protected PatternContext() => throw null; + public virtual void Declare(System.Action declare) => throw null; + protected bool IsStackEmpty() => throw null; + public virtual void PopDirectory() => throw null; + protected void PushDataFrame(TFrame frame) => throw null; + public abstract void PushDirectory(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory); + public abstract bool Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directory); + public abstract Microsoft.Extensions.FileSystemGlobbing.Internal.PatternTestResult Test(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase file); + } } namespace Patterns { public class PatternBuilder { - public Microsoft.Extensions.FileSystemGlobbing.Internal.IPattern Build(string pattern) => throw null; - public System.StringComparison ComparisonType { get => throw null; } public PatternBuilder() => throw null; public PatternBuilder(System.StringComparison comparisonType) => throw null; + public Microsoft.Extensions.FileSystemGlobbing.Internal.IPattern Build(string pattern) => throw null; + public System.StringComparison ComparisonType { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.Abstractions.cs index 47adebded5415..67bcac3573497 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.Abstractions.cs @@ -1,18 +1,16 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Hosting.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class ServiceCollectionHostedServiceExtensions + public static partial class ServiceCollectionHostedServiceExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHostedService(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where THostedService : class, Microsoft.Extensions.Hosting.IHostedService => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHostedService(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func implementationFactory) where THostedService : class, Microsoft.Extensions.Hosting.IHostedService => throw null; } - } namespace Hosting { @@ -21,102 +19,89 @@ public abstract class BackgroundService : Microsoft.Extensions.Hosting.IHostedSe protected BackgroundService() => throw null; public virtual void Dispose() => throw null; protected abstract System.Threading.Tasks.Task ExecuteAsync(System.Threading.CancellationToken stoppingToken); - public virtual System.Threading.Tasks.Task ExecuteTask { get => throw null; } public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken) => throw null; public virtual System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task ExecuteTask { get => throw null; } } - public static class EnvironmentName { public static string Development; public static string Production; public static string Staging; } - public static class Environments { public static string Development; public static string Production; public static string Staging; } - - public class HostAbortedException : System.Exception + public sealed class HostAbortedException : System.Exception { public HostAbortedException() => throw null; public HostAbortedException(string message) => throw null; public HostAbortedException(string message, System.Exception innerException) => throw null; } - public class HostBuilderContext { - public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set => throw null; } public HostBuilderContext(System.Collections.Generic.IDictionary properties) => throw null; - public Microsoft.Extensions.Hosting.IHostEnvironment HostingEnvironment { get => throw null; set => throw null; } + public Microsoft.Extensions.Configuration.IConfiguration Configuration { get => throw null; set { } } + public Microsoft.Extensions.Hosting.IHostEnvironment HostingEnvironment { get => throw null; set { } } public System.Collections.Generic.IDictionary Properties { get => throw null; } } - public static class HostDefaults { public static string ApplicationKey; public static string ContentRootKey; public static string EnvironmentKey; } - - public static class HostEnvironmentEnvExtensions + public static partial class HostEnvironmentEnvExtensions { public static bool IsDevelopment(this Microsoft.Extensions.Hosting.IHostEnvironment hostEnvironment) => throw null; public static bool IsEnvironment(this Microsoft.Extensions.Hosting.IHostEnvironment hostEnvironment, string environmentName) => throw null; public static bool IsProduction(this Microsoft.Extensions.Hosting.IHostEnvironment hostEnvironment) => throw null; public static bool IsStaging(this Microsoft.Extensions.Hosting.IHostEnvironment hostEnvironment) => throw null; } - - public static class HostingAbstractionsHostBuilderExtensions + public static partial class HostingAbstractionsHostBuilderExtensions { public static Microsoft.Extensions.Hosting.IHost Start(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder) => throw null; - public static System.Threading.Tasks.Task StartAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task StartAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Threading.CancellationToken cancellationToken) => throw null; } - - public static class HostingAbstractionsHostExtensions + public static partial class HostingAbstractionsHostExtensions { public static void Run(this Microsoft.Extensions.Hosting.IHost host) => throw null; - public static System.Threading.Tasks.Task RunAsync(this Microsoft.Extensions.Hosting.IHost host, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task RunAsync(this Microsoft.Extensions.Hosting.IHost host, System.Threading.CancellationToken token) => throw null; public static void Start(this Microsoft.Extensions.Hosting.IHost host) => throw null; public static System.Threading.Tasks.Task StopAsync(this Microsoft.Extensions.Hosting.IHost host, System.TimeSpan timeout) => throw null; public static void WaitForShutdown(this Microsoft.Extensions.Hosting.IHost host) => throw null; - public static System.Threading.Tasks.Task WaitForShutdownAsync(this Microsoft.Extensions.Hosting.IHost host, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task WaitForShutdownAsync(this Microsoft.Extensions.Hosting.IHost host, System.Threading.CancellationToken token) => throw null; } - - public static class HostingEnvironmentExtensions + public static partial class HostingEnvironmentExtensions { public static bool IsDevelopment(this Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment) => throw null; public static bool IsEnvironment(this Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment, string environmentName) => throw null; public static bool IsProduction(this Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment) => throw null; public static bool IsStaging(this Microsoft.Extensions.Hosting.IHostingEnvironment hostingEnvironment) => throw null; } - public interface IApplicationLifetime { + void StopApplication(); System.Threading.CancellationToken ApplicationStarted { get; } System.Threading.CancellationToken ApplicationStopped { get; } System.Threading.CancellationToken ApplicationStopping { get; } - void StopApplication(); } - public interface IHost : System.IDisposable { + System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); System.IServiceProvider Services { get; } - System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - public interface IHostApplicationLifetime { + void StopApplication(); System.Threading.CancellationToken ApplicationStarted { get; } System.Threading.CancellationToken ApplicationStopped { get; } System.Threading.CancellationToken ApplicationStopping { get; } - void StopApplication(); } - public interface IHostBuilder { Microsoft.Extensions.Hosting.IHost Build(); @@ -124,11 +109,15 @@ public interface IHostBuilder Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer(System.Action configureDelegate); Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration(System.Action configureDelegate); Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices(System.Action configureDelegate); - System.Collections.Generic.IDictionary Properties { get; } - Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory); Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory); + Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory); + System.Collections.Generic.IDictionary Properties { get; } + } + public interface IHostedService + { + System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); } - public interface IHostEnvironment { string ApplicationName { get; set; } @@ -136,19 +125,6 @@ public interface IHostEnvironment string ContentRootPath { get; set; } string EnvironmentName { get; set; } } - - public interface IHostLifetime - { - System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task WaitForStartAsync(System.Threading.CancellationToken cancellationToken); - } - - public interface IHostedService - { - System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); - } - public interface IHostingEnvironment { string ApplicationName { get; set; } @@ -156,7 +132,11 @@ public interface IHostingEnvironment string ContentRootPath { get; set; } string EnvironmentName { get; set; } } - + public interface IHostLifetime + { + System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task WaitForStartAsync(System.Threading.CancellationToken cancellationToken); + } } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.cs index 8e078972865e8..f6d231613e923 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Hosting.cs @@ -1,32 +1,28 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Hosting, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class OptionsBuilderExtensions + public static partial class OptionsBuilderExtensions { public static Microsoft.Extensions.Options.OptionsBuilder ValidateOnStart(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder) where TOptions : class => throw null; } - } namespace Hosting { - public enum BackgroundServiceExceptionBehavior : int + public enum BackgroundServiceExceptionBehavior { - Ignore = 1, StopHost = 0, + Ignore = 1, } - public class ConsoleLifetimeOptions { public ConsoleLifetimeOptions() => throw null; - public bool SuppressStatusMessages { get => throw null; set => throw null; } + public bool SuppressStatusMessages { get => throw null; set { } } } - public static class Host { public static Microsoft.Extensions.Hosting.HostApplicationBuilder CreateApplicationBuilder() => throw null; @@ -34,52 +30,41 @@ public static class Host public static Microsoft.Extensions.Hosting.IHostBuilder CreateDefaultBuilder() => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder CreateDefaultBuilder(string[] args) => throw null; } - - public class HostApplicationBuilder + public sealed class HostApplicationBuilder { - public Microsoft.Extensions.Hosting.IHost Build() => throw null; - public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; } - public void ConfigureContainer(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory, System.Action configure = default(System.Action)) => throw null; - public Microsoft.Extensions.Hosting.IHostEnvironment Environment { get => throw null; } public HostApplicationBuilder() => throw null; public HostApplicationBuilder(Microsoft.Extensions.Hosting.HostApplicationBuilderSettings settings) => throw null; public HostApplicationBuilder(string[] args) => throw null; + public Microsoft.Extensions.Hosting.IHost Build() => throw null; + public void ConfigureContainer(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory, System.Action configure) => throw null; + public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; } + public Microsoft.Extensions.Hosting.IHostEnvironment Environment { get => throw null; } public Microsoft.Extensions.Logging.ILoggingBuilder Logging { get => throw null; } public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } } - - public class HostApplicationBuilderSettings + public sealed class HostApplicationBuilderSettings { - public string ApplicationName { get => throw null; set => throw null; } - public string[] Args { get => throw null; set => throw null; } - public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; set => throw null; } - public string ContentRootPath { get => throw null; set => throw null; } - public bool DisableDefaults { get => throw null; set => throw null; } - public string EnvironmentName { get => throw null; set => throw null; } public HostApplicationBuilderSettings() => throw null; + public string ApplicationName { get => throw null; set { } } + public string[] Args { get => throw null; set { } } + public Microsoft.Extensions.Configuration.ConfigurationManager Configuration { get => throw null; set { } } + public string ContentRootPath { get => throw null; set { } } + public bool DisableDefaults { get => throw null; set { } } + public string EnvironmentName { get => throw null; set { } } } - public class HostBuilder : Microsoft.Extensions.Hosting.IHostBuilder { + public HostBuilder() => throw null; public Microsoft.Extensions.Hosting.IHost Build() => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureHostConfiguration(System.Action configureDelegate) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices(System.Action configureDelegate) => throw null; - public HostBuilder() => throw null; - public System.Collections.Generic.IDictionary Properties { get => throw null; } - public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory) => throw null; public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory) => throw null; + public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory(System.Func> factory) => throw null; + public System.Collections.Generic.IDictionary Properties { get => throw null; } } - - public class HostOptions - { - public Microsoft.Extensions.Hosting.BackgroundServiceExceptionBehavior BackgroundServiceExceptionBehavior { get => throw null; set => throw null; } - public HostOptions() => throw null; - public System.TimeSpan ShutdownTimeout { get => throw null; set => throw null; } - } - - public static class HostingHostBuilderExtensions + public static partial class HostingHostBuilderExtensions { public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureDelegate) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureDelegate) => throw null; @@ -89,29 +74,33 @@ public static class HostingHostBuilderExtensions public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureLogging) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureLogging) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureDelegate) => throw null; - public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureOptions, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.Threading.Tasks.Task RunConsoleAsync(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Threading.CancellationToken cancellationToken) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder UseConsoleLifetime(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder UseConsoleLifetime(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configureOptions) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder UseContentRoot(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string contentRoot) => throw null; - public static Microsoft.Extensions.Hosting.IHostBuilder UseDefaultServiceProvider(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configure) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder UseDefaultServiceProvider(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configure) => throw null; + public static Microsoft.Extensions.Hosting.IHostBuilder UseDefaultServiceProvider(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, System.Action configure) => throw null; public static Microsoft.Extensions.Hosting.IHostBuilder UseEnvironment(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string environment) => throw null; } - + public class HostOptions + { + public HostOptions() => throw null; + public Microsoft.Extensions.Hosting.BackgroundServiceExceptionBehavior BackgroundServiceExceptionBehavior { get => throw null; set { } } + public System.TimeSpan ShutdownTimeout { get => throw null; set { } } + } namespace Internal { public class ApplicationLifetime : Microsoft.Extensions.Hosting.IApplicationLifetime, Microsoft.Extensions.Hosting.IHostApplicationLifetime { public ApplicationLifetime(Microsoft.Extensions.Logging.ILogger logger) => throw null; - public System.Threading.CancellationToken ApplicationStarted { get => throw null; } - public System.Threading.CancellationToken ApplicationStopped { get => throw null; } - public System.Threading.CancellationToken ApplicationStopping { get => throw null; } public void NotifyStarted() => throw null; public void NotifyStopped() => throw null; public void StopApplication() => throw null; + public System.Threading.CancellationToken ApplicationStarted { get => throw null; } + public System.Threading.CancellationToken ApplicationStopped { get => throw null; } + public System.Threading.CancellationToken ApplicationStopping { get => throw null; } } - public class ConsoleLifetime : Microsoft.Extensions.Hosting.IHostLifetime, System.IDisposable { public ConsoleLifetime(Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, Microsoft.Extensions.Options.IOptions hostOptions) => throw null; @@ -120,16 +109,14 @@ public class ConsoleLifetime : Microsoft.Extensions.Hosting.IHostLifetime, Syste public System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken) => throw null; public System.Threading.Tasks.Task WaitForStartAsync(System.Threading.CancellationToken cancellationToken) => throw null; } - public class HostingEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment, Microsoft.Extensions.Hosting.IHostingEnvironment { - public string ApplicationName { get => throw null; set => throw null; } - public Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider { get => throw null; set => throw null; } - public string ContentRootPath { get => throw null; set => throw null; } - public string EnvironmentName { get => throw null; set => throw null; } public HostingEnvironment() => throw null; + public string ApplicationName { get => throw null; set { } } + public Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider { get => throw null; set { } } + public string ContentRootPath { get => throw null; set { } } + public string EnvironmentName { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Http.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Http.cs index 64f9e39c78725..8c3cf82b59df2 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Http.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Http.cs @@ -1,112 +1,102 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Http, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class HttpClientBuilderExtensions + public static partial class HttpClientBuilderExtensions { - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder) where THandler : System.Net.Http.DelegatingHandler => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddTypedClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddTypedClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder) where TClient : class => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddTypedClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func factory) where TClient : class => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddTypedClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func factory) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Action configureClient) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddTypedClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Action configureClient) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpClient(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Action configureClient) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigureHttpMessageHandlerBuilder(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Action configureBuilder) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigurePrimaryHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigurePrimaryHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigurePrimaryHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func configureHandler) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder ConfigurePrimaryHttpMessageHandler(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder) where THandler : System.Net.Http.HttpMessageHandler => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder RedactLoggedHeaders(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func shouldRedactHeaderValue) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder RedactLoggedHeaders(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Collections.Generic.IEnumerable redactedLoggedHeaderNames) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder RedactLoggedHeaders(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.Func shouldRedactHeaderValue) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder SetHandlerLifetime(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, System.TimeSpan handlerLifetime) => throw null; } - - public static class HttpClientFactoryServiceCollectionExtensions + public static partial class HttpClientFactoryServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TClient : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TClient : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TClient : class where TImplementation : class, TClient => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func factory) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func factory) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TClient : class where TImplementation : class, TClient => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; + public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Func factory) where TClient : class where TImplementation : class, TClient => throw null; public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Func factory) where TClient : class where TImplementation : class, TClient => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureClient) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddHttpClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureClient) where TClient : class => throw null; } - public interface IHttpClientBuilder { string Name { get; } Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - } namespace Http { public class HttpClientFactoryOptions { - public System.TimeSpan HandlerLifetime { get => throw null; set => throw null; } - public System.Collections.Generic.IList> HttpClientActions { get => throw null; } public HttpClientFactoryOptions() => throw null; + public System.TimeSpan HandlerLifetime { get => throw null; set { } } + public System.Collections.Generic.IList> HttpClientActions { get => throw null; } public System.Collections.Generic.IList> HttpMessageHandlerBuilderActions { get => throw null; } - public System.Func ShouldRedactHeaderValue { get => throw null; set => throw null; } - public bool SuppressHandlerScope { get => throw null; set => throw null; } + public System.Func ShouldRedactHeaderValue { get => throw null; set { } } + public bool SuppressHandlerScope { get => throw null; set { } } } - public abstract class HttpMessageHandlerBuilder { - public abstract System.Collections.Generic.IList AdditionalHandlers { get; } - public abstract System.Net.Http.HttpMessageHandler Build(); - protected internal static System.Net.Http.HttpMessageHandler CreateHandlerPipeline(System.Net.Http.HttpMessageHandler primaryHandler, System.Collections.Generic.IEnumerable additionalHandlers) => throw null; protected HttpMessageHandlerBuilder() => throw null; + public abstract System.Net.Http.HttpMessageHandler Build(); + protected static System.Net.Http.HttpMessageHandler CreateHandlerPipeline(System.Net.Http.HttpMessageHandler primaryHandler, System.Collections.Generic.IEnumerable additionalHandlers) => throw null; + public abstract System.Collections.Generic.IList AdditionalHandlers { get; } public abstract string Name { get; set; } public abstract System.Net.Http.HttpMessageHandler PrimaryHandler { get; set; } public virtual System.IServiceProvider Services { get => throw null; } } - public interface IHttpMessageHandlerBuilderFilter { System.Action Configure(System.Action next); } - public interface ITypedHttpClientFactory { TClient CreateClient(System.Net.Http.HttpClient httpClient); } - namespace Logging { public class LoggingHttpMessageHandler : System.Net.Http.DelegatingHandler { public LoggingHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger) => throw null; public LoggingHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Http.HttpClientFactoryOptions options) => throw null; - protected internal override System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) => throw null; + protected override System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) => throw null; } - public class LoggingScopeHttpMessageHandler : System.Net.Http.DelegatingHandler { public LoggingScopeHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger) => throw null; public LoggingScopeHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Http.HttpClientFactoryOptions options) => throw null; - protected internal override System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) => throw null; + protected override System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) => throw null; } - } } } @@ -117,26 +107,22 @@ namespace Net { namespace Http { - public static class HttpClientFactoryExtensions + public static partial class HttpClientFactoryExtensions { public static System.Net.Http.HttpClient CreateClient(this System.Net.Http.IHttpClientFactory factory) => throw null; } - - public static class HttpMessageHandlerFactoryExtensions + public static partial class HttpMessageHandlerFactoryExtensions { public static System.Net.Http.HttpMessageHandler CreateHandler(this System.Net.Http.IHttpMessageHandlerFactory factory) => throw null; } - public interface IHttpClientFactory { System.Net.Http.HttpClient CreateClient(string name); } - public interface IHttpMessageHandlerFactory { System.Net.Http.HttpMessageHandler CreateHandler(string name); } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Core.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Core.cs index f4ad09fbca6ef..a226e1a7cbdab 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Core.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Core.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Identity.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -9,673 +8,609 @@ namespace Identity { public class AuthenticatorTokenProvider : Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider where TUser : class { - public AuthenticatorTokenProvider() => throw null; public virtual System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public virtual System.Threading.Tasks.Task GenerateAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public virtual System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public AuthenticatorTokenProvider() => throw null; } - public class ClaimsIdentityOptions { public ClaimsIdentityOptions() => throw null; - public string EmailClaimType { get => throw null; set => throw null; } - public string RoleClaimType { get => throw null; set => throw null; } - public string SecurityStampClaimType { get => throw null; set => throw null; } - public string UserIdClaimType { get => throw null; set => throw null; } - public string UserNameClaimType { get => throw null; set => throw null; } + public string RoleClaimType { get => throw null; set { } } + public string UserNameClaimType { get => throw null; set { } } + public string UserIdClaimType { get => throw null; set { } } + public string EmailClaimType { get => throw null; set { } } + public string SecurityStampClaimType { get => throw null; set { } } } - public class DefaultPersonalDataProtector : Microsoft.AspNetCore.Identity.IPersonalDataProtector { public DefaultPersonalDataProtector(Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing keyRing, Microsoft.AspNetCore.Identity.ILookupProtector protector) => throw null; - public virtual string Protect(string data) => throw null; public virtual string Unprotect(string data) => throw null; + public virtual string Protect(string data) => throw null; } - public class DefaultUserConfirmation : Microsoft.AspNetCore.Identity.IUserConfirmation where TUser : class { - public DefaultUserConfirmation() => throw null; public virtual System.Threading.Tasks.Task IsConfirmedAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public DefaultUserConfirmation() => throw null; } - public class EmailTokenProvider : Microsoft.AspNetCore.Identity.TotpSecurityStampBasedTokenProvider where TUser : class { public override System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; - public EmailTokenProvider() => throw null; public override System.Threading.Tasks.Task GetUserModifierAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public EmailTokenProvider() => throw null; + } + public class IdentityBuilder + { + public IdentityBuilder(System.Type user, Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public IdentityBuilder(System.Type user, System.Type role, Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserValidator() where TValidator : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory() where TFactory : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddErrorDescriber() where TDescriber : Microsoft.AspNetCore.Identity.IdentityErrorDescriber => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddPasswordValidator() where TValidator : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserStore() where TStore : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider(string providerName) where TProvider : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider(string providerName, System.Type provider) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserManager() where TUserManager : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoles() where TRole : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator() where TRole : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddPersonalDataProtection() where TProtector : class, Microsoft.AspNetCore.Identity.ILookupProtector where TKeyRing : class, Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleStore() where TStore : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleManager() where TRoleManager : class => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserConfirmation() where TUserConfirmation : class => throw null; + public System.Type UserType { get => throw null; } + public System.Type RoleType { get => throw null; } + public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } + } + public class IdentityError + { + public IdentityError() => throw null; + public string Code { get => throw null; set { } } + public string Description { get => throw null; set { } } + } + public class IdentityErrorDescriber + { + public virtual Microsoft.AspNetCore.Identity.IdentityError DefaultError() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError ConcurrencyFailure() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordMismatch() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidToken() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError RecoveryCodeRedemptionFailed() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError LoginAlreadyAssociated() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidUserName(string userName) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidEmail(string email) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateUserName(string userName) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateEmail(string email) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidRoleName(string role) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateRoleName(string role) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError UserAlreadyHasPassword() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError UserLockoutNotEnabled() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError UserAlreadyInRole(string role) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError UserNotInRole(string role) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordTooShort(int length) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresUniqueChars(int uniqueChars) => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresNonAlphanumeric() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresDigit() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresLower() => throw null; + public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresUpper() => throw null; + public IdentityErrorDescriber() => throw null; + } + public class IdentityOptions + { + public IdentityOptions() => throw null; + public Microsoft.AspNetCore.Identity.ClaimsIdentityOptions ClaimsIdentity { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.UserOptions User { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.PasswordOptions Password { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.LockoutOptions Lockout { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.SignInOptions SignIn { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.TokenOptions Tokens { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.StoreOptions Stores { get => throw null; set { } } + } + public class IdentityResult + { + public static Microsoft.AspNetCore.Identity.IdentityResult Failed(params Microsoft.AspNetCore.Identity.IdentityError[] errors) => throw null; + public override string ToString() => throw null; + public IdentityResult() => throw null; + public bool Succeeded { get => throw null; set { } } + public System.Collections.Generic.IEnumerable Errors { get => throw null; } + public static Microsoft.AspNetCore.Identity.IdentityResult Success { get => throw null; } } - public interface ILookupNormalizer { - string NormalizeEmail(string email); string NormalizeName(string name); + string NormalizeEmail(string email); } - public interface ILookupProtector { string Protect(string keyId, string data); string Unprotect(string keyId, string data); } - public interface ILookupProtectorKeyRing { - string CurrentKeyId { get; } System.Collections.Generic.IEnumerable GetAllKeyIds(); + string CurrentKeyId { get; } string this[string keyId] { get; } } - public interface IPasswordHasher where TUser : class { string HashPassword(TUser user, string password); Microsoft.AspNetCore.Identity.PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword); } - public interface IPasswordValidator where TUser : class { System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user, string password); } - public interface IPersonalDataProtector { string Protect(string data); string Unprotect(string data); } - public interface IProtectedUserStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { } - public interface IQueryableRoleStore : Microsoft.AspNetCore.Identity.IRoleStore, System.IDisposable where TRole : class { System.Linq.IQueryable Roles { get; } } - public interface IQueryableUserStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { System.Linq.IQueryable Users { get; } } - public interface IRoleClaimStore : Microsoft.AspNetCore.Identity.IRoleStore, System.IDisposable where TRole : class { - System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task> GetClaimsAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - System.Threading.Tasks.Task RemoveClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetClaimsAsync(TRole role, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RemoveClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); } - public interface IRoleStore : System.IDisposable where TRole : class { System.Threading.Tasks.Task CreateAsync(TRole role, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task UpdateAsync(TRole role, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task DeleteAsync(TRole role, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task FindByIdAsync(string roleId, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task FindByNameAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetNormalizedRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetRoleIdAsync(TRole role, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetRoleNameAsync(TRole role, string roleName, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task UpdateAsync(TRole role, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetNormalizedRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByIdAsync(string roleId, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByNameAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken); } - public interface IRoleValidator where TRole : class { System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.RoleManager manager, TRole role); } - public interface IUserAuthenticationTokenStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task GetTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task RemoveTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetTokenAsync(TUser user, string loginProvider, string name, string value, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RemoveTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); } - public interface IUserAuthenticatorKeyStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetAuthenticatorKeyAsync(TUser user, string key, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user, System.Threading.CancellationToken cancellationToken); + } + public interface IUserClaimsPrincipalFactory where TUser : class + { + System.Threading.Tasks.Task CreateAsync(TUser user); } - public interface IUserClaimStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task> GetClaimsAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task> GetUsersForClaimAsync(System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task ReplaceClaimAsync(TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task> GetUsersForClaimAsync(System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); } - - public interface IUserClaimsPrincipalFactory where TUser : class - { - System.Threading.Tasks.Task CreateAsync(TUser user); - } - public interface IUserConfirmation where TUser : class { System.Threading.Tasks.Task IsConfirmedAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); } - public interface IUserEmailStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task FindByEmailAsync(string normalizedEmail, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task SetEmailAsync(TUser user, string email, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetEmailConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetNormalizedEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetEmailAsync(TUser user, string email, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetEmailConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByEmailAsync(string normalizedEmail, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetNormalizedEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetNormalizedEmailAsync(TUser user, string normalizedEmail, System.Threading.CancellationToken cancellationToken); } - public interface IUserLockoutStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetLockoutEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetLockoutEndDateAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task IncrementAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task ResetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetLockoutEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetLockoutEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd, System.Threading.CancellationToken cancellationToken); } - public interface IUserLoginStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task> GetLoginsAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task> GetLoginsAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); } - public interface IUserPasswordStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { + System.Threading.Tasks.Task SetPasswordHashAsync(TUser user, string passwordHash, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetPasswordHashAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task HasPasswordAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetPasswordHashAsync(TUser user, string passwordHash, System.Threading.CancellationToken cancellationToken); } - public interface IUserPhoneNumberStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { + System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetPhoneNumberAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetPhoneNumberConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetPhoneNumberConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken); } - public interface IUserRoleStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { System.Threading.Tasks.Task AddToRoleAsync(TUser user, string roleName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string roleName, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task> GetRolesAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task> GetUsersInRoleAsync(string roleName, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task IsInRoleAsync(TUser user, string roleName, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string roleName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task> GetUsersInRoleAsync(string roleName, System.Threading.CancellationToken cancellationToken); } - public interface IUserSecurityStampStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task GetSecurityStampAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetSecurityStampAsync(TUser user, string stamp, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetSecurityStampAsync(TUser user, System.Threading.CancellationToken cancellationToken); } - public interface IUserStore : System.IDisposable where TUser : class { - System.Threading.Tasks.Task CreateAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task DeleteAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task FindByIdAsync(string userId, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task FindByNameAsync(string normalizedUserName, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetNormalizedUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetUserIdAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task GetUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SetNormalizedUserNameAsync(TUser user, string normalizedName, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetUserNameAsync(TUser user, string userName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetNormalizedUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task SetNormalizedUserNameAsync(TUser user, string normalizedName, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task CreateAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task UpdateAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task DeleteAsync(TUser user, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByIdAsync(string userId, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task FindByNameAsync(string normalizedUserName, System.Threading.CancellationToken cancellationToken); } - public interface IUserTwoFactorRecoveryCodeStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task CountCodesAsync(TUser user, System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task RedeemCodeAsync(TUser user, string code, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task ReplaceCodesAsync(TUser user, System.Collections.Generic.IEnumerable recoveryCodes, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task RedeemCodeAsync(TUser user, string code, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task CountCodesAsync(TUser user, System.Threading.CancellationToken cancellationToken); } - public interface IUserTwoFactorStore : Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : class { - System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken); System.Threading.Tasks.Task SetTwoFactorEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken); + System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken); } - public interface IUserTwoFactorTokenProvider where TUser : class { - System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); System.Threading.Tasks.Task GenerateAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user); System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user); + System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); } - public interface IUserValidator where TUser : class { System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); } - - public class IdentityBuilder - { - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddClaimsPrincipalFactory() where TFactory : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddErrorDescriber() where TDescriber : Microsoft.AspNetCore.Identity.IdentityErrorDescriber => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddPasswordValidator() where TValidator : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddPersonalDataProtection() where TKeyRing : class, Microsoft.AspNetCore.Identity.ILookupProtectorKeyRing where TProtector : class, Microsoft.AspNetCore.Identity.ILookupProtector => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleManager() where TRoleManager : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleStore() where TStore : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleValidator() where TRole : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoles() where TRole : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider(string providerName, System.Type provider) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddTokenProvider(string providerName) where TProvider : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserConfirmation() where TUserConfirmation : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserManager() where TUserManager : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserStore() where TStore : class => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddUserValidator() where TValidator : class => throw null; - public IdentityBuilder(System.Type user, Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public IdentityBuilder(System.Type user, System.Type role, Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; - public System.Type RoleType { get => throw null; } - public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } - public System.Type UserType { get => throw null; } - } - - public class IdentityError - { - public string Code { get => throw null; set => throw null; } - public string Description { get => throw null; set => throw null; } - public IdentityError() => throw null; - } - - public class IdentityErrorDescriber - { - public virtual Microsoft.AspNetCore.Identity.IdentityError ConcurrencyFailure() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError DefaultError() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateEmail(string email) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateRoleName(string role) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError DuplicateUserName(string userName) => throw null; - public IdentityErrorDescriber() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidEmail(string email) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidRoleName(string role) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidToken() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError InvalidUserName(string userName) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError LoginAlreadyAssociated() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordMismatch() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresDigit() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresLower() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresNonAlphanumeric() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresUniqueChars(int uniqueChars) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordRequiresUpper() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError PasswordTooShort(int length) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError RecoveryCodeRedemptionFailed() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError UserAlreadyHasPassword() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError UserAlreadyInRole(string role) => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError UserLockoutNotEnabled() => throw null; - public virtual Microsoft.AspNetCore.Identity.IdentityError UserNotInRole(string role) => throw null; - } - - public class IdentityOptions - { - public Microsoft.AspNetCore.Identity.ClaimsIdentityOptions ClaimsIdentity { get => throw null; set => throw null; } - public IdentityOptions() => throw null; - public Microsoft.AspNetCore.Identity.LockoutOptions Lockout { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.PasswordOptions Password { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.SignInOptions SignIn { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.StoreOptions Stores { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.TokenOptions Tokens { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.UserOptions User { get => throw null; set => throw null; } - } - - public class IdentityResult - { - public System.Collections.Generic.IEnumerable Errors { get => throw null; } - public static Microsoft.AspNetCore.Identity.IdentityResult Failed(params Microsoft.AspNetCore.Identity.IdentityError[] errors) => throw null; - public IdentityResult() => throw null; - public bool Succeeded { get => throw null; set => throw null; } - public static Microsoft.AspNetCore.Identity.IdentityResult Success { get => throw null; } - public override string ToString() => throw null; - } - public class LockoutOptions { - public bool AllowedForNewUsers { get => throw null; set => throw null; } - public System.TimeSpan DefaultLockoutTimeSpan { get => throw null; set => throw null; } public LockoutOptions() => throw null; - public int MaxFailedAccessAttempts { get => throw null; set => throw null; } + public bool AllowedForNewUsers { get => throw null; set { } } + public int MaxFailedAccessAttempts { get => throw null; set { } } + public System.TimeSpan DefaultLockoutTimeSpan { get => throw null; set { } } } - public class PasswordHasher : Microsoft.AspNetCore.Identity.IPasswordHasher where TUser : class { + public PasswordHasher(Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; public virtual string HashPassword(TUser user, string password) => throw null; - public PasswordHasher(Microsoft.Extensions.Options.IOptions optionsAccessor = default(Microsoft.Extensions.Options.IOptions)) => throw null; public virtual Microsoft.AspNetCore.Identity.PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword) => throw null; } - - public enum PasswordHasherCompatibilityMode : int + public enum PasswordHasherCompatibilityMode { IdentityV2 = 0, IdentityV3 = 1, } - public class PasswordHasherOptions { - public Microsoft.AspNetCore.Identity.PasswordHasherCompatibilityMode CompatibilityMode { get => throw null; set => throw null; } - public int IterationCount { get => throw null; set => throw null; } public PasswordHasherOptions() => throw null; + public Microsoft.AspNetCore.Identity.PasswordHasherCompatibilityMode CompatibilityMode { get => throw null; set { } } + public int IterationCount { get => throw null; set { } } } - public class PasswordOptions { public PasswordOptions() => throw null; - public bool RequireDigit { get => throw null; set => throw null; } - public bool RequireLowercase { get => throw null; set => throw null; } - public bool RequireNonAlphanumeric { get => throw null; set => throw null; } - public bool RequireUppercase { get => throw null; set => throw null; } - public int RequiredLength { get => throw null; set => throw null; } - public int RequiredUniqueChars { get => throw null; set => throw null; } - } - + public int RequiredLength { get => throw null; set { } } + public int RequiredUniqueChars { get => throw null; set { } } + public bool RequireNonAlphanumeric { get => throw null; set { } } + public bool RequireLowercase { get => throw null; set { } } + public bool RequireUppercase { get => throw null; set { } } + public bool RequireDigit { get => throw null; set { } } + } public class PasswordValidator : Microsoft.AspNetCore.Identity.IPasswordValidator where TUser : class { - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber Describer { get => throw null; } - public virtual bool IsDigit(System.Char c) => throw null; - public virtual bool IsLetterOrDigit(System.Char c) => throw null; - public virtual bool IsLower(System.Char c) => throw null; - public virtual bool IsUpper(System.Char c) => throw null; - public PasswordValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors = default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) => throw null; + public PasswordValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors) => throw null; public virtual System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user, string password) => throw null; + public virtual bool IsDigit(char c) => throw null; + public virtual bool IsLower(char c) => throw null; + public virtual bool IsUpper(char c) => throw null; + public virtual bool IsLetterOrDigit(char c) => throw null; + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber Describer { get => throw null; } } - - public enum PasswordVerificationResult : int + public enum PasswordVerificationResult { Failed = 0, Success = 1, SuccessRehashNeeded = 2, } - public class PersonalDataAttribute : System.Attribute { public PersonalDataAttribute() => throw null; } - public class PhoneNumberTokenProvider : Microsoft.AspNetCore.Identity.TotpSecurityStampBasedTokenProvider where TUser : class { public override System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public override System.Threading.Tasks.Task GetUserModifierAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public PhoneNumberTokenProvider() => throw null; } - public class ProtectedPersonalDataAttribute : Microsoft.AspNetCore.Identity.PersonalDataAttribute { public ProtectedPersonalDataAttribute() => throw null; } - public class RoleManager : System.IDisposable where TRole : class { - public virtual System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim) => throw null; - protected virtual System.Threading.CancellationToken CancellationToken { get => throw null; } + public RoleManager(Microsoft.AspNetCore.Identity.IRoleStore store, System.Collections.Generic.IEnumerable> roleValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, Microsoft.Extensions.Logging.ILogger> logger) => throw null; public virtual System.Threading.Tasks.Task CreateAsync(TRole role) => throw null; + public virtual System.Threading.Tasks.Task UpdateNormalizedRoleNameAsync(TRole role) => throw null; + public virtual System.Threading.Tasks.Task UpdateAsync(TRole role) => throw null; public virtual System.Threading.Tasks.Task DeleteAsync(TRole role) => throw null; - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set => throw null; } + public virtual System.Threading.Tasks.Task RoleExistsAsync(string roleName) => throw null; + public virtual string NormalizeKey(string key) => throw null; public virtual System.Threading.Tasks.Task FindByIdAsync(string roleId) => throw null; - public virtual System.Threading.Tasks.Task FindByNameAsync(string roleName) => throw null; - public virtual System.Threading.Tasks.Task> GetClaimsAsync(TRole role) => throw null; - public virtual System.Threading.Tasks.Task GetRoleIdAsync(TRole role) => throw null; public virtual System.Threading.Tasks.Task GetRoleNameAsync(TRole role) => throw null; - public Microsoft.AspNetCore.Identity.ILookupNormalizer KeyNormalizer { get => throw null; set => throw null; } - public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set => throw null; } - public virtual string NormalizeKey(string key) => throw null; + public virtual System.Threading.Tasks.Task SetRoleNameAsync(TRole role, string name) => throw null; + public virtual System.Threading.Tasks.Task GetRoleIdAsync(TRole role) => throw null; + public virtual System.Threading.Tasks.Task FindByNameAsync(string roleName) => throw null; + public virtual System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim) => throw null; public virtual System.Threading.Tasks.Task RemoveClaimAsync(TRole role, System.Security.Claims.Claim claim) => throw null; - public virtual System.Threading.Tasks.Task RoleExistsAsync(string roleName) => throw null; - public RoleManager(Microsoft.AspNetCore.Identity.IRoleStore store, System.Collections.Generic.IEnumerable> roleValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, Microsoft.Extensions.Logging.ILogger> logger) => throw null; + public virtual System.Threading.Tasks.Task> GetClaimsAsync(TRole role) => throw null; + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + protected virtual System.Threading.Tasks.Task ValidateRoleAsync(TRole role) => throw null; + protected virtual System.Threading.Tasks.Task UpdateRoleAsync(TRole role) => throw null; + protected void ThrowIfDisposed() => throw null; + protected virtual System.Threading.CancellationToken CancellationToken { get => throw null; } + protected Microsoft.AspNetCore.Identity.IRoleStore Store { get => throw null; } + public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set { } } public System.Collections.Generic.IList> RoleValidators { get => throw null; } + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.ILookupNormalizer KeyNormalizer { get => throw null; set { } } public virtual System.Linq.IQueryable Roles { get => throw null; } - public virtual System.Threading.Tasks.Task SetRoleNameAsync(TRole role, string name) => throw null; - protected Microsoft.AspNetCore.Identity.IRoleStore Store { get => throw null; } public virtual bool SupportsQueryableRoles { get => throw null; } public virtual bool SupportsRoleClaims { get => throw null; } - protected void ThrowIfDisposed() => throw null; - public virtual System.Threading.Tasks.Task UpdateAsync(TRole role) => throw null; - public virtual System.Threading.Tasks.Task UpdateNormalizedRoleNameAsync(TRole role) => throw null; - protected virtual System.Threading.Tasks.Task UpdateRoleAsync(TRole role) => throw null; - protected virtual System.Threading.Tasks.Task ValidateRoleAsync(TRole role) => throw null; } - public class RoleValidator : Microsoft.AspNetCore.Identity.IRoleValidator where TRole : class { - public RoleValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors = default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) => throw null; + public RoleValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors) => throw null; public virtual System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.RoleManager manager, TRole role) => throw null; } - public class SignInOptions { - public bool RequireConfirmedAccount { get => throw null; set => throw null; } - public bool RequireConfirmedEmail { get => throw null; set => throw null; } - public bool RequireConfirmedPhoneNumber { get => throw null; set => throw null; } public SignInOptions() => throw null; + public bool RequireConfirmedEmail { get => throw null; set { } } + public bool RequireConfirmedPhoneNumber { get => throw null; set { } } + public bool RequireConfirmedAccount { get => throw null; set { } } } - public class SignInResult { + public override string ToString() => throw null; + public SignInResult() => throw null; + public bool Succeeded { get => throw null; set { } } + public bool IsLockedOut { get => throw null; set { } } + public bool IsNotAllowed { get => throw null; set { } } + public bool RequiresTwoFactor { get => throw null; set { } } + public static Microsoft.AspNetCore.Identity.SignInResult Success { get => throw null; } public static Microsoft.AspNetCore.Identity.SignInResult Failed { get => throw null; } - public bool IsLockedOut { get => throw null; set => throw null; } - public bool IsNotAllowed { get => throw null; set => throw null; } public static Microsoft.AspNetCore.Identity.SignInResult LockedOut { get => throw null; } public static Microsoft.AspNetCore.Identity.SignInResult NotAllowed { get => throw null; } - public bool RequiresTwoFactor { get => throw null; set => throw null; } - public SignInResult() => throw null; - public bool Succeeded { get => throw null; set => throw null; } - public static Microsoft.AspNetCore.Identity.SignInResult Success { get => throw null; } - public override string ToString() => throw null; public static Microsoft.AspNetCore.Identity.SignInResult TwoFactorRequired { get => throw null; } } - public class StoreOptions { - public int MaxLengthForKeys { get => throw null; set => throw null; } - public bool ProtectPersonalData { get => throw null; set => throw null; } public StoreOptions() => throw null; + public int MaxLengthForKeys { get => throw null; set { } } + public bool ProtectPersonalData { get => throw null; set { } } } - public class TokenOptions { - public string AuthenticatorIssuer { get => throw null; set => throw null; } - public string AuthenticatorTokenProvider { get => throw null; set => throw null; } - public string ChangeEmailTokenProvider { get => throw null; set => throw null; } - public string ChangePhoneNumberTokenProvider { get => throw null; set => throw null; } - public static string DefaultAuthenticatorProvider; + public static string DefaultProvider; public static string DefaultEmailProvider; public static string DefaultPhoneProvider; - public static string DefaultProvider; - public string EmailConfirmationTokenProvider { get => throw null; set => throw null; } - public string PasswordResetTokenProvider { get => throw null; set => throw null; } - public System.Collections.Generic.Dictionary ProviderMap { get => throw null; set => throw null; } + public static string DefaultAuthenticatorProvider; public TokenOptions() => throw null; + public System.Collections.Generic.Dictionary ProviderMap { get => throw null; set { } } + public string EmailConfirmationTokenProvider { get => throw null; set { } } + public string PasswordResetTokenProvider { get => throw null; set { } } + public string ChangeEmailTokenProvider { get => throw null; set { } } + public string ChangePhoneNumberTokenProvider { get => throw null; set { } } + public string AuthenticatorTokenProvider { get => throw null; set { } } + public string AuthenticatorIssuer { get => throw null; set { } } } - public class TokenProviderDescriptor { - public object ProviderInstance { get => throw null; set => throw null; } - public System.Type ProviderType { get => throw null; } public TokenProviderDescriptor(System.Type type) => throw null; + public System.Type ProviderType { get => throw null; } + public object ProviderInstance { get => throw null; set { } } } - public abstract class TotpSecurityStampBasedTokenProvider : Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider where TUser : class { - public abstract System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); public virtual System.Threading.Tasks.Task GenerateAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public virtual System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; public virtual System.Threading.Tasks.Task GetUserModifierAsync(string purpose, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public abstract System.Threading.Tasks.Task CanGenerateTwoFactorTokenAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user); protected TotpSecurityStampBasedTokenProvider() => throw null; - public virtual System.Threading.Tasks.Task ValidateAsync(string purpose, string token, Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; } - - public class UpperInvariantLookupNormalizer : Microsoft.AspNetCore.Identity.ILookupNormalizer + public sealed class UpperInvariantLookupNormalizer : Microsoft.AspNetCore.Identity.ILookupNormalizer { - public string NormalizeEmail(string email) => throw null; public string NormalizeName(string name) => throw null; + public string NormalizeEmail(string email) => throw null; public UpperInvariantLookupNormalizer() => throw null; } - - public class UserClaimsPrincipalFactory : Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory where TRole : class where TUser : class - { - protected override System.Threading.Tasks.Task GenerateClaimsAsync(TUser user) => throw null; - public Microsoft.AspNetCore.Identity.RoleManager RoleManager { get => throw null; } - public UserClaimsPrincipalFactory(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.AspNetCore.Identity.RoleManager roleManager, Microsoft.Extensions.Options.IOptions options) : base(default(Microsoft.AspNetCore.Identity.UserManager), default(Microsoft.Extensions.Options.IOptions)) => throw null; - } - public class UserClaimsPrincipalFactory : Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory where TUser : class { + public UserClaimsPrincipalFactory(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; public virtual System.Threading.Tasks.Task CreateAsync(TUser user) => throw null; protected virtual System.Threading.Tasks.Task GenerateClaimsAsync(TUser user) => throw null; - public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; } - public UserClaimsPrincipalFactory(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.Extensions.Options.IOptions optionsAccessor) => throw null; public Microsoft.AspNetCore.Identity.UserManager UserManager { get => throw null; } + public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; } + } + public class UserClaimsPrincipalFactory : Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory where TUser : class where TRole : class + { + public UserClaimsPrincipalFactory(Microsoft.AspNetCore.Identity.UserManager userManager, Microsoft.AspNetCore.Identity.RoleManager roleManager, Microsoft.Extensions.Options.IOptions options) : base(default(Microsoft.AspNetCore.Identity.UserManager), default(Microsoft.Extensions.Options.IOptions)) => throw null; + protected override System.Threading.Tasks.Task GenerateClaimsAsync(TUser user) => throw null; + public Microsoft.AspNetCore.Identity.RoleManager RoleManager { get => throw null; } } - public class UserLoginInfo { - public string LoginProvider { get => throw null; set => throw null; } - public string ProviderDisplayName { get => throw null; set => throw null; } - public string ProviderKey { get => throw null; set => throw null; } public UserLoginInfo(string loginProvider, string providerKey, string displayName) => throw null; + public string LoginProvider { get => throw null; set { } } + public string ProviderKey { get => throw null; set { } } + public string ProviderDisplayName { get => throw null; set { } } } - public class UserManager : System.IDisposable where TUser : class { - public virtual System.Threading.Tasks.Task AccessFailedAsync(TUser user) => throw null; + public static string ResetPasswordTokenPurpose; + public static string ChangePhoneNumberTokenPurpose; + public static string ConfirmEmailTokenPurpose; + public UserManager(Microsoft.AspNetCore.Identity.IUserStore store, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher passwordHasher, System.Collections.Generic.IEnumerable> userValidators, System.Collections.Generic.IEnumerable> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, System.IServiceProvider services, Microsoft.Extensions.Logging.ILogger> logger) => throw null; + public void Dispose() => throw null; + public virtual string GetUserName(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual string GetUserId(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual System.Threading.Tasks.Task GetUserAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; + public virtual System.Threading.Tasks.Task GenerateConcurrencyStampAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task CreateAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task UpdateAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task DeleteAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task FindByIdAsync(string userId) => throw null; + public virtual System.Threading.Tasks.Task FindByNameAsync(string userName) => throw null; + public virtual System.Threading.Tasks.Task CreateAsync(TUser user, string password) => throw null; + public virtual string NormalizeName(string name) => throw null; + public virtual string NormalizeEmail(string email) => throw null; + public virtual System.Threading.Tasks.Task UpdateNormalizedUserNameAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task GetUserNameAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetUserNameAsync(TUser user, string userName) => throw null; + public virtual System.Threading.Tasks.Task GetUserIdAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task CheckPasswordAsync(TUser user, string password) => throw null; + public virtual System.Threading.Tasks.Task HasPasswordAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task AddPasswordAsync(TUser user, string password) => throw null; + public virtual System.Threading.Tasks.Task ChangePasswordAsync(TUser user, string currentPassword, string newPassword) => throw null; + public virtual System.Threading.Tasks.Task RemovePasswordAsync(TUser user) => throw null; + protected virtual System.Threading.Tasks.Task VerifyPasswordAsync(Microsoft.AspNetCore.Identity.IUserPasswordStore store, TUser user, string password) => throw null; + public virtual System.Threading.Tasks.Task GetSecurityStampAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task UpdateSecurityStampAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task GeneratePasswordResetTokenAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task ResetPasswordAsync(TUser user, string token, string newPassword) => throw null; + public virtual System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey) => throw null; + public virtual System.Threading.Tasks.Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey) => throw null; + public virtual System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login) => throw null; + public virtual System.Threading.Tasks.Task> GetLoginsAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task AddClaimAsync(TUser user, System.Security.Claims.Claim claim) => throw null; public virtual System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims) => throw null; - public virtual System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login) => throw null; - public virtual System.Threading.Tasks.Task AddPasswordAsync(TUser user, string password) => throw null; + public virtual System.Threading.Tasks.Task ReplaceClaimAsync(TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim) => throw null; + public virtual System.Threading.Tasks.Task RemoveClaimAsync(TUser user, System.Security.Claims.Claim claim) => throw null; + public virtual System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims) => throw null; + public virtual System.Threading.Tasks.Task> GetClaimsAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task AddToRoleAsync(TUser user, string role) => throw null; public virtual System.Threading.Tasks.Task AddToRolesAsync(TUser user, System.Collections.Generic.IEnumerable roles) => throw null; - protected virtual System.Threading.CancellationToken CancellationToken { get => throw null; } - public virtual System.Threading.Tasks.Task ChangeEmailAsync(TUser user, string newEmail, string token) => throw null; - public virtual System.Threading.Tasks.Task ChangePasswordAsync(TUser user, string currentPassword, string newPassword) => throw null; - public virtual System.Threading.Tasks.Task ChangePhoneNumberAsync(TUser user, string phoneNumber, string token) => throw null; - public const string ChangePhoneNumberTokenPurpose = default; - public virtual System.Threading.Tasks.Task CheckPasswordAsync(TUser user, string password) => throw null; - public virtual System.Threading.Tasks.Task ConfirmEmailAsync(TUser user, string token) => throw null; - public const string ConfirmEmailTokenPurpose = default; - public virtual System.Threading.Tasks.Task CountRecoveryCodesAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task CreateAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task CreateAsync(TUser user, string password) => throw null; - public virtual System.Threading.Tasks.Task CreateSecurityTokenAsync(TUser user) => throw null; - protected virtual string CreateTwoFactorRecoveryCode() => throw null; - public virtual System.Threading.Tasks.Task DeleteAsync(TUser user) => throw null; - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set => throw null; } + public virtual System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string role) => throw null; + public virtual System.Threading.Tasks.Task RemoveFromRolesAsync(TUser user, System.Collections.Generic.IEnumerable roles) => throw null; + public virtual System.Threading.Tasks.Task> GetRolesAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task IsInRoleAsync(TUser user, string role) => throw null; + public virtual System.Threading.Tasks.Task GetEmailAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetEmailAsync(TUser user, string email) => throw null; public virtual System.Threading.Tasks.Task FindByEmailAsync(string email) => throw null; - public virtual System.Threading.Tasks.Task FindByIdAsync(string userId) => throw null; - public virtual System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey) => throw null; - public virtual System.Threading.Tasks.Task FindByNameAsync(string userName) => throw null; + public virtual System.Threading.Tasks.Task UpdateNormalizedEmailAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task GenerateEmailConfirmationTokenAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task ConfirmEmailAsync(TUser user, string token) => throw null; + public virtual System.Threading.Tasks.Task IsEmailConfirmedAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task GenerateChangeEmailTokenAsync(TUser user, string newEmail) => throw null; + public virtual System.Threading.Tasks.Task ChangeEmailAsync(TUser user, string newEmail, string token) => throw null; + public virtual System.Threading.Tasks.Task GetPhoneNumberAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber) => throw null; + public virtual System.Threading.Tasks.Task ChangePhoneNumberAsync(TUser user, string phoneNumber, string token) => throw null; + public virtual System.Threading.Tasks.Task IsPhoneNumberConfirmedAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task GenerateChangePhoneNumberTokenAsync(TUser user, string phoneNumber) => throw null; - public virtual System.Threading.Tasks.Task GenerateConcurrencyStampAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GenerateEmailConfirmationTokenAsync(TUser user) => throw null; - public virtual string GenerateNewAuthenticatorKey() => throw null; - public virtual System.Threading.Tasks.Task> GenerateNewTwoFactorRecoveryCodesAsync(TUser user, int number) => throw null; - public virtual System.Threading.Tasks.Task GeneratePasswordResetTokenAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GenerateTwoFactorTokenAsync(TUser user, string tokenProvider) => throw null; + public virtual System.Threading.Tasks.Task VerifyChangePhoneNumberTokenAsync(TUser user, string token, string phoneNumber) => throw null; + public virtual System.Threading.Tasks.Task VerifyUserTokenAsync(TUser user, string tokenProvider, string purpose, string token) => throw null; public virtual System.Threading.Tasks.Task GenerateUserTokenAsync(TUser user, string tokenProvider, string purpose) => throw null; - public virtual System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) => throw null; - public virtual System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user) => throw null; - public static string GetChangeEmailTokenPurpose(string newEmail) => throw null; - public virtual System.Threading.Tasks.Task> GetClaimsAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetEmailAsync(TUser user) => throw null; + public virtual void RegisterTokenProvider(string providerName, Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider provider) => throw null; + public virtual System.Threading.Tasks.Task> GetValidTwoFactorProvidersAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task VerifyTwoFactorTokenAsync(TUser user, string tokenProvider, string token) => throw null; + public virtual System.Threading.Tasks.Task GenerateTwoFactorTokenAsync(TUser user, string tokenProvider) => throw null; + public virtual System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetTwoFactorEnabledAsync(TUser user, bool enabled) => throw null; + public virtual System.Threading.Tasks.Task IsLockedOutAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetLockoutEnabledAsync(TUser user, bool enabled) => throw null; public virtual System.Threading.Tasks.Task GetLockoutEnabledAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task GetLockoutEndDateAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task> GetLoginsAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetPhoneNumberAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task> GetRolesAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetSecurityStampAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task GetUserAsync(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public virtual string GetUserId(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public virtual System.Threading.Tasks.Task GetUserIdAsync(TUser user) => throw null; - public virtual string GetUserName(System.Security.Claims.ClaimsPrincipal principal) => throw null; - public virtual System.Threading.Tasks.Task GetUserNameAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd) => throw null; + public virtual System.Threading.Tasks.Task AccessFailedAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task ResetAccessFailedCountAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task> GetUsersForClaimAsync(System.Security.Claims.Claim claim) => throw null; public virtual System.Threading.Tasks.Task> GetUsersInRoleAsync(string roleName) => throw null; - public virtual System.Threading.Tasks.Task> GetValidTwoFactorProvidersAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task HasPasswordAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task IsEmailConfirmedAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task IsInRoleAsync(TUser user, string role) => throw null; - public virtual System.Threading.Tasks.Task IsLockedOutAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task IsPhoneNumberConfirmedAsync(TUser user) => throw null; - public Microsoft.AspNetCore.Identity.ILookupNormalizer KeyNormalizer { get => throw null; set => throw null; } - public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set => throw null; } - public virtual string NormalizeEmail(string email) => throw null; - public virtual string NormalizeName(string name) => throw null; - public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; set => throw null; } - public Microsoft.AspNetCore.Identity.IPasswordHasher PasswordHasher { get => throw null; set => throw null; } - public System.Collections.Generic.IList> PasswordValidators { get => throw null; } - public virtual System.Threading.Tasks.Task RedeemTwoFactorRecoveryCodeAsync(TUser user, string code) => throw null; - public virtual void RegisterTokenProvider(string providerName, Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider provider) => throw null; + public virtual System.Threading.Tasks.Task GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) => throw null; + public virtual System.Threading.Tasks.Task SetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName, string tokenValue) => throw null; public virtual System.Threading.Tasks.Task RemoveAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) => throw null; - public virtual System.Threading.Tasks.Task RemoveClaimAsync(TUser user, System.Security.Claims.Claim claim) => throw null; - public virtual System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims) => throw null; - public virtual System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string role) => throw null; - public virtual System.Threading.Tasks.Task RemoveFromRolesAsync(TUser user, System.Collections.Generic.IEnumerable roles) => throw null; - public virtual System.Threading.Tasks.Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey) => throw null; - public virtual System.Threading.Tasks.Task RemovePasswordAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task ReplaceClaimAsync(TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim) => throw null; - public virtual System.Threading.Tasks.Task ResetAccessFailedCountAsync(TUser user) => throw null; + public virtual System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user) => throw null; public virtual System.Threading.Tasks.Task ResetAuthenticatorKeyAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task ResetPasswordAsync(TUser user, string token, string newPassword) => throw null; - public const string ResetPasswordTokenPurpose = default; - public virtual System.Threading.Tasks.Task SetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName, string tokenValue) => throw null; - public virtual System.Threading.Tasks.Task SetEmailAsync(TUser user, string email) => throw null; - public virtual System.Threading.Tasks.Task SetLockoutEnabledAsync(TUser user, bool enabled) => throw null; - public virtual System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd) => throw null; - public virtual System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber) => throw null; - public virtual System.Threading.Tasks.Task SetTwoFactorEnabledAsync(TUser user, bool enabled) => throw null; - public virtual System.Threading.Tasks.Task SetUserNameAsync(TUser user, string userName) => throw null; - protected internal Microsoft.AspNetCore.Identity.IUserStore Store { get => throw null; set => throw null; } - public virtual bool SupportsQueryableUsers { get => throw null; } + public virtual string GenerateNewAuthenticatorKey() => throw null; + public virtual System.Threading.Tasks.Task> GenerateNewTwoFactorRecoveryCodesAsync(TUser user, int number) => throw null; + protected virtual string CreateTwoFactorRecoveryCode() => throw null; + public virtual System.Threading.Tasks.Task RedeemTwoFactorRecoveryCodeAsync(TUser user, string code) => throw null; + public virtual System.Threading.Tasks.Task CountRecoveryCodesAsync(TUser user) => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public virtual System.Threading.Tasks.Task CreateSecurityTokenAsync(TUser user) => throw null; + protected virtual System.Threading.Tasks.Task UpdatePasswordHash(TUser user, string newPassword, bool validatePassword) => throw null; + public static string GetChangeEmailTokenPurpose(string newEmail) => throw null; + protected System.Threading.Tasks.Task ValidateUserAsync(TUser user) => throw null; + protected System.Threading.Tasks.Task ValidatePasswordAsync(TUser user, string password) => throw null; + protected virtual System.Threading.Tasks.Task UpdateUserAsync(TUser user) => throw null; + protected void ThrowIfDisposed() => throw null; + protected virtual System.Threading.CancellationToken CancellationToken { get => throw null; } + protected Microsoft.AspNetCore.Identity.IUserStore Store { get => throw null; set { } } + public virtual Microsoft.Extensions.Logging.ILogger Logger { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.IPasswordHasher PasswordHasher { get => throw null; set { } } + public System.Collections.Generic.IList> UserValidators { get => throw null; } + public System.Collections.Generic.IList> PasswordValidators { get => throw null; } + public Microsoft.AspNetCore.Identity.ILookupNormalizer KeyNormalizer { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set { } } + public Microsoft.AspNetCore.Identity.IdentityOptions Options { get => throw null; set { } } public virtual bool SupportsUserAuthenticationTokens { get => throw null; } public virtual bool SupportsUserAuthenticatorKey { get => throw null; } - public virtual bool SupportsUserClaim { get => throw null; } - public virtual bool SupportsUserEmail { get => throw null; } - public virtual bool SupportsUserLockout { get => throw null; } - public virtual bool SupportsUserLogin { get => throw null; } + public virtual bool SupportsUserTwoFactorRecoveryCodes { get => throw null; } + public virtual bool SupportsUserTwoFactor { get => throw null; } public virtual bool SupportsUserPassword { get => throw null; } - public virtual bool SupportsUserPhoneNumber { get => throw null; } - public virtual bool SupportsUserRole { get => throw null; } public virtual bool SupportsUserSecurityStamp { get => throw null; } - public virtual bool SupportsUserTwoFactor { get => throw null; } - public virtual bool SupportsUserTwoFactorRecoveryCodes { get => throw null; } - protected void ThrowIfDisposed() => throw null; - public virtual System.Threading.Tasks.Task UpdateAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task UpdateNormalizedEmailAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task UpdateNormalizedUserNameAsync(TUser user) => throw null; - protected virtual System.Threading.Tasks.Task UpdatePasswordHash(TUser user, string newPassword, bool validatePassword) => throw null; - public virtual System.Threading.Tasks.Task UpdateSecurityStampAsync(TUser user) => throw null; - protected virtual System.Threading.Tasks.Task UpdateUserAsync(TUser user) => throw null; - public UserManager(Microsoft.AspNetCore.Identity.IUserStore store, Microsoft.Extensions.Options.IOptions optionsAccessor, Microsoft.AspNetCore.Identity.IPasswordHasher passwordHasher, System.Collections.Generic.IEnumerable> userValidators, System.Collections.Generic.IEnumerable> passwordValidators, Microsoft.AspNetCore.Identity.ILookupNormalizer keyNormalizer, Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors, System.IServiceProvider services, Microsoft.Extensions.Logging.ILogger> logger) => throw null; - public System.Collections.Generic.IList> UserValidators { get => throw null; } + public virtual bool SupportsUserRole { get => throw null; } + public virtual bool SupportsUserLogin { get => throw null; } + public virtual bool SupportsUserEmail { get => throw null; } + public virtual bool SupportsUserPhoneNumber { get => throw null; } + public virtual bool SupportsUserClaim { get => throw null; } + public virtual bool SupportsUserLockout { get => throw null; } + public virtual bool SupportsQueryableUsers { get => throw null; } public virtual System.Linq.IQueryable Users { get => throw null; } - protected System.Threading.Tasks.Task ValidatePasswordAsync(TUser user, string password) => throw null; - protected System.Threading.Tasks.Task ValidateUserAsync(TUser user) => throw null; - public virtual System.Threading.Tasks.Task VerifyChangePhoneNumberTokenAsync(TUser user, string token, string phoneNumber) => throw null; - protected virtual System.Threading.Tasks.Task VerifyPasswordAsync(Microsoft.AspNetCore.Identity.IUserPasswordStore store, TUser user, string password) => throw null; - public virtual System.Threading.Tasks.Task VerifyTwoFactorTokenAsync(TUser user, string tokenProvider, string token) => throw null; - public virtual System.Threading.Tasks.Task VerifyUserTokenAsync(TUser user, string tokenProvider, string purpose, string token) => throw null; } - public class UserOptions { - public string AllowedUserNameCharacters { get => throw null; set => throw null; } - public bool RequireUniqueEmail { get => throw null; set => throw null; } public UserOptions() => throw null; + public string AllowedUserNameCharacters { get => throw null; set { } } + public bool RequireUniqueEmail { get => throw null; set { } } } - public class UserValidator : Microsoft.AspNetCore.Identity.IUserValidator where TUser : class { - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber Describer { get => throw null; } - public UserValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors = default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) => throw null; + public UserValidator(Microsoft.AspNetCore.Identity.IdentityErrorDescriber errors) => throw null; public virtual System.Threading.Tasks.Task ValidateAsync(Microsoft.AspNetCore.Identity.UserManager manager, TUser user) => throw null; + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber Describer { get => throw null; } } - } } namespace Extensions @@ -687,7 +622,6 @@ public static partial class IdentityServiceCollectionExtensions public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TUser : class => throw null; public static Microsoft.AspNetCore.Identity.IdentityBuilder AddIdentityCore(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) where TUser : class => throw null; } - } } } @@ -697,11 +631,10 @@ namespace Security { namespace Claims { - public static class PrincipalExtensions + public static partial class PrincipalExtensions { public static string FindFirstValue(this System.Security.Claims.ClaimsPrincipal principal, string claimType) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Stores.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Stores.cs index 9784752a2331c..e54cd75db312e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Stores.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Identity.Stores.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Identity.Stores, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace AspNetCore @@ -12,203 +11,191 @@ public class IdentityRole : Microsoft.AspNetCore.Identity.IdentityRole public IdentityRole() => throw null; public IdentityRole(string roleName) => throw null; } - public class IdentityRole where TKey : System.IEquatable { - public virtual string ConcurrencyStamp { get => throw null; set => throw null; } - public virtual TKey Id { get => throw null; set => throw null; } public IdentityRole() => throw null; public IdentityRole(string roleName) => throw null; - public virtual string Name { get => throw null; set => throw null; } - public virtual string NormalizedName { get => throw null; set => throw null; } public override string ToString() => throw null; + public virtual TKey Id { get => throw null; set { } } + public virtual string Name { get => throw null; set { } } + public virtual string NormalizedName { get => throw null; set { } } + public virtual string ConcurrencyStamp { get => throw null; set { } } } - public class IdentityRoleClaim where TKey : System.IEquatable { - public virtual string ClaimType { get => throw null; set => throw null; } - public virtual string ClaimValue { get => throw null; set => throw null; } - public virtual int Id { get => throw null; set => throw null; } - public IdentityRoleClaim() => throw null; - public virtual void InitializeFromClaim(System.Security.Claims.Claim other) => throw null; - public virtual TKey RoleId { get => throw null; set => throw null; } public virtual System.Security.Claims.Claim ToClaim() => throw null; + public virtual void InitializeFromClaim(System.Security.Claims.Claim other) => throw null; + public IdentityRoleClaim() => throw null; + public virtual int Id { get => throw null; set { } } + public virtual TKey RoleId { get => throw null; set { } } + public virtual string ClaimType { get => throw null; set { } } + public virtual string ClaimValue { get => throw null; set { } } } - public class IdentityUser : Microsoft.AspNetCore.Identity.IdentityUser { public IdentityUser() => throw null; public IdentityUser(string userName) => throw null; } - public class IdentityUser where TKey : System.IEquatable { - public virtual int AccessFailedCount { get => throw null; set => throw null; } - public virtual string ConcurrencyStamp { get => throw null; set => throw null; } - public virtual string Email { get => throw null; set => throw null; } - public virtual bool EmailConfirmed { get => throw null; set => throw null; } - public virtual TKey Id { get => throw null; set => throw null; } public IdentityUser() => throw null; public IdentityUser(string userName) => throw null; - public virtual bool LockoutEnabled { get => throw null; set => throw null; } - public virtual System.DateTimeOffset? LockoutEnd { get => throw null; set => throw null; } - public virtual string NormalizedEmail { get => throw null; set => throw null; } - public virtual string NormalizedUserName { get => throw null; set => throw null; } - public virtual string PasswordHash { get => throw null; set => throw null; } - public virtual string PhoneNumber { get => throw null; set => throw null; } - public virtual bool PhoneNumberConfirmed { get => throw null; set => throw null; } - public virtual string SecurityStamp { get => throw null; set => throw null; } public override string ToString() => throw null; - public virtual bool TwoFactorEnabled { get => throw null; set => throw null; } - public virtual string UserName { get => throw null; set => throw null; } + public virtual TKey Id { get => throw null; set { } } + public virtual string UserName { get => throw null; set { } } + public virtual string NormalizedUserName { get => throw null; set { } } + public virtual string Email { get => throw null; set { } } + public virtual string NormalizedEmail { get => throw null; set { } } + public virtual bool EmailConfirmed { get => throw null; set { } } + public virtual string PasswordHash { get => throw null; set { } } + public virtual string SecurityStamp { get => throw null; set { } } + public virtual string ConcurrencyStamp { get => throw null; set { } } + public virtual string PhoneNumber { get => throw null; set { } } + public virtual bool PhoneNumberConfirmed { get => throw null; set { } } + public virtual bool TwoFactorEnabled { get => throw null; set { } } + public virtual System.DateTimeOffset? LockoutEnd { get => throw null; set { } } + public virtual bool LockoutEnabled { get => throw null; set { } } + public virtual int AccessFailedCount { get => throw null; set { } } } - public class IdentityUserClaim where TKey : System.IEquatable { - public virtual string ClaimType { get => throw null; set => throw null; } - public virtual string ClaimValue { get => throw null; set => throw null; } - public virtual int Id { get => throw null; set => throw null; } - public IdentityUserClaim() => throw null; - public virtual void InitializeFromClaim(System.Security.Claims.Claim claim) => throw null; public virtual System.Security.Claims.Claim ToClaim() => throw null; - public virtual TKey UserId { get => throw null; set => throw null; } + public virtual void InitializeFromClaim(System.Security.Claims.Claim claim) => throw null; + public IdentityUserClaim() => throw null; + public virtual int Id { get => throw null; set { } } + public virtual TKey UserId { get => throw null; set { } } + public virtual string ClaimType { get => throw null; set { } } + public virtual string ClaimValue { get => throw null; set { } } } - public class IdentityUserLogin where TKey : System.IEquatable { public IdentityUserLogin() => throw null; - public virtual string LoginProvider { get => throw null; set => throw null; } - public virtual string ProviderDisplayName { get => throw null; set => throw null; } - public virtual string ProviderKey { get => throw null; set => throw null; } - public virtual TKey UserId { get => throw null; set => throw null; } + public virtual string LoginProvider { get => throw null; set { } } + public virtual string ProviderKey { get => throw null; set { } } + public virtual string ProviderDisplayName { get => throw null; set { } } + public virtual TKey UserId { get => throw null; set { } } } - public class IdentityUserRole where TKey : System.IEquatable { public IdentityUserRole() => throw null; - public virtual TKey RoleId { get => throw null; set => throw null; } - public virtual TKey UserId { get => throw null; set => throw null; } + public virtual TKey UserId { get => throw null; set { } } + public virtual TKey RoleId { get => throw null; set { } } } - public class IdentityUserToken where TKey : System.IEquatable { public IdentityUserToken() => throw null; - public virtual string LoginProvider { get => throw null; set => throw null; } - public virtual string Name { get => throw null; set => throw null; } - public virtual TKey UserId { get => throw null; set => throw null; } - public virtual string Value { get => throw null; set => throw null; } + public virtual TKey UserId { get => throw null; set { } } + public virtual string LoginProvider { get => throw null; set { } } + public virtual string Name { get => throw null; set { } } + public virtual string Value { get => throw null; set { } } } - - public abstract class RoleStoreBase : Microsoft.AspNetCore.Identity.IQueryableRoleStore, Microsoft.AspNetCore.Identity.IRoleClaimStore, Microsoft.AspNetCore.Identity.IRoleStore, System.IDisposable where TKey : System.IEquatable where TRole : Microsoft.AspNetCore.Identity.IdentityRole where TRoleClaim : Microsoft.AspNetCore.Identity.IdentityRoleClaim, new() where TUserRole : Microsoft.AspNetCore.Identity.IdentityUserRole, new() + public abstract class RoleStoreBase : Microsoft.AspNetCore.Identity.IQueryableRoleStore, Microsoft.AspNetCore.Identity.IRoleStore, System.IDisposable, Microsoft.AspNetCore.Identity.IRoleClaimStore where TRole : Microsoft.AspNetCore.Identity.IdentityRole where TKey : System.IEquatable where TUserRole : Microsoft.AspNetCore.Identity.IdentityUserRole, new() where TRoleClaim : Microsoft.AspNetCore.Identity.IdentityRoleClaim, new() { - public abstract System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public RoleStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) => throw null; + public abstract System.Threading.Tasks.Task CreateAsync(TRole role, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task UpdateAsync(TRole role, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task DeleteAsync(TRole role, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task GetRoleIdAsync(TRole role, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetRoleNameAsync(TRole role, string roleName, System.Threading.CancellationToken cancellationToken) => throw null; public virtual TKey ConvertIdFromString(string id) => throw null; public virtual string ConvertIdToString(TKey id) => throw null; - public abstract System.Threading.Tasks.Task CreateAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected virtual TRoleClaim CreateRoleClaim(TRole role, System.Security.Claims.Claim claim) => throw null; - public abstract System.Threading.Tasks.Task DeleteAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public abstract System.Threading.Tasks.Task FindByIdAsync(string id, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task FindByNameAsync(string normalizedName, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task GetNormalizedRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken) => throw null; + protected void ThrowIfDisposed() => throw null; public void Dispose() => throw null; - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set => throw null; } - public abstract System.Threading.Tasks.Task FindByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task FindByNameAsync(string normalizedName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task> GetClaimsAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task GetNormalizedRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetRoleIdAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetRoleNameAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract System.Threading.Tasks.Task RemoveClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public RoleStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) => throw null; + public abstract System.Threading.Tasks.Task> GetClaimsAsync(TRole role, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task AddClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task RemoveClaimAsync(TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); + protected virtual TRoleClaim CreateRoleClaim(TRole role, System.Security.Claims.Claim claim) => throw null; + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set { } } public abstract System.Linq.IQueryable Roles { get; } - public virtual System.Threading.Tasks.Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetRoleNameAsync(TRole role, string roleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - protected void ThrowIfDisposed() => throw null; - public abstract System.Threading.Tasks.Task UpdateAsync(TRole role, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - - public abstract class UserStoreBase : Microsoft.AspNetCore.Identity.UserStoreBase, Microsoft.AspNetCore.Identity.IUserRoleStore, Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TKey : System.IEquatable where TRole : Microsoft.AspNetCore.Identity.IdentityRole where TRoleClaim : Microsoft.AspNetCore.Identity.IdentityRoleClaim, new() where TUser : Microsoft.AspNetCore.Identity.IdentityUser where TUserClaim : Microsoft.AspNetCore.Identity.IdentityUserClaim, new() where TUserLogin : Microsoft.AspNetCore.Identity.IdentityUserLogin, new() where TUserRole : Microsoft.AspNetCore.Identity.IdentityUserRole, new() where TUserToken : Microsoft.AspNetCore.Identity.IdentityUserToken, new() + public abstract class UserStoreBase : Microsoft.AspNetCore.Identity.IUserLoginStore, Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable, Microsoft.AspNetCore.Identity.IUserClaimStore, Microsoft.AspNetCore.Identity.IUserPasswordStore, Microsoft.AspNetCore.Identity.IUserSecurityStampStore, Microsoft.AspNetCore.Identity.IUserEmailStore, Microsoft.AspNetCore.Identity.IUserLockoutStore, Microsoft.AspNetCore.Identity.IUserPhoneNumberStore, Microsoft.AspNetCore.Identity.IQueryableUserStore, Microsoft.AspNetCore.Identity.IUserTwoFactorStore, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore, Microsoft.AspNetCore.Identity.IUserAuthenticatorKeyStore, Microsoft.AspNetCore.Identity.IUserTwoFactorRecoveryCodeStore where TUser : Microsoft.AspNetCore.Identity.IdentityUser where TKey : System.IEquatable where TUserClaim : Microsoft.AspNetCore.Identity.IdentityUserClaim, new() where TUserLogin : Microsoft.AspNetCore.Identity.IdentityUserLogin, new() where TUserToken : Microsoft.AspNetCore.Identity.IdentityUserToken, new() { - public abstract System.Threading.Tasks.Task AddToRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected virtual TUserRole CreateUserRole(TUser user, TRole role) => throw null; - protected abstract System.Threading.Tasks.Task FindRoleAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken); - protected abstract System.Threading.Tasks.Task FindUserRoleAsync(TKey userId, TKey roleId, System.Threading.CancellationToken cancellationToken); - public abstract System.Threading.Tasks.Task> GetRolesAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task> GetUsersInRoleAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task IsInRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public UserStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) : base(default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) => throw null; - } - - public abstract class UserStoreBase : Microsoft.AspNetCore.Identity.IQueryableUserStore, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore, Microsoft.AspNetCore.Identity.IUserAuthenticatorKeyStore, Microsoft.AspNetCore.Identity.IUserClaimStore, Microsoft.AspNetCore.Identity.IUserEmailStore, Microsoft.AspNetCore.Identity.IUserLockoutStore, Microsoft.AspNetCore.Identity.IUserLoginStore, Microsoft.AspNetCore.Identity.IUserPasswordStore, Microsoft.AspNetCore.Identity.IUserPhoneNumberStore, Microsoft.AspNetCore.Identity.IUserSecurityStampStore, Microsoft.AspNetCore.Identity.IUserStore, Microsoft.AspNetCore.Identity.IUserTwoFactorRecoveryCodeStore, Microsoft.AspNetCore.Identity.IUserTwoFactorStore, System.IDisposable where TKey : System.IEquatable where TUser : Microsoft.AspNetCore.Identity.IdentityUser where TUserClaim : Microsoft.AspNetCore.Identity.IdentityUserClaim, new() where TUserLogin : Microsoft.AspNetCore.Identity.IdentityUserLogin, new() where TUserToken : Microsoft.AspNetCore.Identity.IdentityUserToken, new() - { - public abstract System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected abstract System.Threading.Tasks.Task AddUserTokenAsync(TUserToken token); - public virtual TKey ConvertIdFromString(string id) => throw null; - public virtual string ConvertIdToString(TKey id) => throw null; - public virtual System.Threading.Tasks.Task CountCodesAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; - public abstract System.Threading.Tasks.Task CreateAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + public UserStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) => throw null; protected virtual TUserClaim CreateUserClaim(TUser user, System.Security.Claims.Claim claim) => throw null; protected virtual TUserLogin CreateUserLogin(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login) => throw null; protected virtual TUserToken CreateUserToken(TUser user, string loginProvider, string name, string value) => throw null; - public abstract System.Threading.Tasks.Task DeleteAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public void Dispose() => throw null; - public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set => throw null; } - public abstract System.Threading.Tasks.Task FindByEmailAsync(string normalizedEmail, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task FindByIdAsync(string userId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract System.Threading.Tasks.Task FindByNameAsync(string normalizedUserName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected abstract System.Threading.Tasks.Task FindTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task GetUserIdAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetUserNameAsync(TUser user, string userName, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetNormalizedUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetNormalizedUserNameAsync(TUser user, string normalizedName, System.Threading.CancellationToken cancellationToken) => throw null; + public abstract System.Threading.Tasks.Task CreateAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task UpdateAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task DeleteAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task FindByIdAsync(string userId, System.Threading.CancellationToken cancellationToken); + public virtual TKey ConvertIdFromString(string id) => throw null; + public virtual string ConvertIdToString(TKey id) => throw null; + public abstract System.Threading.Tasks.Task FindByNameAsync(string normalizedUserName, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task SetPasswordHashAsync(TUser user, string passwordHash, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetPasswordHashAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task HasPasswordAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; protected abstract System.Threading.Tasks.Task FindUserAsync(TKey userId, System.Threading.CancellationToken cancellationToken); protected abstract System.Threading.Tasks.Task FindUserLoginAsync(TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); protected abstract System.Threading.Tasks.Task FindUserLoginAsync(string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); - public virtual System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; - public abstract System.Threading.Tasks.Task> GetClaimsAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task GetEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetEmailConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetLockoutEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetLockoutEndDateAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract System.Threading.Tasks.Task> GetLoginsAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task GetNormalizedEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetNormalizedUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetPasswordHashAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetPhoneNumberAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetPhoneNumberConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetSecurityStampAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetUserIdAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task GetUserNameAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public abstract System.Threading.Tasks.Task> GetUsersForClaimAsync(System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task HasPasswordAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task IncrementAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task RedeemCodeAsync(TUser user, string code, System.Threading.CancellationToken cancellationToken) => throw null; - public abstract System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Threading.Tasks.Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task RemoveTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken) => throw null; + protected void ThrowIfDisposed() => throw null; + public void Dispose() => throw null; + public abstract System.Threading.Tasks.Task> GetClaimsAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task AddClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task ReplaceClaimAsync(TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task RemoveClaimsAsync(TUser user, System.Collections.Generic.IEnumerable claims, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task AddLoginAsync(TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task RemoveLoginAsync(TUser user, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task> GetLoginsAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task FindByLoginAsync(string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetEmailConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetEmailConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetEmailAsync(TUser user, string email, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetNormalizedEmailAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetNormalizedEmailAsync(TUser user, string normalizedEmail, System.Threading.CancellationToken cancellationToken) => throw null; + public abstract System.Threading.Tasks.Task FindByEmailAsync(string normalizedEmail, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.Task GetLockoutEndDateAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task IncrementAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task ResetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetLockoutEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetLockoutEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetPhoneNumberAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetPhoneNumberConfirmedAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetPhoneNumberConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetSecurityStampAsync(TUser user, string stamp, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetSecurityStampAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetTwoFactorEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetTwoFactorEnabledAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public abstract System.Threading.Tasks.Task> GetUsersForClaimAsync(System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken); + protected abstract System.Threading.Tasks.Task FindTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken); + protected abstract System.Threading.Tasks.Task AddUserTokenAsync(TUserToken token); protected abstract System.Threading.Tasks.Task RemoveUserTokenAsync(TUserToken token); - public abstract System.Threading.Tasks.Task ReplaceClaimAsync(TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public virtual System.Threading.Tasks.Task ReplaceCodesAsync(TUser user, System.Collections.Generic.IEnumerable recoveryCodes, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task ResetAccessFailedCountAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetAuthenticatorKeyAsync(TUser user, string key, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task SetEmailAsync(TUser user, string email, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetEmailConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetLockoutEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetLockoutEndDateAsync(TUser user, System.DateTimeOffset? lockoutEnd, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetNormalizedEmailAsync(TUser user, string normalizedEmail, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetNormalizedUserNameAsync(TUser user, string normalizedName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetPasswordHashAsync(TUser user, string passwordHash, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetPhoneNumberAsync(TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetPhoneNumberConfirmedAsync(TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetSecurityStampAsync(TUser user, string stamp, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; public virtual System.Threading.Tasks.Task SetTokenAsync(TUser user, string loginProvider, string name, string value, System.Threading.CancellationToken cancellationToken) => throw null; - public virtual System.Threading.Tasks.Task SetTwoFactorEnabledAsync(TUser user, bool enabled, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task SetUserNameAsync(TUser user, string userName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - protected void ThrowIfDisposed() => throw null; - public abstract System.Threading.Tasks.Task UpdateAsync(TUser user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public UserStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) => throw null; + public virtual System.Threading.Tasks.Task RemoveTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetTokenAsync(TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task SetAuthenticatorKeyAsync(TUser user, string key, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task GetAuthenticatorKeyAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task CountCodesAsync(TUser user, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task ReplaceCodesAsync(TUser user, System.Collections.Generic.IEnumerable recoveryCodes, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task RedeemCodeAsync(TUser user, string code, System.Threading.CancellationToken cancellationToken) => throw null; + public Microsoft.AspNetCore.Identity.IdentityErrorDescriber ErrorDescriber { get => throw null; set { } } public abstract System.Linq.IQueryable Users { get; } } - + public abstract class UserStoreBase : Microsoft.AspNetCore.Identity.UserStoreBase, Microsoft.AspNetCore.Identity.IUserRoleStore, Microsoft.AspNetCore.Identity.IUserStore, System.IDisposable where TUser : Microsoft.AspNetCore.Identity.IdentityUser where TRole : Microsoft.AspNetCore.Identity.IdentityRole where TKey : System.IEquatable where TUserClaim : Microsoft.AspNetCore.Identity.IdentityUserClaim, new() where TUserRole : Microsoft.AspNetCore.Identity.IdentityUserRole, new() where TUserLogin : Microsoft.AspNetCore.Identity.IdentityUserLogin, new() where TUserToken : Microsoft.AspNetCore.Identity.IdentityUserToken, new() where TRoleClaim : Microsoft.AspNetCore.Identity.IdentityRoleClaim, new() + { + public UserStoreBase(Microsoft.AspNetCore.Identity.IdentityErrorDescriber describer) : base(default(Microsoft.AspNetCore.Identity.IdentityErrorDescriber)) => throw null; + protected virtual TUserRole CreateUserRole(TUser user, TRole role) => throw null; + public abstract System.Threading.Tasks.Task> GetUsersInRoleAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task AddToRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task RemoveFromRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task> GetRolesAsync(TUser user, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.Task IsInRoleAsync(TUser user, string normalizedRoleName, System.Threading.CancellationToken cancellationToken); + protected abstract System.Threading.Tasks.Task FindRoleAsync(string normalizedRoleName, System.Threading.CancellationToken cancellationToken); + protected abstract System.Threading.Tasks.Task FindUserRoleAsync(TKey userId, TKey roleId, System.Threading.CancellationToken cancellationToken); + } } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.Abstractions.cs index c64b40cfc9a61..6312c758d6ddc 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Localization.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -10,48 +9,42 @@ namespace Localization public interface IStringLocalizer { System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures); - Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get; } Microsoft.Extensions.Localization.LocalizedString this[string name] { get; } + Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get; } } - public interface IStringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer { } - public interface IStringLocalizerFactory { Microsoft.Extensions.Localization.IStringLocalizer Create(System.Type resourceSource); Microsoft.Extensions.Localization.IStringLocalizer Create(string baseName, string location); } - public class LocalizedString { public LocalizedString(string name, string value) => throw null; public LocalizedString(string name, string value, bool resourceNotFound) => throw null; public LocalizedString(string name, string value, bool resourceNotFound, string searchedLocation) => throw null; + public static implicit operator string(Microsoft.Extensions.Localization.LocalizedString localizedString) => throw null; + public override string ToString() => throw null; public string Name { get => throw null; } + public string Value { get => throw null; } public bool ResourceNotFound { get => throw null; } public string SearchedLocation { get => throw null; } - public override string ToString() => throw null; - public string Value { get => throw null; } - public static implicit operator string(Microsoft.Extensions.Localization.LocalizedString localizedString) => throw null; - } - - public class StringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer, Microsoft.Extensions.Localization.IStringLocalizer - { - public System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; - public virtual Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get => throw null; } - public virtual Microsoft.Extensions.Localization.LocalizedString this[string name] { get => throw null; } - public StringLocalizer(Microsoft.Extensions.Localization.IStringLocalizerFactory factory) => throw null; } - - public static class StringLocalizerExtensions + public static partial class StringLocalizerExtensions { - public static System.Collections.Generic.IEnumerable GetAllStrings(this Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) => throw null; public static Microsoft.Extensions.Localization.LocalizedString GetString(this Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer, string name) => throw null; public static Microsoft.Extensions.Localization.LocalizedString GetString(this Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer, string name, params object[] arguments) => throw null; + public static System.Collections.Generic.IEnumerable GetAllStrings(this Microsoft.Extensions.Localization.IStringLocalizer stringLocalizer) => throw null; + } + public class StringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer, Microsoft.Extensions.Localization.IStringLocalizer + { + public StringLocalizer(Microsoft.Extensions.Localization.IStringLocalizerFactory factory) => throw null; + public System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; + public virtual Microsoft.Extensions.Localization.LocalizedString this[string name] { get => throw null; } + public virtual Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.cs index b1134a1f3ec1b..792a8cdaf1036 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Localization.cs @@ -1,18 +1,16 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Localization, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class LocalizationServiceCollectionExtensions + public static partial class LocalizationServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLocalization(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } namespace Localization { @@ -20,55 +18,48 @@ public interface IResourceNamesCache { System.Collections.Generic.IList GetOrAdd(string name, System.Func> valueFactory); } - public class LocalizationOptions { public LocalizationOptions() => throw null; - public string ResourcesPath { get => throw null; set => throw null; } + public string ResourcesPath { get => throw null; set { } } } - public class ResourceLocationAttribute : System.Attribute { - public string ResourceLocation { get => throw null; } public ResourceLocationAttribute(string resourceLocation) => throw null; + public string ResourceLocation { get => throw null; } } - public class ResourceManagerStringLocalizer : Microsoft.Extensions.Localization.IStringLocalizer { + public ResourceManagerStringLocalizer(System.Resources.ResourceManager resourceManager, System.Reflection.Assembly resourceAssembly, string baseName, Microsoft.Extensions.Localization.IResourceNamesCache resourceNamesCache, Microsoft.Extensions.Logging.ILogger logger) => throw null; public virtual System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures) => throw null; protected System.Collections.Generic.IEnumerable GetAllStrings(bool includeParentCultures, System.Globalization.CultureInfo culture) => throw null; protected string GetStringSafely(string name, System.Globalization.CultureInfo culture) => throw null; - public virtual Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get => throw null; } public virtual Microsoft.Extensions.Localization.LocalizedString this[string name] { get => throw null; } - public ResourceManagerStringLocalizer(System.Resources.ResourceManager resourceManager, System.Reflection.Assembly resourceAssembly, string baseName, Microsoft.Extensions.Localization.IResourceNamesCache resourceNamesCache, Microsoft.Extensions.Logging.ILogger logger) => throw null; + public virtual Microsoft.Extensions.Localization.LocalizedString this[string name, params object[] arguments] { get => throw null; } } - public class ResourceManagerStringLocalizerFactory : Microsoft.Extensions.Localization.IStringLocalizerFactory { - public Microsoft.Extensions.Localization.IStringLocalizer Create(System.Type resourceSource) => throw null; - public Microsoft.Extensions.Localization.IStringLocalizer Create(string baseName, string location) => throw null; - protected virtual Microsoft.Extensions.Localization.ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer(System.Reflection.Assembly assembly, string baseName) => throw null; - protected virtual Microsoft.Extensions.Localization.ResourceLocationAttribute GetResourceLocationAttribute(System.Reflection.Assembly assembly) => throw null; + public ResourceManagerStringLocalizerFactory(Microsoft.Extensions.Options.IOptions localizationOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; protected virtual string GetResourcePrefix(System.Reflection.TypeInfo typeInfo) => throw null; protected virtual string GetResourcePrefix(System.Reflection.TypeInfo typeInfo, string baseNamespace, string resourcesRelativePath) => throw null; protected virtual string GetResourcePrefix(string baseResourceName, string baseNamespace) => throw null; + public Microsoft.Extensions.Localization.IStringLocalizer Create(System.Type resourceSource) => throw null; + public Microsoft.Extensions.Localization.IStringLocalizer Create(string baseName, string location) => throw null; + protected virtual Microsoft.Extensions.Localization.ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer(System.Reflection.Assembly assembly, string baseName) => throw null; protected virtual string GetResourcePrefix(string location, string baseName, string resourceLocation) => throw null; + protected virtual Microsoft.Extensions.Localization.ResourceLocationAttribute GetResourceLocationAttribute(System.Reflection.Assembly assembly) => throw null; protected virtual Microsoft.Extensions.Localization.RootNamespaceAttribute GetRootNamespaceAttribute(System.Reflection.Assembly assembly) => throw null; - public ResourceManagerStringLocalizerFactory(Microsoft.Extensions.Options.IOptions localizationOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) => throw null; } - public class ResourceNamesCache : Microsoft.Extensions.Localization.IResourceNamesCache { - public System.Collections.Generic.IList GetOrAdd(string name, System.Func> valueFactory) => throw null; public ResourceNamesCache() => throw null; + public System.Collections.Generic.IList GetOrAdd(string name, System.Func> valueFactory) => throw null; } - public class RootNamespaceAttribute : System.Attribute { - public string RootNamespace { get => throw null; } public RootNamespaceAttribute(string rootNamespace) => throw null; + public string RootNamespace { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Abstractions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Abstractions.cs index 5797688f98a1d..003563362c0a1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Abstractions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Abstractions.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,78 +8,50 @@ namespace Logging { public struct EventId : System.IEquatable { - public static bool operator !=(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) => throw null; - public static bool operator ==(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) => throw null; + public EventId(int id, string name) => throw null; public bool Equals(Microsoft.Extensions.Logging.EventId other) => throw null; public override bool Equals(object obj) => throw null; - // Stub generator skipped constructor - public EventId(int id, string name = default(string)) => throw null; public override int GetHashCode() => throw null; + public static bool operator ==(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) => throw null; + public static implicit operator Microsoft.Extensions.Logging.EventId(int i) => throw null; + public static bool operator !=(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) => throw null; + public override string ToString() => throw null; public int Id { get => throw null; } public string Name { get => throw null; } - public override string ToString() => throw null; - public static implicit operator Microsoft.Extensions.Logging.EventId(int i) => throw null; } - public interface IExternalScopeProvider { void ForEachScope(System.Action callback, TState state); System.IDisposable Push(object state); } - public interface ILogger { System.IDisposable BeginScope(TState state); bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel); void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter); } - public interface ILogger : Microsoft.Extensions.Logging.ILogger { } - public interface ILoggerFactory : System.IDisposable { void AddProvider(Microsoft.Extensions.Logging.ILoggerProvider provider); Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName); } - public interface ILoggerProvider : System.IDisposable { Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName); } - public interface ISupportExternalScope { void SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider); } - public class LogDefineOptions { public LogDefineOptions() => throw null; - public bool SkipEnabledCheck { get => throw null; set => throw null; } - } - - public enum LogLevel : int - { - Critical = 5, - Debug = 1, - Error = 4, - Information = 2, - None = 6, - Trace = 0, - Warning = 3, - } - - public class Logger : Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.ILogger - { - System.IDisposable Microsoft.Extensions.Logging.ILogger.BeginScope(TState state) => throw null; - bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => throw null; - void Microsoft.Extensions.Logging.ILogger.Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; - public Logger(Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; + public bool SkipEnabledCheck { get => throw null; set { } } } - - public static class LoggerExtensions + public static partial class LoggerExtensions { public static System.IDisposable BeginScope(this Microsoft.Extensions.Logging.ILogger logger, string messageFormat, params object[] args) => throw null; public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, System.Exception exception, string message, params object[] args) => throw null; @@ -112,103 +83,109 @@ public static class LoggerExtensions public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, System.Exception exception, string message, params object[] args) => throw null; public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, string message, params object[] args) => throw null; } - public class LoggerExternalScopeProvider : Microsoft.Extensions.Logging.IExternalScopeProvider { - public void ForEachScope(System.Action callback, TState state) => throw null; public LoggerExternalScopeProvider() => throw null; + public void ForEachScope(System.Action callback, TState state) => throw null; public System.IDisposable Push(object state) => throw null; } - - public static class LoggerFactoryExtensions + public static partial class LoggerFactoryExtensions { public static Microsoft.Extensions.Logging.ILogger CreateLogger(this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Type type) => throw null; public static Microsoft.Extensions.Logging.ILogger CreateLogger(this Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; } - public static class LoggerMessage { public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; public static System.Func DefineScope(string formatString) => throw null; - public static System.Func DefineScope(string formatString) => throw null; - public static System.Func DefineScope(string formatString) => throw null; - public static System.Func DefineScope(string formatString) => throw null; - public static System.Func DefineScope(string formatString) => throw null; - public static System.Func DefineScope(string formatString) => throw null; public static System.Func DefineScope(string formatString) => throw null; + public static System.Func DefineScope(string formatString) => throw null; + public static System.Func DefineScope(string formatString) => throw null; + public static System.Func DefineScope(string formatString) => throw null; + public static System.Func DefineScope(string formatString) => throw null; + public static System.Func DefineScope(string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) => throw null; + public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions options) => throw null; } - - public class LoggerMessageAttribute : System.Attribute + public sealed class LoggerMessageAttribute : System.Attribute { - public int EventId { get => throw null; set => throw null; } - public string EventName { get => throw null; set => throw null; } - public Microsoft.Extensions.Logging.LogLevel Level { get => throw null; set => throw null; } public LoggerMessageAttribute() => throw null; public LoggerMessageAttribute(int eventId, Microsoft.Extensions.Logging.LogLevel level, string message) => throw null; - public string Message { get => throw null; set => throw null; } - public bool SkipEnabledCheck { get => throw null; set => throw null; } + public int EventId { get => throw null; set { } } + public string EventName { get => throw null; set { } } + public Microsoft.Extensions.Logging.LogLevel Level { get => throw null; set { } } + public string Message { get => throw null; set { } } + public bool SkipEnabledCheck { get => throw null; set { } } + } + public class Logger : Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.ILogger + { + public Logger(Microsoft.Extensions.Logging.ILoggerFactory factory) => throw null; + System.IDisposable Microsoft.Extensions.Logging.ILogger.BeginScope(TState state) => throw null; + bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => throw null; + void Microsoft.Extensions.Logging.ILogger.Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; + } + public enum LogLevel + { + Trace = 0, + Debug = 1, + Information = 2, + Warning = 3, + Error = 4, + Critical = 5, + None = 6, } - namespace Abstractions { public struct LogEntry { + public LogEntry(Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; public string Category { get => throw null; } public Microsoft.Extensions.Logging.EventId EventId { get => throw null; } public System.Exception Exception { get => throw null; } public System.Func Formatter { get => throw null; } - // Stub generator skipped constructor - public LogEntry(Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; public Microsoft.Extensions.Logging.LogLevel LogLevel { get => throw null; } public TState State { get => throw null; } } - public class NullLogger : Microsoft.Extensions.Logging.ILogger { public System.IDisposable BeginScope(TState state) => throw null; - public static Microsoft.Extensions.Logging.Abstractions.NullLogger Instance { get => throw null; } public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => throw null; public void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; + public static Microsoft.Extensions.Logging.Abstractions.NullLogger Instance { get => throw null; } } - public class NullLogger : Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.ILogger { - public System.IDisposable BeginScope(TState state) => throw null; public static Microsoft.Extensions.Logging.Abstractions.NullLogger Instance; + public NullLogger() => throw null; + public System.IDisposable BeginScope(TState state) => throw null; public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) => throw null; public void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) => throw null; - public NullLogger() => throw null; } - public class NullLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory, System.IDisposable { + public static Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory Instance; + public NullLoggerFactory() => throw null; public void AddProvider(Microsoft.Extensions.Logging.ILoggerProvider provider) => throw null; public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; public void Dispose() => throw null; - public static Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory Instance; - public NullLoggerFactory() => throw null; } - public class NullLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable { public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) => throw null; public void Dispose() => throw null; public static Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider Instance { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Configuration.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Configuration.cs index 0d098e3e4d300..071b424e19d0f 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Configuration.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Configuration.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.Configuration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -11,34 +10,28 @@ public static partial class LoggingBuilderExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddConfiguration(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration) => throw null; } - namespace Configuration { - public interface ILoggerProviderConfiguration - { - Microsoft.Extensions.Configuration.IConfiguration Configuration { get; } - } - public interface ILoggerProviderConfigurationFactory { Microsoft.Extensions.Configuration.IConfiguration GetConfiguration(System.Type providerType); } - + public interface ILoggerProviderConfiguration + { + Microsoft.Extensions.Configuration.IConfiguration Configuration { get; } + } public static class LoggerProviderOptions { public static void RegisterProviderOptions(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class => throw null; } - public class LoggerProviderOptionsChangeTokenSource : Microsoft.Extensions.Options.ConfigurationChangeTokenSource { public LoggerProviderOptionsChangeTokenSource(Microsoft.Extensions.Logging.Configuration.ILoggerProviderConfiguration providerConfiguration) : base(default(Microsoft.Extensions.Configuration.IConfiguration)) => throw null; } - - public static class LoggingBuilderConfigurationExtensions + public static partial class LoggingBuilderConfigurationExtensions { public static void AddConfiguration(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Console.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Console.cs index ad283d7b3ad6a..281dbc2864928 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Console.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Console.cs @@ -1,13 +1,12 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.Console, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Logging { - public static class ConsoleLoggerExtensions + public static partial class ConsoleLoggerExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action configure) => throw null; @@ -20,52 +19,46 @@ public static class ConsoleLoggerExtensions public static Microsoft.Extensions.Logging.ILoggingBuilder AddSystemdConsole(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddSystemdConsole(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action configure) => throw null; } - namespace Console { public abstract class ConsoleFormatter { protected ConsoleFormatter(string name) => throw null; + public abstract void Write(in Microsoft.Extensions.Logging.Abstractions.LogEntry logEntry, Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider, System.IO.TextWriter textWriter); public string Name { get => throw null; } - public abstract void Write(Microsoft.Extensions.Logging.Abstractions.LogEntry logEntry, Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider, System.IO.TextWriter textWriter); } - public static class ConsoleFormatterNames { - public const string Json = default; - public const string Simple = default; - public const string Systemd = default; + public static string Json; + public static string Simple; + public static string Systemd; } - public class ConsoleFormatterOptions { public ConsoleFormatterOptions() => throw null; - public bool IncludeScopes { get => throw null; set => throw null; } - public string TimestampFormat { get => throw null; set => throw null; } - public bool UseUtcTimestamp { get => throw null; set => throw null; } + public bool IncludeScopes { get => throw null; set { } } + public string TimestampFormat { get => throw null; set { } } + public bool UseUtcTimestamp { get => throw null; set { } } } - - public enum ConsoleLoggerFormat : int + public enum ConsoleLoggerFormat { Default = 0, Systemd = 1, } - public class ConsoleLoggerOptions { public ConsoleLoggerOptions() => throw null; - public bool DisableColors { get => throw null; set => throw null; } - public Microsoft.Extensions.Logging.Console.ConsoleLoggerFormat Format { get => throw null; set => throw null; } - public string FormatterName { get => throw null; set => throw null; } - public bool IncludeScopes { get => throw null; set => throw null; } - public Microsoft.Extensions.Logging.LogLevel LogToStandardErrorThreshold { get => throw null; set => throw null; } - public int MaxQueueLength { get => throw null; set => throw null; } - public Microsoft.Extensions.Logging.Console.ConsoleLoggerQueueFullMode QueueFullMode { get => throw null; set => throw null; } - public string TimestampFormat { get => throw null; set => throw null; } - public bool UseUtcTimestamp { get => throw null; set => throw null; } + public bool DisableColors { get => throw null; set { } } + public Microsoft.Extensions.Logging.Console.ConsoleLoggerFormat Format { get => throw null; set { } } + public string FormatterName { get => throw null; set { } } + public bool IncludeScopes { get => throw null; set { } } + public Microsoft.Extensions.Logging.LogLevel LogToStandardErrorThreshold { get => throw null; set { } } + public int MaxQueueLength { get => throw null; set { } } + public Microsoft.Extensions.Logging.Console.ConsoleLoggerQueueFullMode QueueFullMode { get => throw null; set { } } + public string TimestampFormat { get => throw null; set { } } + public bool UseUtcTimestamp { get => throw null; set { } } } - - public class ConsoleLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, Microsoft.Extensions.Logging.ISupportExternalScope, System.IDisposable + public class ConsoleLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable, Microsoft.Extensions.Logging.ISupportExternalScope { public ConsoleLoggerProvider(Microsoft.Extensions.Options.IOptionsMonitor options) => throw null; public ConsoleLoggerProvider(Microsoft.Extensions.Options.IOptionsMonitor options, System.Collections.Generic.IEnumerable formatters) => throw null; @@ -73,33 +66,28 @@ public class ConsoleLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvide public void Dispose() => throw null; public void SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider) => throw null; } - - public enum ConsoleLoggerQueueFullMode : int + public enum ConsoleLoggerQueueFullMode { - DropWrite = 1, Wait = 0, + DropWrite = 1, } - public class JsonConsoleFormatterOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions { public JsonConsoleFormatterOptions() => throw null; - public System.Text.Json.JsonWriterOptions JsonWriterOptions { get => throw null; set => throw null; } + public System.Text.Json.JsonWriterOptions JsonWriterOptions { get => throw null; set { } } } - - public enum LoggerColorBehavior : int + public enum LoggerColorBehavior { Default = 0, - Disabled = 2, Enabled = 1, + Disabled = 2, } - public class SimpleConsoleFormatterOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions { - public Microsoft.Extensions.Logging.Console.LoggerColorBehavior ColorBehavior { get => throw null; set => throw null; } public SimpleConsoleFormatterOptions() => throw null; - public bool SingleLine { get => throw null; set => throw null; } + public Microsoft.Extensions.Logging.Console.LoggerColorBehavior ColorBehavior { get => throw null; set { } } + public bool SingleLine { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Debug.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Debug.cs index 4aa3b8a9fb5a3..7439ee50db3d9 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Debug.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.Debug.cs @@ -1,26 +1,23 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.Debug, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Logging { - public static class DebugLoggerFactoryExtensions + public static partial class DebugLoggerFactoryExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddDebug(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; } - namespace Debug { public class DebugLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable { - public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; public DebugLoggerProvider() => throw null; + public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; public void Dispose() => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventLog.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventLog.cs index dc103021eb86b..ae228079fa050 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventLog.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventLog.cs @@ -1,40 +1,36 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Logging { - public static class EventLoggerFactoryExtensions + public static partial class EventLoggerFactoryExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; - public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action configure) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.EventLog.EventLogSettings settings) => throw null; + public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventLog(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action configure) => throw null; } - namespace EventLog { - public class EventLogLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, Microsoft.Extensions.Logging.ISupportExternalScope, System.IDisposable + public class EventLogLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable, Microsoft.Extensions.Logging.ISupportExternalScope { - public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; - public void Dispose() => throw null; public EventLogLoggerProvider() => throw null; public EventLogLoggerProvider(Microsoft.Extensions.Logging.EventLog.EventLogSettings settings) => throw null; public EventLogLoggerProvider(Microsoft.Extensions.Options.IOptions options) => throw null; + public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; + public void Dispose() => throw null; public void SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider) => throw null; } - public class EventLogSettings { public EventLogSettings() => throw null; - public System.Func Filter { get => throw null; set => throw null; } - public string LogName { get => throw null; set => throw null; } - public string MachineName { get => throw null; set => throw null; } - public string SourceName { get => throw null; set => throw null; } + public System.Func Filter { get => throw null; set { } } + public string LogName { get => throw null; set { } } + public string MachineName { get => throw null; set { } } + public string SourceName { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventSource.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventSource.cs index 8d4e1fb1f5f74..1d0391e7e04c1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventSource.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.EventSource.cs @@ -1,40 +1,34 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.EventSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Logging { - public static class EventSourceLoggerFactoryExtensions + public static partial class EventSourceLoggerFactoryExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddEventSourceLogger(this Microsoft.Extensions.Logging.ILoggingBuilder builder) => throw null; } - namespace EventSource { public class EventSourceLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable { + public EventSourceLoggerProvider(Microsoft.Extensions.Logging.EventSource.LoggingEventSource eventSource) => throw null; public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) => throw null; public void Dispose() => throw null; - public EventSourceLoggerProvider(Microsoft.Extensions.Logging.EventSource.LoggingEventSource eventSource) => throw null; } - - public class LoggingEventSource : System.Diagnostics.Tracing.EventSource + public sealed class LoggingEventSource : System.Diagnostics.Tracing.EventSource { + protected override void OnEventCommand(System.Diagnostics.Tracing.EventCommandEventArgs command) => throw null; public static class Keywords { - public const System.Diagnostics.Tracing.EventKeywords FormattedMessage = default; - public const System.Diagnostics.Tracing.EventKeywords JsonMessage = default; - public const System.Diagnostics.Tracing.EventKeywords Message = default; - public const System.Diagnostics.Tracing.EventKeywords Meta = default; + public static System.Diagnostics.Tracing.EventKeywords FormattedMessage; + public static System.Diagnostics.Tracing.EventKeywords JsonMessage; + public static System.Diagnostics.Tracing.EventKeywords Message; + public static System.Diagnostics.Tracing.EventKeywords Meta; } - - - protected override void OnEventCommand(System.Diagnostics.Tracing.EventCommandEventArgs command) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.TraceSource.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.TraceSource.cs index a28778aad6d46..dac871b8b388d 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.TraceSource.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.TraceSource.cs @@ -1,30 +1,27 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging.TraceSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace Logging { - public static class TraceSourceFactoryExtensions + public static partial class TraceSourceFactoryExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Diagnostics.SourceSwitch sourceSwitch) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Diagnostics.SourceSwitch sourceSwitch, System.Diagnostics.TraceListener listener) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource(this Microsoft.Extensions.Logging.ILoggingBuilder builder, string switchName) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource(this Microsoft.Extensions.Logging.ILoggingBuilder builder, string switchName, System.Diagnostics.TraceListener listener) => throw null; } - namespace TraceSource { public class TraceSourceLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable { - public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; - public void Dispose() => throw null; public TraceSourceLoggerProvider(System.Diagnostics.SourceSwitch rootSourceSwitch) => throw null; public TraceSourceLoggerProvider(System.Diagnostics.SourceSwitch rootSourceSwitch, System.Diagnostics.TraceListener rootTraceListener) => throw null; + public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) => throw null; + public void Dispose() => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.cs index 0cc448912d161..b45564baa2aac 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Logging.cs @@ -1,35 +1,32 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Logging, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class LoggingServiceCollectionExtensions + public static partial class LoggingServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configure) => throw null; } - } namespace Logging { [System.Flags] - public enum ActivityTrackingOptions : int + public enum ActivityTrackingOptions { - Baggage = 64, None = 0, - ParentId = 4, SpanId = 1, - Tags = 32, - TraceFlags = 16, TraceId = 2, + ParentId = 4, TraceState = 8, + TraceFlags = 16, + Tags = 32, + Baggage = 64, } - - public static class FilterLoggingBuilderExtensions + public static partial class FilterLoggingBuilderExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Func levelFilter) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Func categoryLevelFilter) => throw null; @@ -50,51 +47,45 @@ public static class FilterLoggingBuilderExtensions public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter(this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, System.Func levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider => throw null; public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter(this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider => throw null; } - public interface ILoggingBuilder { Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get; } } - public class LoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory, System.IDisposable { + public LoggerFactory() => throw null; + public LoggerFactory(System.Collections.Generic.IEnumerable providers) => throw null; + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Logging.LoggerFilterOptions filterOptions) => throw null; + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption) => throw null; + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption, Microsoft.Extensions.Options.IOptions options) => throw null; + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption, Microsoft.Extensions.Options.IOptions options, Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider) => throw null; public void AddProvider(Microsoft.Extensions.Logging.ILoggerProvider provider) => throw null; protected virtual bool CheckDisposed() => throw null; public static Microsoft.Extensions.Logging.ILoggerFactory Create(System.Action configure) => throw null; public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) => throw null; public void Dispose() => throw null; - public LoggerFactory() => throw null; - public LoggerFactory(System.Collections.Generic.IEnumerable providers) => throw null; - public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption) => throw null; - public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption, Microsoft.Extensions.Options.IOptions options) => throw null; - public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Options.IOptionsMonitor filterOption, Microsoft.Extensions.Options.IOptions options = default(Microsoft.Extensions.Options.IOptions), Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider = default(Microsoft.Extensions.Logging.IExternalScopeProvider)) => throw null; - public LoggerFactory(System.Collections.Generic.IEnumerable providers, Microsoft.Extensions.Logging.LoggerFilterOptions filterOptions) => throw null; } - public class LoggerFactoryOptions { - public Microsoft.Extensions.Logging.ActivityTrackingOptions ActivityTrackingOptions { get => throw null; set => throw null; } public LoggerFactoryOptions() => throw null; + public Microsoft.Extensions.Logging.ActivityTrackingOptions ActivityTrackingOptions { get => throw null; set { } } } - public class LoggerFilterOptions { - public bool CaptureScopes { get => throw null; set => throw null; } public LoggerFilterOptions() => throw null; - public Microsoft.Extensions.Logging.LogLevel MinLevel { get => throw null; set => throw null; } + public bool CaptureScopes { get => throw null; set { } } + public Microsoft.Extensions.Logging.LogLevel MinLevel { get => throw null; set { } } public System.Collections.Generic.IList Rules { get => throw null; } } - public class LoggerFilterRule { + public LoggerFilterRule(string providerName, string categoryName, Microsoft.Extensions.Logging.LogLevel? logLevel, System.Func filter) => throw null; + public override string ToString() => throw null; public string CategoryName { get => throw null; } public System.Func Filter { get => throw null; } public Microsoft.Extensions.Logging.LogLevel? LogLevel { get => throw null; } - public LoggerFilterRule(string providerName, string categoryName, Microsoft.Extensions.Logging.LogLevel? logLevel, System.Func filter) => throw null; public string ProviderName { get => throw null; } - public override string ToString() => throw null; } - public static partial class LoggingBuilderExtensions { public static Microsoft.Extensions.Logging.ILoggingBuilder AddProvider(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.ILoggerProvider provider) => throw null; @@ -102,13 +93,11 @@ public static partial class LoggingBuilderExtensions public static Microsoft.Extensions.Logging.ILoggingBuilder Configure(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Action action) => throw null; public static Microsoft.Extensions.Logging.ILoggingBuilder SetMinimumLevel(this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.LogLevel level) => throw null; } - public class ProviderAliasAttribute : System.Attribute { - public string Alias { get => throw null; } public ProviderAliasAttribute(string alias) => throw null; + public string Alias { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.ObjectPool.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.ObjectPool.cs index b6e98e8213a51..d8ba63a22fd3e 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.ObjectPool.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.ObjectPool.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.ObjectPool, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -14,81 +13,69 @@ public class DefaultObjectPool : Microsoft.Extensions.ObjectPool.ObjectPool throw null; public override void Return(T obj) => throw null; } - public class DefaultObjectPoolProvider : Microsoft.Extensions.ObjectPool.ObjectPoolProvider { public override Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy) where T : class => throw null; public DefaultObjectPoolProvider() => throw null; - public int MaximumRetained { get => throw null; set => throw null; } + public int MaximumRetained { get => throw null; set { } } } - public class DefaultPooledObjectPolicy : Microsoft.Extensions.ObjectPool.PooledObjectPolicy where T : class, new() { public override T Create() => throw null; - public DefaultPooledObjectPolicy() => throw null; public override bool Return(T obj) => throw null; + public DefaultPooledObjectPolicy() => throw null; } - public interface IPooledObjectPolicy { T Create(); bool Return(T obj); } - public class LeakTrackingObjectPool : Microsoft.Extensions.ObjectPool.ObjectPool where T : class { - public override T Get() => throw null; public LeakTrackingObjectPool(Microsoft.Extensions.ObjectPool.ObjectPool inner) => throw null; + public override T Get() => throw null; public override void Return(T obj) => throw null; } - public class LeakTrackingObjectPoolProvider : Microsoft.Extensions.ObjectPool.ObjectPoolProvider { - public override Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy) where T : class => throw null; public LeakTrackingObjectPoolProvider(Microsoft.Extensions.ObjectPool.ObjectPoolProvider inner) => throw null; + public override Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy) where T : class => throw null; } - - public static class ObjectPool - { - public static Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy = default(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy)) where T : class, new() => throw null; - } - public abstract class ObjectPool where T : class { public abstract T Get(); - protected ObjectPool() => throw null; public abstract void Return(T obj); + protected ObjectPool() => throw null; + } + public static class ObjectPool + { + public static Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy) where T : class, new() => throw null; } - public abstract class ObjectPoolProvider { public Microsoft.Extensions.ObjectPool.ObjectPool Create() where T : class, new() => throw null; public abstract Microsoft.Extensions.ObjectPool.ObjectPool Create(Microsoft.Extensions.ObjectPool.IPooledObjectPolicy policy) where T : class; protected ObjectPoolProvider() => throw null; } - - public static class ObjectPoolProviderExtensions + public static partial class ObjectPoolProviderExtensions { public static Microsoft.Extensions.ObjectPool.ObjectPool CreateStringBuilderPool(this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider) => throw null; public static Microsoft.Extensions.ObjectPool.ObjectPool CreateStringBuilderPool(this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider, int initialCapacity, int maximumRetainedCapacity) => throw null; } - public abstract class PooledObjectPolicy : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy { public abstract T Create(); - protected PooledObjectPolicy() => throw null; public abstract bool Return(T obj); + protected PooledObjectPolicy() => throw null; } - public class StringBuilderPooledObjectPolicy : Microsoft.Extensions.ObjectPool.PooledObjectPolicy { public override System.Text.StringBuilder Create() => throw null; - public int InitialCapacity { get => throw null; set => throw null; } - public int MaximumRetainedCapacity { get => throw null; set => throw null; } public override bool Return(System.Text.StringBuilder obj) => throw null; public StringBuilderPooledObjectPolicy() => throw null; + public int InitialCapacity { get => throw null; set { } } + public int MaximumRetainedCapacity { get => throw null; set { } } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.ConfigurationExtensions.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.ConfigurationExtensions.cs index 7131c76b988e9..abaa7af63cc34 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.ConfigurationExtensions.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.ConfigurationExtensions.cs @@ -1,27 +1,24 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Options.ConfigurationExtensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class OptionsBuilderConfigurationExtensions + public static partial class OptionsBuilderConfigurationExtensions { + public static Microsoft.Extensions.Options.OptionsBuilder BindConfiguration(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder, string configSectionPath, System.Action configureBinder) where TOptions : class => throw null; public static Microsoft.Extensions.Options.OptionsBuilder Bind(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class => throw null; public static Microsoft.Extensions.Options.OptionsBuilder Bind(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder, Microsoft.Extensions.Configuration.IConfiguration config, System.Action configureBinder) where TOptions : class => throw null; - public static Microsoft.Extensions.Options.OptionsBuilder BindConfiguration(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder, string configSectionPath, System.Action configureBinder = default(System.Action)) where TOptions : class => throw null; } - - public static class OptionsConfigurationServiceCollectionExtensions + public static partial class OptionsConfigurationServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config, System.Action configureBinder) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Microsoft.Extensions.Configuration.IConfiguration config, System.Action configureBinder) where TOptions : class => throw null; } - } namespace Options { @@ -32,18 +29,15 @@ public class ConfigurationChangeTokenSource : Microsoft.Extensions.Opt public Microsoft.Extensions.Primitives.IChangeToken GetChangeToken() => throw null; public string Name { get => throw null; } } - public class ConfigureFromConfigurationOptions : Microsoft.Extensions.Options.ConfigureOptions where TOptions : class { public ConfigureFromConfigurationOptions(Microsoft.Extensions.Configuration.IConfiguration config) : base(default(System.Action)) => throw null; } - public class NamedConfigureFromConfigurationOptions : Microsoft.Extensions.Options.ConfigureNamedOptions where TOptions : class { public NamedConfigureFromConfigurationOptions(string name, Microsoft.Extensions.Configuration.IConfiguration config) : base(default(string), default(System.Action)) => throw null; public NamedConfigureFromConfigurationOptions(string name, Microsoft.Extensions.Configuration.IConfiguration config, System.Action configureBinder) : base(default(string), default(System.Action)) => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.DataAnnotations.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.DataAnnotations.cs index 1e256aac9fdf7..87e0314153752 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.DataAnnotations.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.DataAnnotations.cs @@ -1,27 +1,24 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Options.DataAnnotations, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class OptionsBuilderDataAnnotationsExtensions + public static partial class OptionsBuilderDataAnnotationsExtensions { public static Microsoft.Extensions.Options.OptionsBuilder ValidateDataAnnotations(this Microsoft.Extensions.Options.OptionsBuilder optionsBuilder) where TOptions : class => throw null; } - } namespace Options { public class DataAnnotationValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class { public DataAnnotationValidateOptions(string name) => throw null; - public string Name { get => throw null; } public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; + public string Name { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.cs index b77b3e65468c7..d14ae50698735 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Options.cs @@ -1,140 +1,115 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Options, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class OptionsServiceCollectionExtensions + public static partial class OptionsServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.Options.OptionsBuilder AddOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class => throw null; public static Microsoft.Extensions.Options.OptionsBuilder AddOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TOptions : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureOptions) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureAll(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type configureType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object configureInstance) => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Type configureType) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureOptions(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TConfigureOptions : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureOptions) where TOptions : class => throw null; + public static Microsoft.Extensions.DependencyInjection.IServiceCollection PostConfigureAll(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection PostConfigure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection PostConfigure(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, System.Action configureOptions) where TOptions : class => throw null; - public static Microsoft.Extensions.DependencyInjection.IServiceCollection PostConfigureAll(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action configureOptions) where TOptions : class => throw null; } - } namespace Options { - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class where TOptions : class + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class { - public System.Action Action { get => throw null; } - public void Configure(TOptions options) => throw null; + public ConfigureNamedOptions(string name, System.Action action) => throw null; public virtual void Configure(string name, TOptions options) => throw null; - public ConfigureNamedOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action action) => throw null; - public TDep1 Dependency1 { get => throw null; } - public TDep2 Dependency2 { get => throw null; } - public TDep3 Dependency3 { get => throw null; } - public TDep4 Dependency4 { get => throw null; } - public TDep5 Dependency5 { get => throw null; } + public void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public string Name { get => throw null; } } - - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TOptions : class + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class where TDep : class { - public System.Action Action { get => throw null; } + public ConfigureNamedOptions(string name, TDep dependency, System.Action action) => throw null; + public virtual void Configure(string name, TOptions options) => throw null; public void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } + public TDep Dependency { get => throw null; } + public string Name { get => throw null; } + } + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public ConfigureNamedOptions(string name, TDep1 dependency, TDep2 dependency2, System.Action action) => throw null; public virtual void Configure(string name, TOptions options) => throw null; - public ConfigureNamedOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action action) => throw null; + public void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } - public TDep3 Dependency3 { get => throw null; } - public TDep4 Dependency4 { get => throw null; } public string Name { get => throw null; } } - - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TOptions : class + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class { - public System.Action Action { get => throw null; } - public void Configure(TOptions options) => throw null; - public virtual void Configure(string name, TOptions options) => throw null; public ConfigureNamedOptions(string name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action action) => throw null; + public virtual void Configure(string name, TOptions options) => throw null; + public void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } public TDep3 Dependency3 { get => throw null; } public string Name { get => throw null; } } - - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TDep1 : class where TDep2 : class where TOptions : class + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { - public System.Action Action { get => throw null; } - public void Configure(TOptions options) => throw null; + public ConfigureNamedOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action action) => throw null; public virtual void Configure(string name, TOptions options) => throw null; - public ConfigureNamedOptions(string name, TDep1 dependency, TDep2 dependency2, System.Action action) => throw null; + public void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } + public TDep3 Dependency3 { get => throw null; } + public TDep4 Dependency4 { get => throw null; } public string Name { get => throw null; } } - - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TDep : class where TOptions : class + public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { - public System.Action Action { get => throw null; } - public void Configure(TOptions options) => throw null; + public ConfigureNamedOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action action) => throw null; public virtual void Configure(string name, TOptions options) => throw null; - public ConfigureNamedOptions(string name, TDep dependency, System.Action action) => throw null; - public TDep Dependency { get => throw null; } - public string Name { get => throw null; } - } - - public class ConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureNamedOptions, Microsoft.Extensions.Options.IConfigureOptions where TOptions : class - { - public System.Action Action { get => throw null; } public void Configure(TOptions options) => throw null; - public virtual void Configure(string name, TOptions options) => throw null; - public ConfigureNamedOptions(string name, System.Action action) => throw null; + public System.Action Action { get => throw null; } + public TDep1 Dependency1 { get => throw null; } + public TDep2 Dependency2 { get => throw null; } + public TDep3 Dependency3 { get => throw null; } + public TDep4 Dependency4 { get => throw null; } + public TDep5 Dependency5 { get => throw null; } public string Name { get => throw null; } } - public class ConfigureOptions : Microsoft.Extensions.Options.IConfigureOptions where TOptions : class { - public System.Action Action { get => throw null; } - public virtual void Configure(TOptions options) => throw null; public ConfigureOptions(System.Action action) => throw null; + public virtual void Configure(TOptions options) => throw null; + public System.Action Action { get => throw null; } } - public interface IConfigureNamedOptions : Microsoft.Extensions.Options.IConfigureOptions where TOptions : class { void Configure(string name, TOptions options); } - public interface IConfigureOptions where TOptions : class { void Configure(TOptions options); } - - public interface IOptions where TOptions : class - { - TOptions Value { get; } - } - public interface IOptionsChangeTokenSource { Microsoft.Extensions.Primitives.IChangeToken GetChangeToken(); string Name { get; } } - public interface IOptionsFactory where TOptions : class { TOptions Create(string name); } - - public interface IOptionsMonitor - { - TOptions CurrentValue { get; } - TOptions Get(string name); - System.IDisposable OnChange(System.Action listener); - } - public interface IOptionsMonitorCache where TOptions : class { void Clear(); @@ -142,263 +117,247 @@ public interface IOptionsMonitorCache where TOptions : class bool TryAdd(string name, TOptions options); bool TryRemove(string name); } - + public interface IOptionsMonitor + { + TOptions Get(string name); + System.IDisposable OnChange(System.Action listener); + TOptions CurrentValue { get; } + } public interface IOptionsSnapshot : Microsoft.Extensions.Options.IOptions where TOptions : class { TOptions Get(string name); } - + public interface IOptions where TOptions : class + { + TOptions Value { get; } + } public interface IPostConfigureOptions where TOptions : class { void PostConfigure(string name, TOptions options); } - public interface IValidateOptions where TOptions : class { Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options); } - public static class Options { - public static Microsoft.Extensions.Options.IOptions Create(TOptions options) where TOptions : class => throw null; public static string DefaultName; + public static Microsoft.Extensions.Options.IOptions Create(TOptions options) where TOptions : class => throw null; } - public class OptionsBuilder where TOptions : class { + public OptionsBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep : class => throw null; - public string Name { get => throw null; } - public OptionsBuilder(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Configure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep : class => throw null; - public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } + public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder PostConfigure(System.Action configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; - public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation) => throw null; + public virtual Microsoft.Extensions.Options.OptionsBuilder Validate(System.Func validation, string failureMessage) => throw null; + public string Name { get => throw null; } + public Microsoft.Extensions.DependencyInjection.IServiceCollection Services { get => throw null; } } - public class OptionsCache : Microsoft.Extensions.Options.IOptionsMonitorCache where TOptions : class { + public OptionsCache() => throw null; public void Clear() => throw null; public virtual TOptions GetOrAdd(string name, System.Func createOptions) => throw null; - public OptionsCache() => throw null; public virtual bool TryAdd(string name, TOptions options) => throw null; public virtual bool TryRemove(string name) => throw null; } - public class OptionsFactory : Microsoft.Extensions.Options.IOptionsFactory where TOptions : class { - public TOptions Create(string name) => throw null; - protected virtual TOptions CreateInstance(string name) => throw null; public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures) => throw null; public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures, System.Collections.Generic.IEnumerable> validations) => throw null; + public TOptions Create(string name) => throw null; + protected virtual TOptions CreateInstance(string name) => throw null; } - public class OptionsManager : Microsoft.Extensions.Options.IOptions, Microsoft.Extensions.Options.IOptionsSnapshot where TOptions : class { - public virtual TOptions Get(string name) => throw null; public OptionsManager(Microsoft.Extensions.Options.IOptionsFactory factory) => throw null; + public virtual TOptions Get(string name) => throw null; public TOptions Value { get => throw null; } } - + public static partial class OptionsMonitorExtensions + { + public static System.IDisposable OnChange(this Microsoft.Extensions.Options.IOptionsMonitor monitor, System.Action listener) => throw null; + } public class OptionsMonitor : Microsoft.Extensions.Options.IOptionsMonitor, System.IDisposable where TOptions : class { - public TOptions CurrentValue { get => throw null; } + public OptionsMonitor(Microsoft.Extensions.Options.IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, Microsoft.Extensions.Options.IOptionsMonitorCache cache) => throw null; public void Dispose() => throw null; public virtual TOptions Get(string name) => throw null; public System.IDisposable OnChange(System.Action listener) => throw null; - public OptionsMonitor(Microsoft.Extensions.Options.IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, Microsoft.Extensions.Options.IOptionsMonitorCache cache) => throw null; - } - - public static class OptionsMonitorExtensions - { - public static System.IDisposable OnChange(this Microsoft.Extensions.Options.IOptionsMonitor monitor, System.Action listener) => throw null; + public TOptions CurrentValue { get => throw null; } } - public class OptionsValidationException : System.Exception { + public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable failureMessages) => throw null; public System.Collections.Generic.IEnumerable Failures { get => throw null; } public override string Message { get => throw null; } public string OptionsName { get => throw null; } public System.Type OptionsType { get => throw null; } - public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable failureMessages) => throw null; } - public class OptionsWrapper : Microsoft.Extensions.Options.IOptions where TOptions : class { public OptionsWrapper(TOptions options) => throw null; public TOptions Value { get => throw null; } } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class where TOptions : class + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class { - public System.Action Action { get => throw null; } - public TDep1 Dependency1 { get => throw null; } - public TDep2 Dependency2 { get => throw null; } - public TDep3 Dependency3 { get => throw null; } - public TDep4 Dependency4 { get => throw null; } - public TDep5 Dependency5 { get => throw null; } + public PostConfigureOptions(string name, System.Action action) => throw null; + public virtual void PostConfigure(string name, TOptions options) => throw null; + public System.Action Action { get => throw null; } public string Name { get => throw null; } - public void PostConfigure(TOptions options) => throw null; + } + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class where TDep : class + { + public PostConfigureOptions(string name, TDep dependency, System.Action action) => throw null; public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action action) => throw null; + public void PostConfigure(TOptions options) => throw null; + public System.Action Action { get => throw null; } + public TDep Dependency { get => throw null; } + public string Name { get => throw null; } } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TOptions : class + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class { - public System.Action Action { get => throw null; } + public PostConfigureOptions(string name, TDep1 dependency, TDep2 dependency2, System.Action action) => throw null; + public virtual void PostConfigure(string name, TOptions options) => throw null; + public void PostConfigure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } - public TDep3 Dependency3 { get => throw null; } - public TDep4 Dependency4 { get => throw null; } public string Name { get => throw null; } - public void PostConfigure(TOptions options) => throw null; - public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action action) => throw null; } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TDep1 : class where TDep2 : class where TDep3 : class where TOptions : class + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class { + public PostConfigureOptions(string name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action action) => throw null; + public virtual void PostConfigure(string name, TOptions options) => throw null; + public void PostConfigure(TOptions options) => throw null; public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } public TDep3 Dependency3 { get => throw null; } public string Name { get => throw null; } - public void PostConfigure(TOptions options) => throw null; - public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action action) => throw null; } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TDep1 : class where TDep2 : class where TOptions : class + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { - public System.Action Action { get => throw null; } + public PostConfigureOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action action) => throw null; + public virtual void PostConfigure(string name, TOptions options) => throw null; + public void PostConfigure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } + public TDep3 Dependency3 { get => throw null; } + public TDep4 Dependency4 { get => throw null; } public string Name { get => throw null; } - public void PostConfigure(TOptions options) => throw null; - public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, TDep1 dependency, TDep2 dependency2, System.Action action) => throw null; - } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TDep : class where TOptions : class - { - public System.Action Action { get => throw null; } - public TDep Dependency { get => throw null; } - public string Name { get => throw null; } - public void PostConfigure(TOptions options) => throw null; - public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, TDep dependency, System.Action action) => throw null; } - - public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class + public class PostConfigureOptions : Microsoft.Extensions.Options.IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { - public System.Action Action { get => throw null; } - public string Name { get => throw null; } + public PostConfigureOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action action) => throw null; public virtual void PostConfigure(string name, TOptions options) => throw null; - public PostConfigureOptions(string name, System.Action action) => throw null; - } - - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class - { + public void PostConfigure(TOptions options) => throw null; + public System.Action Action { get => throw null; } public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } public TDep3 Dependency3 { get => throw null; } public TDep4 Dependency4 { get => throw null; } public TDep5 Dependency5 { get => throw null; } + public string Name { get => throw null; } + } + public class ValidateOptionsResult + { + public static Microsoft.Extensions.Options.ValidateOptionsResult Skip; + public static Microsoft.Extensions.Options.ValidateOptionsResult Success; + public ValidateOptionsResult() => throw null; + public static Microsoft.Extensions.Options.ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) => throw null; + public static Microsoft.Extensions.Options.ValidateOptionsResult Fail(string failureMessage) => throw null; + public bool Failed { get => throw null; set { } } + public string FailureMessage { get => throw null; set { } } + public System.Collections.Generic.IEnumerable Failures { get => throw null; set { } } + public bool Skipped { get => throw null; set { } } + public bool Succeeded { get => throw null; set { } } + } + public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class + { + public ValidateOptions(string name, System.Func validation, string failureMessage) => throw null; + public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; public string FailureMessage { get => throw null; } public string Name { get => throw null; } + public System.Func Validation { get => throw null; } + } + public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class + { + public ValidateOptions(string name, TDep dependency, System.Func validation, string failureMessage) => throw null; public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) => throw null; - public System.Func Validation { get => throw null; } + public TDep Dependency { get => throw null; } + public string FailureMessage { get => throw null; } + public string Name { get => throw null; } + public System.Func Validation { get => throw null; } } - - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class + public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class { + public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) => throw null; + public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } - public TDep3 Dependency3 { get => throw null; } - public TDep4 Dependency4 { get => throw null; } public string FailureMessage { get => throw null; } public string Name { get => throw null; } - public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) => throw null; - public System.Func Validation { get => throw null; } + public System.Func Validation { get => throw null; } } - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class { + public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) => throw null; + public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } public TDep3 Dependency3 { get => throw null; } public string FailureMessage { get => throw null; } public string Name { get => throw null; } - public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) => throw null; public System.Func Validation { get => throw null; } } - - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class + public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class { + public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) => throw null; + public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; public TDep1 Dependency1 { get => throw null; } public TDep2 Dependency2 { get => throw null; } + public TDep3 Dependency3 { get => throw null; } + public TDep4 Dependency4 { get => throw null; } public string FailureMessage { get => throw null; } public string Name { get => throw null; } - public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) => throw null; - public System.Func Validation { get => throw null; } + public System.Func Validation { get => throw null; } } - - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class + public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class { - public TDep Dependency { get => throw null; } - public string FailureMessage { get => throw null; } - public string Name { get => throw null; } + public ValidateOptions(string name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) => throw null; public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, TDep dependency, System.Func validation, string failureMessage) => throw null; - public System.Func Validation { get => throw null; } - } - - public class ValidateOptions : Microsoft.Extensions.Options.IValidateOptions where TOptions : class - { + public TDep1 Dependency1 { get => throw null; } + public TDep2 Dependency2 { get => throw null; } + public TDep3 Dependency3 { get => throw null; } + public TDep4 Dependency4 { get => throw null; } + public TDep5 Dependency5 { get => throw null; } public string FailureMessage { get => throw null; } public string Name { get => throw null; } - public Microsoft.Extensions.Options.ValidateOptionsResult Validate(string name, TOptions options) => throw null; - public ValidateOptions(string name, System.Func validation, string failureMessage) => throw null; - public System.Func Validation { get => throw null; } - } - - public class ValidateOptionsResult - { - public static Microsoft.Extensions.Options.ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) => throw null; - public static Microsoft.Extensions.Options.ValidateOptionsResult Fail(string failureMessage) => throw null; - public bool Failed { get => throw null; set => throw null; } - public string FailureMessage { get => throw null; set => throw null; } - public System.Collections.Generic.IEnumerable Failures { get => throw null; set => throw null; } - public static Microsoft.Extensions.Options.ValidateOptionsResult Skip; - public bool Skipped { get => throw null; set => throw null; } - public bool Succeeded { get => throw null; set => throw null; } - public static Microsoft.Extensions.Options.ValidateOptionsResult Success; - public ValidateOptionsResult() => throw null; + public System.Func Validation { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Primitives.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Primitives.cs index c79f01782ee44..b309d5a31c424 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Primitives.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.Primitives.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions @@ -9,75 +8,67 @@ namespace Primitives { public class CancellationChangeToken : Microsoft.Extensions.Primitives.IChangeToken { - public bool ActiveChangeCallbacks { get => throw null; } public CancellationChangeToken(System.Threading.CancellationToken cancellationToken) => throw null; - public bool HasChanged { get => throw null; } public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; + public bool ActiveChangeCallbacks { get => throw null; } + public bool HasChanged { get => throw null; } } - public static class ChangeToken { public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer) => throw null; public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer, TState state) => throw null; } - public class CompositeChangeToken : Microsoft.Extensions.Primitives.IChangeToken { + public CompositeChangeToken(System.Collections.Generic.IReadOnlyList changeTokens) => throw null; + public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; public bool ActiveChangeCallbacks { get => throw null; } public System.Collections.Generic.IReadOnlyList ChangeTokens { get => throw null; } - public CompositeChangeToken(System.Collections.Generic.IReadOnlyList changeTokens) => throw null; public bool HasChanged { get => throw null; } - public System.IDisposable RegisterChangeCallback(System.Action callback, object state) => throw null; } - - public static class Extensions + public static partial class Extensions { public static System.Text.StringBuilder Append(this System.Text.StringBuilder builder, Microsoft.Extensions.Primitives.StringSegment segment) => throw null; } - public interface IChangeToken { + System.IDisposable RegisterChangeCallback(System.Action callback, object state); bool ActiveChangeCallbacks { get; } bool HasChanged { get; } - System.IDisposable RegisterChangeCallback(System.Action callback, object state); } - public struct StringSegment : System.IEquatable, System.IEquatable { - public static bool operator !=(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) => throw null; - public static bool operator ==(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) => throw null; - public System.ReadOnlyMemory AsMemory() => throw null; - public System.ReadOnlySpan AsSpan() => throw null; - public System.ReadOnlySpan AsSpan(int start) => throw null; - public System.ReadOnlySpan AsSpan(int start, int length) => throw null; - public string Buffer { get => throw null; } - public static int Compare(Microsoft.Extensions.Primitives.StringSegment a, Microsoft.Extensions.Primitives.StringSegment b, System.StringComparison comparisonType) => throw null; public static Microsoft.Extensions.Primitives.StringSegment Empty; + public StringSegment(string buffer) => throw null; + public StringSegment(string buffer, int offset, int length) => throw null; + public System.ReadOnlyMemory AsMemory() => throw null; + public System.ReadOnlySpan AsSpan() => throw null; + public System.ReadOnlySpan AsSpan(int start) => throw null; + public System.ReadOnlySpan AsSpan(int start, int length) => throw null; + public static int Compare(Microsoft.Extensions.Primitives.StringSegment a, Microsoft.Extensions.Primitives.StringSegment b, System.StringComparison comparisonType) => throw null; public bool EndsWith(string text, System.StringComparison comparisonType) => throw null; public bool Equals(Microsoft.Extensions.Primitives.StringSegment other) => throw null; - public bool Equals(Microsoft.Extensions.Primitives.StringSegment other, System.StringComparison comparisonType) => throw null; public static bool Equals(Microsoft.Extensions.Primitives.StringSegment a, Microsoft.Extensions.Primitives.StringSegment b, System.StringComparison comparisonType) => throw null; + public bool Equals(Microsoft.Extensions.Primitives.StringSegment other, System.StringComparison comparisonType) => throw null; public override bool Equals(object obj) => throw null; public bool Equals(string text) => throw null; public bool Equals(string text, System.StringComparison comparisonType) => throw null; public override int GetHashCode() => throw null; - public bool HasValue { get => throw null; } - public int IndexOf(System.Char c) => throw null; - public int IndexOf(System.Char c, int start) => throw null; - public int IndexOf(System.Char c, int start, int count) => throw null; - public int IndexOfAny(System.Char[] anyOf) => throw null; - public int IndexOfAny(System.Char[] anyOf, int startIndex) => throw null; - public int IndexOfAny(System.Char[] anyOf, int startIndex, int count) => throw null; + public int IndexOf(char c) => throw null; + public int IndexOf(char c, int start) => throw null; + public int IndexOf(char c, int start, int count) => throw null; + public int IndexOfAny(char[] anyOf) => throw null; + public int IndexOfAny(char[] anyOf, int startIndex) => throw null; + public int IndexOfAny(char[] anyOf, int startIndex, int count) => throw null; public static bool IsNullOrEmpty(Microsoft.Extensions.Primitives.StringSegment value) => throw null; - public System.Char this[int index] { get => throw null; } - public int LastIndexOf(System.Char value) => throw null; - public int Length { get => throw null; } - public int Offset { get => throw null; } - public Microsoft.Extensions.Primitives.StringTokenizer Split(System.Char[] chars) => throw null; + public int LastIndexOf(char value) => throw null; + public static bool operator ==(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) => throw null; + public static implicit operator System.ReadOnlyMemory(Microsoft.Extensions.Primitives.StringSegment segment) => throw null; + public static implicit operator System.ReadOnlySpan(Microsoft.Extensions.Primitives.StringSegment segment) => throw null; + public static implicit operator Microsoft.Extensions.Primitives.StringSegment(string value) => throw null; + public static bool operator !=(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) => throw null; + public Microsoft.Extensions.Primitives.StringTokenizer Split(char[] chars) => throw null; public bool StartsWith(string text, System.StringComparison comparisonType) => throw null; - // Stub generator skipped constructor - public StringSegment(string buffer) => throw null; - public StringSegment(string buffer, int offset, int length) => throw null; public Microsoft.Extensions.Primitives.StringSegment Subsegment(int offset) => throw null; public Microsoft.Extensions.Primitives.StringSegment Subsegment(int offset, int length) => throw null; public string Substring(int offset) => throw null; @@ -86,12 +77,13 @@ public struct StringSegment : System.IEquatable throw null; public Microsoft.Extensions.Primitives.StringSegment TrimEnd() => throw null; public Microsoft.Extensions.Primitives.StringSegment TrimStart() => throw null; + public string Buffer { get => throw null; } + public bool HasValue { get => throw null; } + public char this[int index] { get => throw null; } + public int Length { get => throw null; } + public int Offset { get => throw null; } public string Value { get => throw null; } - public static implicit operator System.ReadOnlyMemory(Microsoft.Extensions.Primitives.StringSegment segment) => throw null; - public static implicit operator System.ReadOnlySpan(Microsoft.Extensions.Primitives.StringSegment segment) => throw null; - public static implicit operator Microsoft.Extensions.Primitives.StringSegment(string value) => throw null; } - public class StringSegmentComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer { public int Compare(Microsoft.Extensions.Primitives.StringSegment x, Microsoft.Extensions.Primitives.StringSegment y) => throw null; @@ -100,98 +92,87 @@ public class StringSegmentComparer : System.Collections.Generic.IComparer throw null; } public static Microsoft.Extensions.Primitives.StringSegmentComparer OrdinalIgnoreCase { get => throw null; } } - public struct StringTokenizer : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { + public StringTokenizer(Microsoft.Extensions.Primitives.StringSegment value, char[] separators) => throw null; + public StringTokenizer(string value, char[] separators) => throw null; + public Microsoft.Extensions.Primitives.StringTokenizer.Enumerator GetEnumerator() => throw null; + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable { - public Microsoft.Extensions.Primitives.StringSegment Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor public Enumerator(ref Microsoft.Extensions.Primitives.StringTokenizer tokenizer) => throw null; + public void Dispose() => throw null; public bool MoveNext() => throw null; public void Reset() => throw null; + public Microsoft.Extensions.Primitives.StringSegment Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } } - - - public Microsoft.Extensions.Primitives.StringTokenizer.Enumerator GetEnumerator() => throw null; - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - // Stub generator skipped constructor - public StringTokenizer(Microsoft.Extensions.Primitives.StringSegment value, System.Char[] separators) => throw null; - public StringTokenizer(string value, System.Char[] separators) => throw null; } - - public struct StringValues : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable, System.IEquatable, System.IEquatable, System.IEquatable + public struct StringValues : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IList, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.IEquatable, System.IEquatable, System.IEquatable { - public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable - { - public string Current { get => throw null; } - object System.Collections.IEnumerator.Current { get => throw null; } - public void Dispose() => throw null; - // Stub generator skipped constructor - public Enumerator(ref Microsoft.Extensions.Primitives.StringValues values) => throw null; - public bool MoveNext() => throw null; - void System.Collections.IEnumerator.Reset() => throw null; - } - - - public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; - public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, object right) => throw null; - public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string right) => throw null; - public static bool operator !=(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public static bool operator !=(object left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public static bool operator !=(string left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static Microsoft.Extensions.Primitives.StringValues Empty; + public StringValues(string value) => throw null; + public StringValues(string[] values) => throw null; + public static Microsoft.Extensions.Primitives.StringValues Concat(Microsoft.Extensions.Primitives.StringValues values1, Microsoft.Extensions.Primitives.StringValues values2) => throw null; + public static Microsoft.Extensions.Primitives.StringValues Concat(in Microsoft.Extensions.Primitives.StringValues values, string value) => throw null; + public static Microsoft.Extensions.Primitives.StringValues Concat(string value, in Microsoft.Extensions.Primitives.StringValues values) => throw null; + public bool Equals(Microsoft.Extensions.Primitives.StringValues other) => throw null; + public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string right) => throw null; + public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; + public override bool Equals(object obj) => throw null; + public bool Equals(string other) => throw null; + public static bool Equals(string left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public bool Equals(string[] other) => throw null; + public static bool Equals(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public Microsoft.Extensions.Primitives.StringValues.Enumerator GetEnumerator() => throw null; + public override int GetHashCode() => throw null; + public static bool IsNullOrEmpty(Microsoft.Extensions.Primitives.StringValues value) => throw null; public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, object right) => throw null; public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string right) => throw null; - public static bool operator ==(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; public static bool operator ==(object left, Microsoft.Extensions.Primitives.StringValues right) => throw null; public static bool operator ==(string left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool operator ==(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static implicit operator string(Microsoft.Extensions.Primitives.StringValues values) => throw null; + public static implicit operator string[](Microsoft.Extensions.Primitives.StringValues value) => throw null; + public static implicit operator Microsoft.Extensions.Primitives.StringValues(string value) => throw null; + public static implicit operator Microsoft.Extensions.Primitives.StringValues(string[] values) => throw null; + public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, object right) => throw null; + public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string right) => throw null; + public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; + public static bool operator !=(object left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool operator !=(string left, Microsoft.Extensions.Primitives.StringValues right) => throw null; + public static bool operator !=(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; void System.Collections.Generic.ICollection.Add(string item) => throw null; void System.Collections.Generic.ICollection.Clear() => throw null; - public static Microsoft.Extensions.Primitives.StringValues Concat(Microsoft.Extensions.Primitives.StringValues values1, Microsoft.Extensions.Primitives.StringValues values2) => throw null; - public static Microsoft.Extensions.Primitives.StringValues Concat(Microsoft.Extensions.Primitives.StringValues values, string value) => throw null; - public static Microsoft.Extensions.Primitives.StringValues Concat(string value, Microsoft.Extensions.Primitives.StringValues values) => throw null; bool System.Collections.Generic.ICollection.Contains(string item) => throw null; void System.Collections.Generic.ICollection.CopyTo(string[] array, int arrayIndex) => throw null; - public int Count { get => throw null; } - public static Microsoft.Extensions.Primitives.StringValues Empty; - public bool Equals(Microsoft.Extensions.Primitives.StringValues other) => throw null; - public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string[] right) => throw null; - public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string right) => throw null; - public bool Equals(string[] other) => throw null; - public static bool Equals(string[] left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public override bool Equals(object obj) => throw null; - public bool Equals(string other) => throw null; - public static bool Equals(string left, Microsoft.Extensions.Primitives.StringValues right) => throw null; - public Microsoft.Extensions.Primitives.StringValues.Enumerator GetEnumerator() => throw null; + bool System.Collections.Generic.ICollection.Remove(string item) => throw null; System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() => throw null; - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; - public override int GetHashCode() => throw null; int System.Collections.Generic.IList.IndexOf(string item) => throw null; void System.Collections.Generic.IList.Insert(int index, string item) => throw null; - public static bool IsNullOrEmpty(Microsoft.Extensions.Primitives.StringValues value) => throw null; - bool System.Collections.Generic.ICollection.IsReadOnly { get => throw null; } - public string this[int index] { get => throw null; } - string System.Collections.Generic.IList.this[int index] { get => throw null; set => throw null; } - bool System.Collections.Generic.ICollection.Remove(string item) => throw null; void System.Collections.Generic.IList.RemoveAt(int index) => throw null; - // Stub generator skipped constructor - public StringValues(string[] values) => throw null; - public StringValues(string value) => throw null; + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => throw null; public string[] ToArray() => throw null; public override string ToString() => throw null; - public static implicit operator string(Microsoft.Extensions.Primitives.StringValues values) => throw null; - public static implicit operator string[](Microsoft.Extensions.Primitives.StringValues value) => throw null; - public static implicit operator Microsoft.Extensions.Primitives.StringValues(string[] values) => throw null; - public static implicit operator Microsoft.Extensions.Primitives.StringValues(string value) => throw null; + public int Count { get => throw null; } + public string this[int index] { get => throw null; } + bool System.Collections.Generic.ICollection.IsReadOnly { get => throw null; } + string System.Collections.Generic.IList.this[int index] { get => throw null; set { } } + public struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + public Enumerator(ref Microsoft.Extensions.Primitives.StringValues values) => throw null; + public void Dispose() => throw null; + public bool MoveNext() => throw null; + void System.Collections.IEnumerator.Reset() => throw null; + public string Current { get => throw null; } + object System.Collections.IEnumerator.Current { get => throw null; } + } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.WebEncoders.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.WebEncoders.cs index c276b598b646a..ff07993ac055a 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.WebEncoders.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Extensions.WebEncoders.cs @@ -1,65 +1,59 @@ // This file contains auto-generated code. // Generated from `Microsoft.Extensions.WebEncoders, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Extensions { namespace DependencyInjection { - public static class EncoderServiceCollectionExtensions + public static partial class EncoderServiceCollectionExtensions { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebEncoders(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddWebEncoders(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action setupAction) => throw null; } - } namespace WebEncoders { - public class WebEncoderOptions + public sealed class WebEncoderOptions { - public System.Text.Encodings.Web.TextEncoderSettings TextEncoderSettings { get => throw null; set => throw null; } public WebEncoderOptions() => throw null; + public System.Text.Encodings.Web.TextEncoderSettings TextEncoderSettings { get => throw null; set { } } } - namespace Testing { - public class HtmlTestEncoder : System.Text.Encodings.Web.HtmlEncoder + public sealed class HtmlTestEncoder : System.Text.Encodings.Web.HtmlEncoder { - public override void Encode(System.IO.TextWriter output, System.Char[] value, int startIndex, int characterCount) => throw null; - public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; public override string Encode(string value) => throw null; - unsafe public override int FindFirstCharacterToEncode(System.Char* text, int textLength) => throw null; + public override void Encode(System.IO.TextWriter output, char[] value, int startIndex, int characterCount) => throw null; + public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; + public override bool WillEncode(int unicodeScalar) => throw null; + public override unsafe int FindFirstCharacterToEncode(char* text, int textLength) => throw null; + public override unsafe bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; public HtmlTestEncoder() => throw null; public override int MaxOutputCharactersPerInputCharacter { get => throw null; } - unsafe public override bool TryEncodeUnicodeScalar(int unicodeScalar, System.Char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; - public override bool WillEncode(int unicodeScalar) => throw null; } - public class JavaScriptTestEncoder : System.Text.Encodings.Web.JavaScriptEncoder { - public override void Encode(System.IO.TextWriter output, System.Char[] value, int startIndex, int characterCount) => throw null; - public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; public override string Encode(string value) => throw null; - unsafe public override int FindFirstCharacterToEncode(System.Char* text, int textLength) => throw null; + public override void Encode(System.IO.TextWriter output, char[] value, int startIndex, int characterCount) => throw null; + public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; + public override bool WillEncode(int unicodeScalar) => throw null; + public override unsafe int FindFirstCharacterToEncode(char* text, int textLength) => throw null; + public override unsafe bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; public JavaScriptTestEncoder() => throw null; public override int MaxOutputCharactersPerInputCharacter { get => throw null; } - unsafe public override bool TryEncodeUnicodeScalar(int unicodeScalar, System.Char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; - public override bool WillEncode(int unicodeScalar) => throw null; } - public class UrlTestEncoder : System.Text.Encodings.Web.UrlEncoder { - public override void Encode(System.IO.TextWriter output, System.Char[] value, int startIndex, int characterCount) => throw null; - public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; public override string Encode(string value) => throw null; - unsafe public override int FindFirstCharacterToEncode(System.Char* text, int textLength) => throw null; - public override int MaxOutputCharactersPerInputCharacter { get => throw null; } - unsafe public override bool TryEncodeUnicodeScalar(int unicodeScalar, System.Char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; - public UrlTestEncoder() => throw null; + public override void Encode(System.IO.TextWriter output, char[] value, int startIndex, int characterCount) => throw null; + public override void Encode(System.IO.TextWriter output, string value, int startIndex, int characterCount) => throw null; public override bool WillEncode(int unicodeScalar) => throw null; + public override unsafe int FindFirstCharacterToEncode(char* text, int textLength) => throw null; + public override unsafe bool TryEncodeUnicodeScalar(int unicodeScalar, char* buffer, int bufferLength, out int numberOfCharactersWritten) => throw null; + public UrlTestEncoder() => throw null; + public override int MaxOutputCharactersPerInputCharacter { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.JSInterop.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.JSInterop.cs index 9dfd9f3db1a92..abf0f82f6a035 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.JSInterop.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.JSInterop.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.JSInterop, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace JSInterop @@ -9,216 +8,182 @@ public static class DotNetObjectReference { public static Microsoft.JSInterop.DotNetObjectReference Create(TValue value) where TValue : class => throw null; } - - public class DotNetObjectReference : System.IDisposable where TValue : class + public sealed class DotNetObjectReference : System.IDisposable where TValue : class { public void Dispose() => throw null; public TValue Value { get => throw null; } } - - public class DotNetStreamReference : System.IDisposable + public sealed class DotNetStreamReference : System.IDisposable { + public DotNetStreamReference(System.IO.Stream stream, bool leaveOpen) => throw null; public void Dispose() => throw null; - public DotNetStreamReference(System.IO.Stream stream, bool leaveOpen = default(bool)) => throw null; - public bool LeaveOpen { get => throw null; } public System.IO.Stream Stream { get => throw null; } + public bool LeaveOpen { get => throw null; } } - public interface IJSInProcessObjectReference : Microsoft.JSInterop.IJSObjectReference, System.IAsyncDisposable, System.IDisposable { TValue Invoke(string identifier, params object[] args); } - public interface IJSInProcessRuntime : Microsoft.JSInterop.IJSRuntime { TResult Invoke(string identifier, params object[] args); } - public interface IJSObjectReference : System.IAsyncDisposable { - System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args); System.Threading.Tasks.ValueTask InvokeAsync(string identifier, object[] args); + System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args); } - public interface IJSRuntime { - System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args); System.Threading.Tasks.ValueTask InvokeAsync(string identifier, object[] args); + System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args); } - public interface IJSStreamReference : System.IAsyncDisposable { - System.Int64 Length { get; } - System.Threading.Tasks.ValueTask OpenReadStreamAsync(System.Int64 maxAllowedSize = default(System.Int64), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.ValueTask OpenReadStreamAsync(long maxAllowedSize, System.Threading.CancellationToken cancellationToken); + long Length { get; } } - public interface IJSUnmarshalledObjectReference : Microsoft.JSInterop.IJSInProcessObjectReference, Microsoft.JSInterop.IJSObjectReference, System.IAsyncDisposable, System.IDisposable { - TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1, T2 arg2); - TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1); - TResult InvokeUnmarshalled(string identifier, T0 arg0); TResult InvokeUnmarshalled(string identifier); + TResult InvokeUnmarshalled(string identifier, T0 arg0); + TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1); + TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1, T2 arg2); } - public interface IJSUnmarshalledRuntime { - TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1, T2 arg2); - TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1); - TResult InvokeUnmarshalled(string identifier, T0 arg0); TResult InvokeUnmarshalled(string identifier); + TResult InvokeUnmarshalled(string identifier, T0 arg0); + TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1); + TResult InvokeUnmarshalled(string identifier, T0 arg0, T1 arg1, T2 arg2); } - - public enum JSCallResultType : int + public enum JSCallResultType { Default = 0, JSObjectReference = 1, JSStreamReference = 2, JSVoidResult = 3, } - - public class JSDisconnectedException : System.Exception + public sealed class JSDisconnectedException : System.Exception { public JSDisconnectedException(string message) => throw null; } - public class JSException : System.Exception { public JSException(string message) => throw null; public JSException(string message, System.Exception innerException) => throw null; } - - public static class JSInProcessObjectReferenceExtensions + public static partial class JSInProcessObjectReferenceExtensions { public static void InvokeVoid(this Microsoft.JSInterop.IJSInProcessObjectReference jsObjectReference, string identifier, params object[] args) => throw null; } - public abstract class JSInProcessRuntime : Microsoft.JSInterop.JSRuntime, Microsoft.JSInterop.IJSInProcessRuntime, Microsoft.JSInterop.IJSRuntime { public TValue Invoke(string identifier, params object[] args) => throw null; protected virtual string InvokeJS(string identifier, string argsJson) => throw null; - protected abstract string InvokeJS(string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, System.Int64 targetInstanceId); + protected abstract string InvokeJS(string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId); protected JSInProcessRuntime() => throw null; } - - public static class JSInProcessRuntimeExtensions + public static partial class JSInProcessRuntimeExtensions { public static void InvokeVoid(this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object[] args) => throw null; } - - public class JSInvokableAttribute : System.Attribute + public sealed class JSInvokableAttribute : System.Attribute { - public string Identifier { get => throw null; } public JSInvokableAttribute() => throw null; public JSInvokableAttribute(string identifier) => throw null; + public string Identifier { get => throw null; } } - - public static class JSObjectReferenceExtensions + public static partial class JSObjectReferenceExtensions { - public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; - public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.TimeSpan timeout, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.TimeSpan timeout, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.TimeSpan timeout, params object[] args) => throw null; - public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, params object[] args) => throw null; } - public abstract class JSRuntime : Microsoft.JSInterop.IJSRuntime, System.IDisposable { - protected virtual void BeginInvokeJS(System.Int64 taskId, string identifier, string argsJson) => throw null; - protected abstract void BeginInvokeJS(System.Int64 taskId, string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, System.Int64 targetInstanceId); - protected System.TimeSpan? DefaultAsyncTimeout { get => throw null; set => throw null; } - public void Dispose() => throw null; - protected internal abstract void EndInvokeDotNet(Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, Microsoft.JSInterop.Infrastructure.DotNetInvocationResult invocationResult); - public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args) => throw null; - public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, object[] args) => throw null; protected JSRuntime() => throw null; - protected internal System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get => throw null; } - protected internal virtual System.Threading.Tasks.Task ReadJSDataAsStreamAsync(Microsoft.JSInterop.IJSStreamReference jsStreamReference, System.Int64 totalLength, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - protected internal virtual void ReceiveByteArray(int id, System.Byte[] data) => throw null; - protected internal virtual void SendByteArray(int id, System.Byte[] data) => throw null; - protected internal virtual System.Threading.Tasks.Task TransmitStreamAsync(System.Int64 streamId, Microsoft.JSInterop.DotNetStreamReference dotNetStreamReference) => throw null; + public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, object[] args) => throw null; + public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args) => throw null; + protected virtual void BeginInvokeJS(long taskId, string identifier, string argsJson) => throw null; + protected abstract void BeginInvokeJS(long taskId, string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId); + protected abstract void EndInvokeDotNet(Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, in Microsoft.JSInterop.Infrastructure.DotNetInvocationResult invocationResult); + protected virtual void SendByteArray(int id, byte[] data) => throw null; + protected virtual void ReceiveByteArray(int id, byte[] data) => throw null; + protected virtual System.Threading.Tasks.Task ReadJSDataAsStreamAsync(Microsoft.JSInterop.IJSStreamReference jsStreamReference, long totalLength, System.Threading.CancellationToken cancellationToken) => throw null; + protected virtual System.Threading.Tasks.Task TransmitStreamAsync(long streamId, Microsoft.JSInterop.DotNetStreamReference dotNetStreamReference) => throw null; + public void Dispose() => throw null; + protected System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get => throw null; } + protected System.TimeSpan? DefaultAsyncTimeout { get => throw null; set { } } } - - public static class JSRuntimeExtensions + public static partial class JSRuntimeExtensions { - public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; - public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.TimeSpan timeout, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.Threading.CancellationToken cancellationToken, params object[] args) => throw null; + public static System.Threading.Tasks.ValueTask InvokeAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.TimeSpan timeout, params object[] args) => throw null; public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, System.TimeSpan timeout, params object[] args) => throw null; - public static System.Threading.Tasks.ValueTask InvokeVoidAsync(this Microsoft.JSInterop.IJSRuntime jsRuntime, string identifier, params object[] args) => throw null; } - namespace Implementation { public class JSInProcessObjectReference : Microsoft.JSInterop.Implementation.JSObjectReference, Microsoft.JSInterop.IJSInProcessObjectReference, Microsoft.JSInterop.IJSObjectReference, System.IAsyncDisposable, System.IDisposable { - public void Dispose() => throw null; + protected JSInProcessObjectReference(Microsoft.JSInterop.JSInProcessRuntime jsRuntime, long id) : base(default(Microsoft.JSInterop.JSRuntime), default(long)) => throw null; public TValue Invoke(string identifier, params object[] args) => throw null; - protected internal JSInProcessObjectReference(Microsoft.JSInterop.JSInProcessRuntime jsRuntime, System.Int64 id) : base(default(Microsoft.JSInterop.JSRuntime), default(System.Int64)) => throw null; + public void Dispose() => throw null; } - public class JSObjectReference : Microsoft.JSInterop.IJSObjectReference, System.IAsyncDisposable { - public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - protected internal System.Int64 Id { get => throw null; } - public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args) => throw null; + protected JSObjectReference(Microsoft.JSInterop.JSRuntime jsRuntime, long id) => throw null; public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, object[] args) => throw null; - protected internal JSObjectReference(Microsoft.JSInterop.JSRuntime jsRuntime, System.Int64 id) => throw null; + public System.Threading.Tasks.ValueTask InvokeAsync(string identifier, System.Threading.CancellationToken cancellationToken, object[] args) => throw null; + public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; protected void ThrowIfDisposed() => throw null; + protected long Id { get => throw null; } } - public static class JSObjectReferenceJsonWorker { - public static System.Int64 ReadJSObjectReferenceIdentifier(ref System.Text.Json.Utf8JsonReader reader) => throw null; + public static long ReadJSObjectReferenceIdentifier(ref System.Text.Json.Utf8JsonReader reader) => throw null; public static void WriteJSObjectReference(System.Text.Json.Utf8JsonWriter writer, Microsoft.JSInterop.Implementation.JSObjectReference objectReference) => throw null; } - - public class JSStreamReference : Microsoft.JSInterop.Implementation.JSObjectReference, Microsoft.JSInterop.IJSStreamReference, System.IAsyncDisposable + public sealed class JSStreamReference : Microsoft.JSInterop.Implementation.JSObjectReference, Microsoft.JSInterop.IJSStreamReference, System.IAsyncDisposable { - internal JSStreamReference(Microsoft.JSInterop.JSRuntime jsRuntime, System.Int64 id, System.Int64 totalLength) : base(default(Microsoft.JSInterop.JSRuntime), default(System.Int64)) => throw null; - public System.Int64 Length { get => throw null; } - System.Threading.Tasks.ValueTask Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync(System.Int64 maxAllowedSize, System.Threading.CancellationToken cancellationToken) => throw null; + System.Threading.Tasks.ValueTask Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync(long maxAllowedSize, System.Threading.CancellationToken cancellationToken) => throw null; + public long Length { get => throw null; } + internal JSStreamReference() : base(default(Microsoft.JSInterop.JSRuntime), default(long)) { } } - } namespace Infrastructure { public static class DotNetDispatcher { + public static string Invoke(Microsoft.JSInterop.JSRuntime jsRuntime, in Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, string argsJson) => throw null; public static void BeginInvokeDotNet(Microsoft.JSInterop.JSRuntime jsRuntime, Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, string argsJson) => throw null; public static void EndInvokeJS(Microsoft.JSInterop.JSRuntime jsRuntime, string arguments) => throw null; - public static string Invoke(Microsoft.JSInterop.JSRuntime jsRuntime, Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, string argsJson) => throw null; - public static void ReceiveByteArray(Microsoft.JSInterop.JSRuntime jsRuntime, int id, System.Byte[] data) => throw null; + public static void ReceiveByteArray(Microsoft.JSInterop.JSRuntime jsRuntime, int id, byte[] data) => throw null; } - public struct DotNetInvocationInfo { + public DotNetInvocationInfo(string assemblyName, string methodIdentifier, long dotNetObjectId, string callId) => throw null; public string AssemblyName { get => throw null; } - public string CallId { get => throw null; } - // Stub generator skipped constructor - public DotNetInvocationInfo(string assemblyName, string methodIdentifier, System.Int64 dotNetObjectId, string callId) => throw null; - public System.Int64 DotNetObjectId { get => throw null; } public string MethodIdentifier { get => throw null; } + public long DotNetObjectId { get => throw null; } + public string CallId { get => throw null; } } - public struct DotNetInvocationResult { - // Stub generator skipped constructor - public string ErrorKind { get => throw null; } public System.Exception Exception { get => throw null; } + public string ErrorKind { get => throw null; } public string ResultJson { get => throw null; } public bool Success { get => throw null; } } - - internal interface IDotNetObjectReference : System.IDisposable - { - } - public interface IJSVoidResult { } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Net.Http.Headers.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Net.Http.Headers.cs index 313c38fbba117..8aef1cf99e0dd 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Net.Http.Headers.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.Net.Http.Headers.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `Microsoft.Net.Http.Headers, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. - namespace Microsoft { namespace Net @@ -11,123 +10,117 @@ namespace Headers { public class CacheControlHeaderValue { - public CacheControlHeaderValue() => throw null; - public override bool Equals(object obj) => throw null; - public System.Collections.Generic.IList Extensions { get => throw null; } - public override int GetHashCode() => throw null; - public System.TimeSpan? MaxAge { get => throw null; set => throw null; } + public static string PublicString; + public static string PrivateString; public static string MaxAgeString; - public bool MaxStale { get => throw null; set => throw null; } - public System.TimeSpan? MaxStaleLimit { get => throw null; set => throw null; } - public static string MaxStaleString; - public System.TimeSpan? MinFresh { get => throw null; set => throw null; } - public static string MinFreshString; - public bool MustRevalidate { get => throw null; set => throw null; } - public static string MustRevalidateString; - public bool NoCache { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection NoCacheHeaders { get => throw null; } + public static string SharedMaxAgeString; public static string NoCacheString; - public bool NoStore { get => throw null; set => throw null; } public static string NoStoreString; - public bool NoTransform { get => throw null; set => throw null; } + public static string MaxStaleString; + public static string MinFreshString; public static string NoTransformString; - public bool OnlyIfCached { get => throw null; set => throw null; } public static string OnlyIfCachedString; - public static Microsoft.Net.Http.Headers.CacheControlHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public bool Private { get => throw null; set => throw null; } - public System.Collections.Generic.ICollection PrivateHeaders { get => throw null; } - public static string PrivateString; - public bool ProxyRevalidate { get => throw null; set => throw null; } + public static string MustRevalidateString; public static string ProxyRevalidateString; - public bool Public { get => throw null; set => throw null; } - public static string PublicString; - public System.TimeSpan? SharedMaxAge { get => throw null; set => throw null; } - public static string SharedMaxAgeString; + public CacheControlHeaderValue() => throw null; public override string ToString() => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static Microsoft.Net.Http.Headers.CacheControlHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.CacheControlHeaderValue parsedValue) => throw null; + public bool NoCache { get => throw null; set { } } + public System.Collections.Generic.ICollection NoCacheHeaders { get => throw null; } + public bool NoStore { get => throw null; set { } } + public System.TimeSpan? MaxAge { get => throw null; set { } } + public System.TimeSpan? SharedMaxAge { get => throw null; set { } } + public bool MaxStale { get => throw null; set { } } + public System.TimeSpan? MaxStaleLimit { get => throw null; set { } } + public System.TimeSpan? MinFresh { get => throw null; set { } } + public bool NoTransform { get => throw null; set { } } + public bool OnlyIfCached { get => throw null; set { } } + public bool Public { get => throw null; set { } } + public bool Private { get => throw null; set { } } + public System.Collections.Generic.ICollection PrivateHeaders { get => throw null; } + public bool MustRevalidate { get => throw null; set { } } + public bool ProxyRevalidate { get => throw null; set { } } + public System.Collections.Generic.IList Extensions { get => throw null; } } - public class ContentDispositionHeaderValue { public ContentDispositionHeaderValue(Microsoft.Extensions.Primitives.StringSegment dispositionType) => throw null; - public System.DateTimeOffset? CreationDate { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment DispositionType { get => throw null; set => throw null; } - public override bool Equals(object obj) => throw null; - public Microsoft.Extensions.Primitives.StringSegment FileName { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment FileNameStar { get => throw null; set => throw null; } - public override int GetHashCode() => throw null; - public System.DateTimeOffset? ModificationDate { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set => throw null; } - public System.Collections.Generic.IList Parameters { get => throw null; } - public static Microsoft.Net.Http.Headers.ContentDispositionHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public System.DateTimeOffset? ReadDate { get => throw null; set => throw null; } public void SetHttpFileName(Microsoft.Extensions.Primitives.StringSegment fileName) => throw null; public void SetMimeFileName(Microsoft.Extensions.Primitives.StringSegment fileName) => throw null; - public System.Int64? Size { get => throw null; set => throw null; } public override string ToString() => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static Microsoft.Net.Http.Headers.ContentDispositionHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue parsedValue) => throw null; + public Microsoft.Extensions.Primitives.StringSegment DispositionType { get => throw null; set { } } + public System.Collections.Generic.IList Parameters { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment FileName { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment FileNameStar { get => throw null; set { } } + public System.DateTimeOffset? CreationDate { get => throw null; set { } } + public System.DateTimeOffset? ModificationDate { get => throw null; set { } } + public System.DateTimeOffset? ReadDate { get => throw null; set { } } + public long? Size { get => throw null; set { } } } - - public static class ContentDispositionHeaderValueIdentityExtensions + public static partial class ContentDispositionHeaderValueIdentityExtensions { public static bool IsFileDisposition(this Microsoft.Net.Http.Headers.ContentDispositionHeaderValue header) => throw null; public static bool IsFormDisposition(this Microsoft.Net.Http.Headers.ContentDispositionHeaderValue header) => throw null; } - public class ContentRangeHeaderValue { - public ContentRangeHeaderValue(System.Int64 length) => throw null; - public ContentRangeHeaderValue(System.Int64 from, System.Int64 to) => throw null; - public ContentRangeHeaderValue(System.Int64 from, System.Int64 to, System.Int64 length) => throw null; + public ContentRangeHeaderValue(long from, long to, long length) => throw null; + public ContentRangeHeaderValue(long length) => throw null; + public ContentRangeHeaderValue(long from, long to) => throw null; public override bool Equals(object obj) => throw null; - public System.Int64? From { get => throw null; } public override int GetHashCode() => throw null; - public bool HasLength { get => throw null; } - public bool HasRange { get => throw null; } - public System.Int64? Length { get => throw null; } - public static Microsoft.Net.Http.Headers.ContentRangeHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public System.Int64? To { get => throw null; } public override string ToString() => throw null; + public static Microsoft.Net.Http.Headers.ContentRangeHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentRangeHeaderValue parsedValue) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Unit { get => throw null; set => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Unit { get => throw null; set { } } + public long? From { get => throw null; } + public long? To { get => throw null; } + public long? Length { get => throw null; } + public bool HasLength { get => throw null; } + public bool HasRange { get => throw null; } } - public class CookieHeaderValue { public CookieHeaderValue(Microsoft.Extensions.Primitives.StringSegment name) => throw null; public CookieHeaderValue(Microsoft.Extensions.Primitives.StringSegment name, Microsoft.Extensions.Primitives.StringSegment value) => throw null; - public override bool Equals(object obj) => throw null; - public override int GetHashCode() => throw null; - public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set => throw null; } + public override string ToString() => throw null; public static Microsoft.Net.Http.Headers.CookieHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.CookieHeaderValue parsedValue) => throw null; public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList inputs) => throw null; public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList inputs) => throw null; - public override string ToString() => throw null; - public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.CookieHeaderValue parsedValue) => throw null; public static bool TryParseList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set => throw null; } + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set { } } } - public class EntityTagHeaderValue { - public static Microsoft.Net.Http.Headers.EntityTagHeaderValue Any { get => throw null; } - public bool Compare(Microsoft.Net.Http.Headers.EntityTagHeaderValue other, bool useStrongComparison) => throw null; public EntityTagHeaderValue(Microsoft.Extensions.Primitives.StringSegment tag) => throw null; public EntityTagHeaderValue(Microsoft.Extensions.Primitives.StringSegment tag, bool isWeak) => throw null; + public override string ToString() => throw null; public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; - public bool IsWeak { get => throw null; } + public bool Compare(Microsoft.Net.Http.Headers.EntityTagHeaderValue other, bool useStrongComparison) => throw null; public static Microsoft.Net.Http.Headers.EntityTagHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.EntityTagHeaderValue parsedValue) => throw null; public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList inputs) => throw null; public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList inputs) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Tag { get => throw null; } - public override string ToString() => throw null; - public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.EntityTagHeaderValue parsedValue) => throw null; public static bool TryParseList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; + public static Microsoft.Net.Http.Headers.EntityTagHeaderValue Any { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Tag { get => throw null; } + public bool IsWeak { get => throw null; } } - public static class HeaderNames { public static string Accept; @@ -161,13 +154,13 @@ public static class HeaderNames public static string ContentSecurityPolicy; public static string ContentSecurityPolicyReportOnly; public static string ContentType; - public static string Cookie; public static string CorrelationContext; - public static string DNT; + public static string Cookie; public static string Date; + public static string DNT; public static string ETag; - public static string Expect; public static string Expires; + public static string Expect; public static string From; public static string GrpcAcceptEncoding; public static string GrpcEncoding; @@ -175,12 +168,12 @@ public static class HeaderNames public static string GrpcStatus; public static string GrpcTimeout; public static string Host; + public static string KeepAlive; public static string IfMatch; public static string IfModifiedSince; public static string IfNoneMatch; public static string IfRange; public static string IfUnmodifiedSince; - public static string KeepAlive; public static string LastModified; public static string Link; public static string Location; @@ -194,32 +187,32 @@ public static class HeaderNames public static string ProxyConnection; public static string Range; public static string Referer; - public static string RequestId; public static string RetryAfter; + public static string RequestId; public static string Scheme; public static string SecWebSocketAccept; - public static string SecWebSocketExtensions; public static string SecWebSocketKey; public static string SecWebSocketProtocol; public static string SecWebSocketVersion; + public static string SecWebSocketExtensions; public static string Server; public static string SetCookie; public static string Status; public static string StrictTransportSecurity; public static string TE; - public static string TraceParent; - public static string TraceState; public static string Trailer; public static string TransferEncoding; public static string Translate; + public static string TraceParent; + public static string TraceState; public static string Upgrade; public static string UpgradeInsecureRequests; public static string UserAgent; public static string Vary; public static string Via; - public static string WWWAuthenticate; public static string Warning; public static string WebSocketSubProtocols; + public static string WWWAuthenticate; public static string XContentTypeOptions; public static string XFrameOptions; public static string XPoweredBy; @@ -227,186 +220,173 @@ public static class HeaderNames public static string XUACompatible; public static string XXSSProtection; } - public static class HeaderQuality { - public const double Match = default; - public const double NoMatch = default; + public static double Match; + public static double NoMatch; } - public static class HeaderUtilities { + public static bool TryParseSeconds(Microsoft.Extensions.Primitives.StringValues headerValues, string targetValue, out System.TimeSpan? value) => throw null; public static bool ContainsCacheDirective(Microsoft.Extensions.Primitives.StringValues cacheControlDirectives, string targetDirectives) => throw null; - public static Microsoft.Extensions.Primitives.StringSegment EscapeAsQuotedString(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParseNonNegativeInt32(Microsoft.Extensions.Primitives.StringSegment value, out int result) => throw null; + public static bool TryParseNonNegativeInt64(Microsoft.Extensions.Primitives.StringSegment value, out long result) => throw null; + public static string FormatNonNegativeInt64(long value) => throw null; + public static bool TryParseDate(Microsoft.Extensions.Primitives.StringSegment input, out System.DateTimeOffset result) => throw null; public static string FormatDate(System.DateTimeOffset dateTime) => throw null; public static string FormatDate(System.DateTimeOffset dateTime, bool quoted) => throw null; - public static string FormatNonNegativeInt64(System.Int64 value) => throw null; - public static bool IsQuoted(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static Microsoft.Extensions.Primitives.StringSegment RemoveQuotes(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public static bool TryParseDate(Microsoft.Extensions.Primitives.StringSegment input, out System.DateTimeOffset result) => throw null; - public static bool TryParseNonNegativeInt32(Microsoft.Extensions.Primitives.StringSegment value, out int result) => throw null; - public static bool TryParseNonNegativeInt64(Microsoft.Extensions.Primitives.StringSegment value, out System.Int64 result) => throw null; - public static bool TryParseSeconds(Microsoft.Extensions.Primitives.StringValues headerValues, string targetValue, out System.TimeSpan? value) => throw null; + public static bool IsQuoted(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static Microsoft.Extensions.Primitives.StringSegment UnescapeAsQuotedString(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static Microsoft.Extensions.Primitives.StringSegment EscapeAsQuotedString(Microsoft.Extensions.Primitives.StringSegment input) => throw null; } - public class MediaTypeHeaderValue { - public Microsoft.Extensions.Primitives.StringSegment Boundary { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Charset { get => throw null; set => throw null; } + public MediaTypeHeaderValue(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; + public MediaTypeHeaderValue(Microsoft.Extensions.Primitives.StringSegment mediaType, double quality) => throw null; + public bool IsSubsetOf(Microsoft.Net.Http.Headers.MediaTypeHeaderValue otherMediaType) => throw null; public Microsoft.Net.Http.Headers.MediaTypeHeaderValue Copy() => throw null; public Microsoft.Net.Http.Headers.MediaTypeHeaderValue CopyAsReadOnly() => throw null; - public System.Text.Encoding Encoding { get => throw null; set => throw null; } + public bool MatchesMediaType(Microsoft.Extensions.Primitives.StringSegment otherMediaType) => throw null; + public override string ToString() => throw null; public override bool Equals(object obj) => throw null; - public System.Collections.Generic.IEnumerable Facets { get => throw null; } public override int GetHashCode() => throw null; - public bool IsReadOnly { get => throw null; } - public bool IsSubsetOf(Microsoft.Net.Http.Headers.MediaTypeHeaderValue otherMediaType) => throw null; - public bool MatchesAllSubTypes { get => throw null; } - public bool MatchesAllSubTypesWithoutSuffix { get => throw null; } - public bool MatchesAllTypes { get => throw null; } - public bool MatchesMediaType(Microsoft.Extensions.Primitives.StringSegment otherMediaType) => throw null; - public Microsoft.Extensions.Primitives.StringSegment MediaType { get => throw null; set => throw null; } - public MediaTypeHeaderValue(Microsoft.Extensions.Primitives.StringSegment mediaType) => throw null; - public MediaTypeHeaderValue(Microsoft.Extensions.Primitives.StringSegment mediaType, double quality) => throw null; - public System.Collections.Generic.IList Parameters { get => throw null; } public static Microsoft.Net.Http.Headers.MediaTypeHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.MediaTypeHeaderValue parsedValue) => throw null; public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList inputs) => throw null; public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList inputs) => throw null; - public double? Quality { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment SubType { get => throw null; } - public Microsoft.Extensions.Primitives.StringSegment SubTypeWithoutSuffix { get => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Suffix { get => throw null; } - public override string ToString() => throw null; - public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.MediaTypeHeaderValue parsedValue) => throw null; public static bool TryParseList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; + public Microsoft.Extensions.Primitives.StringSegment Charset { get => throw null; set { } } + public System.Text.Encoding Encoding { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment Boundary { get => throw null; set { } } + public System.Collections.Generic.IList Parameters { get => throw null; } + public double? Quality { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment MediaType { get => throw null; set { } } public Microsoft.Extensions.Primitives.StringSegment Type { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment SubType { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment SubTypeWithoutSuffix { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Suffix { get => throw null; } + public System.Collections.Generic.IEnumerable Facets { get => throw null; } + public bool MatchesAllTypes { get => throw null; } + public bool MatchesAllSubTypes { get => throw null; } + public bool MatchesAllSubTypesWithoutSuffix { get => throw null; } + public bool IsReadOnly { get => throw null; } } - public class MediaTypeHeaderValueComparer : System.Collections.Generic.IComparer { public int Compare(Microsoft.Net.Http.Headers.MediaTypeHeaderValue mediaType1, Microsoft.Net.Http.Headers.MediaTypeHeaderValue mediaType2) => throw null; public static Microsoft.Net.Http.Headers.MediaTypeHeaderValueComparer QualityComparer { get => throw null; } } - public class NameValueHeaderValue { + public NameValueHeaderValue(Microsoft.Extensions.Primitives.StringSegment name) => throw null; + public NameValueHeaderValue(Microsoft.Extensions.Primitives.StringSegment name, Microsoft.Extensions.Primitives.StringSegment value) => throw null; public Microsoft.Net.Http.Headers.NameValueHeaderValue Copy() => throw null; public Microsoft.Net.Http.Headers.NameValueHeaderValue CopyAsReadOnly() => throw null; - public override bool Equals(object obj) => throw null; - public static Microsoft.Net.Http.Headers.NameValueHeaderValue Find(System.Collections.Generic.IList values, Microsoft.Extensions.Primitives.StringSegment name) => throw null; public override int GetHashCode() => throw null; + public override bool Equals(object obj) => throw null; public Microsoft.Extensions.Primitives.StringSegment GetUnescapedValue() => throw null; - public bool IsReadOnly { get => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; } - public NameValueHeaderValue(Microsoft.Extensions.Primitives.StringSegment name) => throw null; - public NameValueHeaderValue(Microsoft.Extensions.Primitives.StringSegment name, Microsoft.Extensions.Primitives.StringSegment value) => throw null; + public void SetAndEscapeValue(Microsoft.Extensions.Primitives.StringSegment value) => throw null; public static Microsoft.Net.Http.Headers.NameValueHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.NameValueHeaderValue parsedValue) => throw null; public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList input) => throw null; public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList input) => throw null; - public void SetAndEscapeValue(Microsoft.Extensions.Primitives.StringSegment value) => throw null; - public override string ToString() => throw null; - public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.NameValueHeaderValue parsedValue) => throw null; public static bool TryParseList(System.Collections.Generic.IList input, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList input, out System.Collections.Generic.IList parsedValues) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set => throw null; } + public override string ToString() => throw null; + public static Microsoft.Net.Http.Headers.NameValueHeaderValue Find(System.Collections.Generic.IList values, Microsoft.Extensions.Primitives.StringSegment name) => throw null; + public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set { } } + public bool IsReadOnly { get => throw null; } } - public class RangeConditionHeaderValue { - public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } - public override bool Equals(object obj) => throw null; - public override int GetHashCode() => throw null; - public System.DateTimeOffset? LastModified { get => throw null; } - public static Microsoft.Net.Http.Headers.RangeConditionHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public RangeConditionHeaderValue(System.DateTimeOffset lastModified) => throw null; public RangeConditionHeaderValue(Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag) => throw null; public RangeConditionHeaderValue(string entityTag) => throw null; public override string ToString() => throw null; + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public static Microsoft.Net.Http.Headers.RangeConditionHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.RangeConditionHeaderValue parsedValue) => throw null; + public System.DateTimeOffset? LastModified { get => throw null; } + public Microsoft.Net.Http.Headers.EntityTagHeaderValue EntityTag { get => throw null; } } - public class RangeHeaderValue { + public RangeHeaderValue() => throw null; + public RangeHeaderValue(long? from, long? to) => throw null; + public override string ToString() => throw null; public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; public static Microsoft.Net.Http.Headers.RangeHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public RangeHeaderValue() => throw null; - public RangeHeaderValue(System.Int64? from, System.Int64? to) => throw null; - public System.Collections.Generic.ICollection Ranges { get => throw null; } - public override string ToString() => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.RangeHeaderValue parsedValue) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Unit { get => throw null; set => throw null; } + public Microsoft.Extensions.Primitives.StringSegment Unit { get => throw null; set { } } + public System.Collections.Generic.ICollection Ranges { get => throw null; } } - public class RangeItemHeaderValue { + public RangeItemHeaderValue(long? from, long? to) => throw null; + public override string ToString() => throw null; public override bool Equals(object obj) => throw null; - public System.Int64? From { get => throw null; } public override int GetHashCode() => throw null; - public RangeItemHeaderValue(System.Int64? from, System.Int64? to) => throw null; - public System.Int64? To { get => throw null; } - public override string ToString() => throw null; + public long? From { get => throw null; } + public long? To { get => throw null; } } - - public enum SameSiteMode : int + public enum SameSiteMode { - Lax = 1, + Unspecified = -1, None = 0, + Lax = 1, Strict = 2, - Unspecified = -1, } - public class SetCookieHeaderValue { - public void AppendToStringBuilder(System.Text.StringBuilder builder) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Domain { get => throw null; set => throw null; } - public override bool Equals(object obj) => throw null; - public System.DateTimeOffset? Expires { get => throw null; set => throw null; } - public System.Collections.Generic.IList Extensions { get => throw null; } - public override int GetHashCode() => throw null; - public bool HttpOnly { get => throw null; set => throw null; } - public System.TimeSpan? MaxAge { get => throw null; set => throw null; } - public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set => throw null; } - public static Microsoft.Net.Http.Headers.SetCookieHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; - public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList inputs) => throw null; - public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList inputs) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Path { get => throw null; set => throw null; } - public Microsoft.Net.Http.Headers.SameSiteMode SameSite { get => throw null; set => throw null; } - public bool Secure { get => throw null; set => throw null; } public SetCookieHeaderValue(Microsoft.Extensions.Primitives.StringSegment name) => throw null; public SetCookieHeaderValue(Microsoft.Extensions.Primitives.StringSegment name, Microsoft.Extensions.Primitives.StringSegment value) => throw null; public override string ToString() => throw null; + public void AppendToStringBuilder(System.Text.StringBuilder builder) => throw null; + public static Microsoft.Net.Http.Headers.SetCookieHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.SetCookieHeaderValue parsedValue) => throw null; + public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList inputs) => throw null; + public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList inputs) => throw null; public static bool TryParseList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList inputs, out System.Collections.Generic.IList parsedValues) => throw null; - public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set => throw null; } + public override bool Equals(object obj) => throw null; + public override int GetHashCode() => throw null; + public Microsoft.Extensions.Primitives.StringSegment Name { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; set { } } + public System.DateTimeOffset? Expires { get => throw null; set { } } + public System.TimeSpan? MaxAge { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment Domain { get => throw null; set { } } + public Microsoft.Extensions.Primitives.StringSegment Path { get => throw null; set { } } + public bool Secure { get => throw null; set { } } + public Microsoft.Net.Http.Headers.SameSiteMode SameSite { get => throw null; set { } } + public bool HttpOnly { get => throw null; set { } } + public System.Collections.Generic.IList Extensions { get => throw null; } } - public class StringWithQualityHeaderValue { + public StringWithQualityHeaderValue(Microsoft.Extensions.Primitives.StringSegment value) => throw null; + public StringWithQualityHeaderValue(Microsoft.Extensions.Primitives.StringSegment value, double quality) => throw null; + public override string ToString() => throw null; public override bool Equals(object obj) => throw null; public override int GetHashCode() => throw null; public static Microsoft.Net.Http.Headers.StringWithQualityHeaderValue Parse(Microsoft.Extensions.Primitives.StringSegment input) => throw null; + public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.StringWithQualityHeaderValue parsedValue) => throw null; public static System.Collections.Generic.IList ParseList(System.Collections.Generic.IList input) => throw null; public static System.Collections.Generic.IList ParseStrictList(System.Collections.Generic.IList input) => throw null; - public double? Quality { get => throw null; } - public StringWithQualityHeaderValue(Microsoft.Extensions.Primitives.StringSegment value) => throw null; - public StringWithQualityHeaderValue(Microsoft.Extensions.Primitives.StringSegment value, double quality) => throw null; - public override string ToString() => throw null; - public static bool TryParse(Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.StringWithQualityHeaderValue parsedValue) => throw null; public static bool TryParseList(System.Collections.Generic.IList input, out System.Collections.Generic.IList parsedValues) => throw null; public static bool TryParseStrictList(System.Collections.Generic.IList input, out System.Collections.Generic.IList parsedValues) => throw null; public Microsoft.Extensions.Primitives.StringSegment Value { get => throw null; } + public double? Quality { get => throw null; } } - public class StringWithQualityHeaderValueComparer : System.Collections.Generic.IComparer { public int Compare(Microsoft.Net.Http.Headers.StringWithQualityHeaderValue stringWithQuality1, Microsoft.Net.Http.Headers.StringWithQualityHeaderValue stringWithQuality2) => throw null; public static Microsoft.Net.Http.Headers.StringWithQualityHeaderValueComparer QualityComparer { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Diagnostics.EventLog.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Diagnostics.EventLog.cs index 95b5a1e011154..b259c77500257 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Diagnostics.EventLog.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Diagnostics.EventLog.cs @@ -1,30 +1,30 @@ // This file contains auto-generated code. // Generated from `System.Diagnostics.EventLog, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`. - namespace System { namespace Diagnostics { public class EntryWrittenEventArgs : System.EventArgs { - public System.Diagnostics.EventLogEntry Entry { get => throw null; } public EntryWrittenEventArgs() => throw null; public EntryWrittenEventArgs(System.Diagnostics.EventLogEntry entry) => throw null; + public System.Diagnostics.EventLogEntry Entry { get => throw null; } } - public delegate void EntryWrittenEventHandler(object sender, System.Diagnostics.EntryWrittenEventArgs e); - public class EventInstance { - public int CategoryId { get => throw null; set => throw null; } - public System.Diagnostics.EventLogEntryType EntryType { get => throw null; set => throw null; } - public EventInstance(System.Int64 instanceId, int categoryId) => throw null; - public EventInstance(System.Int64 instanceId, int categoryId, System.Diagnostics.EventLogEntryType entryType) => throw null; - public System.Int64 InstanceId { get => throw null; set => throw null; } + public EventInstance(long instanceId, int categoryId) => throw null; + public EventInstance(long instanceId, int categoryId, System.Diagnostics.EventLogEntryType entryType) => throw null; + public int CategoryId { get => throw null; set { } } + public System.Diagnostics.EventLogEntryType EntryType { get => throw null; set { } } + public long InstanceId { get => throw null; set { } } } - public class EventLog : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize { + public EventLog() => throw null; + public EventLog(string logName) => throw null; + public EventLog(string logName, string machineName) => throw null; + public EventLog(string logName, string machineName, string source) => throw null; public void BeginInit() => throw null; public void Clear() => throw null; public void Close() => throw null; @@ -36,58 +36,53 @@ public class EventLog : System.ComponentModel.Component, System.ComponentModel.I public static void DeleteEventSource(string source) => throw null; public static void DeleteEventSource(string source, string machineName) => throw null; protected override void Dispose(bool disposing) => throw null; - public bool EnableRaisingEvents { get => throw null; set => throw null; } public void EndInit() => throw null; - public System.Diagnostics.EventLogEntryCollection Entries { get => throw null; } - public event System.Diagnostics.EntryWrittenEventHandler EntryWritten; - public EventLog() => throw null; - public EventLog(string logName) => throw null; - public EventLog(string logName, string machineName) => throw null; - public EventLog(string logName, string machineName, string source) => throw null; public static bool Exists(string logName) => throw null; public static bool Exists(string logName, string machineName) => throw null; public static System.Diagnostics.EventLog[] GetEventLogs() => throw null; public static System.Diagnostics.EventLog[] GetEventLogs(string machineName) => throw null; - public string Log { get => throw null; set => throw null; } - public string LogDisplayName { get => throw null; } public static string LogNameFromSourceName(string source, string machineName) => throw null; - public string MachineName { get => throw null; set => throw null; } - public System.Int64 MaximumKilobytes { get => throw null; set => throw null; } - public int MinimumRetentionDays { get => throw null; } public void ModifyOverflowPolicy(System.Diagnostics.OverflowAction action, int retentionDays) => throw null; - public System.Diagnostics.OverflowAction OverflowAction { get => throw null; } - public void RegisterDisplayName(string resourceFile, System.Int64 resourceId) => throw null; - public string Source { get => throw null; set => throw null; } + public void RegisterDisplayName(string resourceFile, long resourceId) => throw null; public static bool SourceExists(string source) => throw null; public static bool SourceExists(string source, string machineName) => throw null; - public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get => throw null; set => throw null; } public void WriteEntry(string message) => throw null; public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type) => throw null; public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type, int eventID) => throw null; - public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type, int eventID, System.Int16 category) => throw null; - public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type, int eventID, System.Int16 category, System.Byte[] rawData) => throw null; + public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type, int eventID, short category) => throw null; + public void WriteEntry(string message, System.Diagnostics.EventLogEntryType type, int eventID, short category, byte[] rawData) => throw null; public static void WriteEntry(string source, string message) => throw null; public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type) => throw null; public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type, int eventID) => throw null; - public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type, int eventID, System.Int16 category) => throw null; - public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type, int eventID, System.Int16 category, System.Byte[] rawData) => throw null; - public void WriteEvent(System.Diagnostics.EventInstance instance, System.Byte[] data, params object[] values) => throw null; + public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type, int eventID, short category) => throw null; + public static void WriteEntry(string source, string message, System.Diagnostics.EventLogEntryType type, int eventID, short category, byte[] rawData) => throw null; + public void WriteEvent(System.Diagnostics.EventInstance instance, byte[] data, params object[] values) => throw null; public void WriteEvent(System.Diagnostics.EventInstance instance, params object[] values) => throw null; - public static void WriteEvent(string source, System.Diagnostics.EventInstance instance, System.Byte[] data, params object[] values) => throw null; + public static void WriteEvent(string source, System.Diagnostics.EventInstance instance, byte[] data, params object[] values) => throw null; public static void WriteEvent(string source, System.Diagnostics.EventInstance instance, params object[] values) => throw null; + public bool EnableRaisingEvents { get => throw null; set { } } + public System.Diagnostics.EventLogEntryCollection Entries { get => throw null; } + public string Log { get => throw null; set { } } + public string LogDisplayName { get => throw null; } + public string MachineName { get => throw null; set { } } + public long MaximumKilobytes { get => throw null; set { } } + public int MinimumRetentionDays { get => throw null; } + public System.Diagnostics.OverflowAction OverflowAction { get => throw null; } + public string Source { get => throw null; set { } } + public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get => throw null; set { } } + public event System.Diagnostics.EntryWrittenEventHandler EntryWritten { add { } remove { } } } - - public class EventLogEntry : System.ComponentModel.Component, System.Runtime.Serialization.ISerializable + public sealed class EventLogEntry : System.ComponentModel.Component, System.Runtime.Serialization.ISerializable { + public bool Equals(System.Diagnostics.EventLogEntry otherEntry) => throw null; + void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public string Category { get => throw null; } - public System.Int16 CategoryNumber { get => throw null; } - public System.Byte[] Data { get => throw null; } + public short CategoryNumber { get => throw null; } + public byte[] Data { get => throw null; } public System.Diagnostics.EventLogEntryType EntryType { get => throw null; } - public bool Equals(System.Diagnostics.EventLogEntry otherEntry) => throw null; public int EventID { get => throw null; } - void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public int Index { get => throw null; } - public System.Int64 InstanceId { get => throw null; } + public long InstanceId { get => throw null; } public string MachineName { get => throw null; } public string Message { get => throw null; } public string[] ReplacementStrings { get => throw null; } @@ -96,137 +91,125 @@ public class EventLogEntry : System.ComponentModel.Component, System.Runtime.Ser public System.DateTime TimeWritten { get => throw null; } public string UserName { get => throw null; } } - public class EventLogEntryCollection : System.Collections.ICollection, System.Collections.IEnumerable { - void System.Collections.ICollection.CopyTo(System.Array array, int index) => throw null; public void CopyTo(System.Diagnostics.EventLogEntry[] entries, int index) => throw null; - public int Count { get => throw null; } public System.Collections.IEnumerator GetEnumerator() => throw null; - bool System.Collections.ICollection.IsSynchronized { get => throw null; } + void System.Collections.ICollection.CopyTo(System.Array array, int index) => throw null; + public int Count { get => throw null; } public virtual System.Diagnostics.EventLogEntry this[int index] { get => throw null; } + bool System.Collections.ICollection.IsSynchronized { get => throw null; } object System.Collections.ICollection.SyncRoot { get => throw null; } } - - public enum EventLogEntryType : int + public enum EventLogEntryType { Error = 1, - FailureAudit = 16, + Warning = 2, Information = 4, SuccessAudit = 8, - Warning = 2, + FailureAudit = 16, } - - public class EventLogTraceListener : System.Diagnostics.TraceListener + public sealed class EventLogTraceListener : System.Diagnostics.TraceListener { - public override void Close() => throw null; - protected override void Dispose(bool disposing) => throw null; - public System.Diagnostics.EventLog EventLog { get => throw null; set => throw null; } public EventLogTraceListener() => throw null; public EventLogTraceListener(System.Diagnostics.EventLog eventLog) => throw null; public EventLogTraceListener(string source) => throw null; - public override string Name { get => throw null; set => throw null; } + public override void Close() => throw null; + protected override void Dispose(bool disposing) => throw null; public override void TraceData(System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, object data) => throw null; public override void TraceData(System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, params object[] data) => throw null; public override void TraceEvent(System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, string message) => throw null; public override void TraceEvent(System.Diagnostics.TraceEventCache eventCache, string source, System.Diagnostics.TraceEventType severity, int id, string format, params object[] args) => throw null; public override void Write(string message) => throw null; public override void WriteLine(string message) => throw null; + public System.Diagnostics.EventLog EventLog { get => throw null; set { } } + public override string Name { get => throw null; set { } } } - public class EventSourceCreationData { - public int CategoryCount { get => throw null; set => throw null; } - public string CategoryResourceFile { get => throw null; set => throw null; } public EventSourceCreationData(string source, string logName) => throw null; - public string LogName { get => throw null; set => throw null; } - public string MachineName { get => throw null; set => throw null; } - public string MessageResourceFile { get => throw null; set => throw null; } - public string ParameterResourceFile { get => throw null; set => throw null; } - public string Source { get => throw null; set => throw null; } + public int CategoryCount { get => throw null; set { } } + public string CategoryResourceFile { get => throw null; set { } } + public string LogName { get => throw null; set { } } + public string MachineName { get => throw null; set { } } + public string MessageResourceFile { get => throw null; set { } } + public string ParameterResourceFile { get => throw null; set { } } + public string Source { get => throw null; set { } } } - - public enum OverflowAction : int + public enum OverflowAction { DoNotOverwrite = -1, OverwriteAsNeeded = 0, OverwriteOlder = 1, } - namespace Eventing { namespace Reader { - public class EventBookmark + public sealed class EventBookmark { - public string BookmarkXml { get => throw null; } public EventBookmark(string bookmarkXml) => throw null; + public string BookmarkXml { get => throw null; } } - - public class EventKeyword + public sealed class EventKeyword { public string DisplayName { get => throw null; } public string Name { get => throw null; } - public System.Int64 Value { get => throw null; } + public long Value { get => throw null; } } - - public class EventLevel + public sealed class EventLevel { public string DisplayName { get => throw null; } public string Name { get => throw null; } public int Value { get => throw null; } } - public class EventLogConfiguration : System.IDisposable { - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; public EventLogConfiguration(string logName) => throw null; public EventLogConfiguration(string logName, System.Diagnostics.Eventing.Reader.EventLogSession session) => throw null; + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public void SaveChanges() => throw null; public bool IsClassicLog { get => throw null; } - public bool IsEnabled { get => throw null; set => throw null; } - public string LogFilePath { get => throw null; set => throw null; } + public bool IsEnabled { get => throw null; set { } } + public string LogFilePath { get => throw null; set { } } public System.Diagnostics.Eventing.Reader.EventLogIsolation LogIsolation { get => throw null; } - public System.Diagnostics.Eventing.Reader.EventLogMode LogMode { get => throw null; set => throw null; } + public System.Diagnostics.Eventing.Reader.EventLogMode LogMode { get => throw null; set { } } public string LogName { get => throw null; } public System.Diagnostics.Eventing.Reader.EventLogType LogType { get => throw null; } - public System.Int64 MaximumSizeInBytes { get => throw null; set => throw null; } + public long MaximumSizeInBytes { get => throw null; set { } } public string OwningProviderName { get => throw null; } public int? ProviderBufferSize { get => throw null; } public System.Guid? ProviderControlGuid { get => throw null; } - public System.Int64? ProviderKeywords { get => throw null; set => throw null; } + public long? ProviderKeywords { get => throw null; set { } } public int? ProviderLatency { get => throw null; } - public int? ProviderLevel { get => throw null; set => throw null; } + public int? ProviderLevel { get => throw null; set { } } public int? ProviderMaximumNumberOfBuffers { get => throw null; } public int? ProviderMinimumNumberOfBuffers { get => throw null; } public System.Collections.Generic.IEnumerable ProviderNames { get => throw null; } - public void SaveChanges() => throw null; - public string SecurityDescriptor { get => throw null; set => throw null; } + public string SecurityDescriptor { get => throw null; set { } } } - public class EventLogException : System.Exception { public EventLogException() => throw null; - protected EventLogException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) => throw null; protected EventLogException(int errorCode) => throw null; + protected EventLogException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) => throw null; public EventLogException(string message) => throw null; public EventLogException(string message, System.Exception innerException) => throw null; public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) => throw null; public override string Message { get => throw null; } } - - public class EventLogInformation + public sealed class EventLogInformation { public int? Attributes { get => throw null; } public System.DateTime? CreationTime { get => throw null; } - public System.Int64? FileSize { get => throw null; } + public long? FileSize { get => throw null; } public bool? IsLogFull { get => throw null; } public System.DateTime? LastAccessTime { get => throw null; } public System.DateTime? LastWriteTime { get => throw null; } - public System.Int64? OldestRecordNumber { get => throw null; } - public System.Int64? RecordCount { get => throw null; } + public long? OldestRecordNumber { get => throw null; } + public long? RecordCount { get => throw null; } } - public class EventLogInvalidDataException : System.Diagnostics.Eventing.Reader.EventLogException { public EventLogInvalidDataException() => throw null; @@ -234,28 +217,24 @@ public class EventLogInvalidDataException : System.Diagnostics.Eventing.Reader.E public EventLogInvalidDataException(string message) => throw null; public EventLogInvalidDataException(string message, System.Exception innerException) => throw null; } - - public enum EventLogIsolation : int + public enum EventLogIsolation { Application = 0, - Custom = 2, System = 1, + Custom = 2, } - - public class EventLogLink + public sealed class EventLogLink { public string DisplayName { get => throw null; } public bool IsImported { get => throw null; } public string LogName { get => throw null; } } - - public enum EventLogMode : int + public enum EventLogMode { - AutoBackup = 1, Circular = 0, + AutoBackup = 1, Retain = 2, } - public class EventLogNotFoundException : System.Diagnostics.Eventing.Reader.EventLogException { public EventLogNotFoundException() => throw null; @@ -263,14 +242,12 @@ public class EventLogNotFoundException : System.Diagnostics.Eventing.Reader.Even public EventLogNotFoundException(string message) => throw null; public EventLogNotFoundException(string message, System.Exception innerException) => throw null; } - public class EventLogPropertySelector : System.IDisposable { + public EventLogPropertySelector(System.Collections.Generic.IEnumerable propertyQueries) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public EventLogPropertySelector(System.Collections.Generic.IEnumerable propertyQueries) => throw null; } - public class EventLogProviderDisabledException : System.Diagnostics.Eventing.Reader.EventLogException { public EventLogProviderDisabledException() => throw null; @@ -278,34 +255,31 @@ public class EventLogProviderDisabledException : System.Diagnostics.Eventing.Rea public EventLogProviderDisabledException(string message) => throw null; public EventLogProviderDisabledException(string message, System.Exception innerException) => throw null; } - public class EventLogQuery { public EventLogQuery(string path, System.Diagnostics.Eventing.Reader.PathType pathType) => throw null; public EventLogQuery(string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query) => throw null; - public bool ReverseDirection { get => throw null; set => throw null; } - public System.Diagnostics.Eventing.Reader.EventLogSession Session { get => throw null; set => throw null; } - public bool TolerateQueryErrors { get => throw null; set => throw null; } + public bool ReverseDirection { get => throw null; set { } } + public System.Diagnostics.Eventing.Reader.EventLogSession Session { get => throw null; set { } } + public bool TolerateQueryErrors { get => throw null; set { } } } - public class EventLogReader : System.IDisposable { - public int BatchSize { get => throw null; set => throw null; } - public void CancelReading() => throw null; - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; public EventLogReader(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery) => throw null; public EventLogReader(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery, System.Diagnostics.Eventing.Reader.EventBookmark bookmark) => throw null; public EventLogReader(string path) => throw null; public EventLogReader(string path, System.Diagnostics.Eventing.Reader.PathType pathType) => throw null; - public System.Collections.Generic.IList LogStatus { get => throw null; } + public void CancelReading() => throw null; + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; public System.Diagnostics.Eventing.Reader.EventRecord ReadEvent() => throw null; public System.Diagnostics.Eventing.Reader.EventRecord ReadEvent(System.TimeSpan timeout) => throw null; public void Seek(System.Diagnostics.Eventing.Reader.EventBookmark bookmark) => throw null; - public void Seek(System.Diagnostics.Eventing.Reader.EventBookmark bookmark, System.Int64 offset) => throw null; - public void Seek(System.IO.SeekOrigin origin, System.Int64 offset) => throw null; + public void Seek(System.Diagnostics.Eventing.Reader.EventBookmark bookmark, long offset) => throw null; + public void Seek(System.IO.SeekOrigin origin, long offset) => throw null; + public int BatchSize { get => throw null; set { } } + public System.Collections.Generic.IList LogStatus { get => throw null; } } - public class EventLogReadingException : System.Diagnostics.Eventing.Reader.EventLogException { public EventLogReadingException() => throw null; @@ -313,52 +287,50 @@ public class EventLogReadingException : System.Diagnostics.Eventing.Reader.Event public EventLogReadingException(string message) => throw null; public EventLogReadingException(string message, System.Exception innerException) => throw null; } - public class EventLogRecord : System.Diagnostics.Eventing.Reader.EventRecord { - public override System.Guid? ActivityId { get => throw null; } - public override System.Diagnostics.Eventing.Reader.EventBookmark Bookmark { get => throw null; } - public string ContainerLog { get => throw null; } protected override void Dispose(bool disposing) => throw null; public override string FormatDescription() => throw null; public override string FormatDescription(System.Collections.Generic.IEnumerable values) => throw null; public System.Collections.Generic.IList GetPropertyValues(System.Diagnostics.Eventing.Reader.EventLogPropertySelector propertySelector) => throw null; + public override string ToXml() => throw null; + public override System.Guid? ActivityId { get => throw null; } + public override System.Diagnostics.Eventing.Reader.EventBookmark Bookmark { get => throw null; } + public string ContainerLog { get => throw null; } public override int Id { get => throw null; } - public override System.Int64? Keywords { get => throw null; } + public override long? Keywords { get => throw null; } public override System.Collections.Generic.IEnumerable KeywordsDisplayNames { get => throw null; } - public override System.Byte? Level { get => throw null; } + public override byte? Level { get => throw null; } public override string LevelDisplayName { get => throw null; } public override string LogName { get => throw null; } public override string MachineName { get => throw null; } public System.Collections.Generic.IEnumerable MatchedQueryIds { get => throw null; } - public override System.Int16? Opcode { get => throw null; } + public override short? Opcode { get => throw null; } public override string OpcodeDisplayName { get => throw null; } public override int? ProcessId { get => throw null; } public override System.Collections.Generic.IList Properties { get => throw null; } public override System.Guid? ProviderId { get => throw null; } public override string ProviderName { get => throw null; } public override int? Qualifiers { get => throw null; } - public override System.Int64? RecordId { get => throw null; } + public override long? RecordId { get => throw null; } public override System.Guid? RelatedActivityId { get => throw null; } public override int? Task { get => throw null; } public override string TaskDisplayName { get => throw null; } public override int? ThreadId { get => throw null; } public override System.DateTime? TimeCreated { get => throw null; } - public override string ToXml() => throw null; public override System.Security.Principal.SecurityIdentifier UserId { get => throw null; } - public override System.Byte? Version { get => throw null; } + public override byte? Version { get => throw null; } } - public class EventLogSession : System.IDisposable { + public EventLogSession() => throw null; + public EventLogSession(string server) => throw null; + public EventLogSession(string server, string domain, string user, System.Security.SecureString password, System.Diagnostics.Eventing.Reader.SessionAuthentication logOnType) => throw null; public void CancelCurrentOperations() => throw null; public void ClearLog(string logName) => throw null; public void ClearLog(string logName, string backupPath) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - public EventLogSession() => throw null; - public EventLogSession(string server) => throw null; - public EventLogSession(string server, string domain, string user, System.Security.SecureString password, System.Diagnostics.Eventing.Reader.SessionAuthentication logOnType) => throw null; public void ExportLog(string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath) => throw null; public void ExportLog(string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors) => throw null; public void ExportLogAndMessages(string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query, string targetFilePath) => throw null; @@ -368,117 +340,108 @@ public class EventLogSession : System.IDisposable public System.Collections.Generic.IEnumerable GetProviderNames() => throw null; public static System.Diagnostics.Eventing.Reader.EventLogSession GlobalSession { get => throw null; } } - - public class EventLogStatus + public sealed class EventLogStatus { public string LogName { get => throw null; } public int StatusCode { get => throw null; } } - - public enum EventLogType : int + public enum EventLogType { Administrative = 0, + Operational = 1, Analytical = 2, Debug = 3, - Operational = 1, } - public class EventLogWatcher : System.IDisposable { - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public bool Enabled { get => throw null; set => throw null; } public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery) => throw null; public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery, System.Diagnostics.Eventing.Reader.EventBookmark bookmark) => throw null; public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery, System.Diagnostics.Eventing.Reader.EventBookmark bookmark, bool readExistingEvents) => throw null; public EventLogWatcher(string path) => throw null; - public event System.EventHandler EventRecordWritten; + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public bool Enabled { get => throw null; set { } } + public event System.EventHandler EventRecordWritten { add { } remove { } } } - - public class EventMetadata + public sealed class EventMetadata { public string Description { get => throw null; } - public System.Int64 Id { get => throw null; } + public long Id { get => throw null; } public System.Collections.Generic.IEnumerable Keywords { get => throw null; } public System.Diagnostics.Eventing.Reader.EventLevel Level { get => throw null; } public System.Diagnostics.Eventing.Reader.EventLogLink LogLink { get => throw null; } public System.Diagnostics.Eventing.Reader.EventOpcode Opcode { get => throw null; } public System.Diagnostics.Eventing.Reader.EventTask Task { get => throw null; } public string Template { get => throw null; } - public System.Byte Version { get => throw null; } + public byte Version { get => throw null; } } - - public class EventOpcode + public sealed class EventOpcode { public string DisplayName { get => throw null; } public string Name { get => throw null; } public int Value { get => throw null; } } - - public class EventProperty + public sealed class EventProperty { public object Value { get => throw null; } } - public abstract class EventRecord : System.IDisposable { - public abstract System.Guid? ActivityId { get; } - public abstract System.Diagnostics.Eventing.Reader.EventBookmark Bookmark { get; } + protected EventRecord() => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; - protected EventRecord() => throw null; public abstract string FormatDescription(); public abstract string FormatDescription(System.Collections.Generic.IEnumerable values); + public abstract string ToXml(); + public abstract System.Guid? ActivityId { get; } + public abstract System.Diagnostics.Eventing.Reader.EventBookmark Bookmark { get; } public abstract int Id { get; } - public abstract System.Int64? Keywords { get; } + public abstract long? Keywords { get; } public abstract System.Collections.Generic.IEnumerable KeywordsDisplayNames { get; } - public abstract System.Byte? Level { get; } + public abstract byte? Level { get; } public abstract string LevelDisplayName { get; } public abstract string LogName { get; } public abstract string MachineName { get; } - public abstract System.Int16? Opcode { get; } + public abstract short? Opcode { get; } public abstract string OpcodeDisplayName { get; } public abstract int? ProcessId { get; } public abstract System.Collections.Generic.IList Properties { get; } public abstract System.Guid? ProviderId { get; } public abstract string ProviderName { get; } public abstract int? Qualifiers { get; } - public abstract System.Int64? RecordId { get; } + public abstract long? RecordId { get; } public abstract System.Guid? RelatedActivityId { get; } public abstract int? Task { get; } public abstract string TaskDisplayName { get; } public abstract int? ThreadId { get; } public abstract System.DateTime? TimeCreated { get; } - public abstract string ToXml(); public abstract System.Security.Principal.SecurityIdentifier UserId { get; } - public abstract System.Byte? Version { get; } + public abstract byte? Version { get; } } - - public class EventRecordWrittenEventArgs : System.EventArgs + public sealed class EventRecordWrittenEventArgs : System.EventArgs { public System.Exception EventException { get => throw null; } public System.Diagnostics.Eventing.Reader.EventRecord EventRecord { get => throw null; } } - - public class EventTask + public sealed class EventTask { public string DisplayName { get => throw null; } public System.Guid EventGuid { get => throw null; } public string Name { get => throw null; } public int Value { get => throw null; } } - - public enum PathType : int + public enum PathType { - FilePath = 2, LogName = 1, + FilePath = 2, } - public class ProviderMetadata : System.IDisposable { - public string DisplayName { get => throw null; } + public ProviderMetadata(string providerName) => throw null; + public ProviderMetadata(string providerName, System.Diagnostics.Eventing.Reader.EventLogSession session, System.Globalization.CultureInfo targetCultureInfo) => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; + public string DisplayName { get => throw null; } public System.Collections.Generic.IEnumerable Events { get => throw null; } public System.Uri HelpLink { get => throw null; } public System.Guid Id { get => throw null; } @@ -489,65 +452,57 @@ public class ProviderMetadata : System.IDisposable public string Name { get => throw null; } public System.Collections.Generic.IList Opcodes { get => throw null; } public string ParameterFilePath { get => throw null; } - public ProviderMetadata(string providerName) => throw null; - public ProviderMetadata(string providerName, System.Diagnostics.Eventing.Reader.EventLogSession session, System.Globalization.CultureInfo targetCultureInfo) => throw null; public string ResourceFilePath { get => throw null; } public System.Collections.Generic.IList Tasks { get => throw null; } } - - public enum SessionAuthentication : int + public enum SessionAuthentication { Default = 0, - Kerberos = 2, Negotiate = 1, + Kerberos = 2, Ntlm = 3, } - [System.Flags] public enum StandardEventKeywords : long { - AuditFailure = 4503599627370496, - AuditSuccess = 9007199254740992, - CorrelationHint = 4503599627370496, - CorrelationHint2 = 18014398509481984, - EventLogClassic = 36028797018963968, None = 0, ResponseTime = 281474976710656, - Sqm = 2251799813685248, WdiContext = 562949953421312, WdiDiagnostic = 1125899906842624, + Sqm = 2251799813685248, + AuditFailure = 4503599627370496, + CorrelationHint = 4503599627370496, + AuditSuccess = 9007199254740992, + CorrelationHint2 = 18014398509481984, + EventLogClassic = 36028797018963968, } - - public enum StandardEventLevel : int + public enum StandardEventLevel { + LogAlways = 0, Critical = 1, Error = 2, + Warning = 3, Informational = 4, - LogAlways = 0, Verbose = 5, - Warning = 3, } - - public enum StandardEventOpcode : int + public enum StandardEventOpcode { + Info = 0, + Start = 1, + Stop = 2, DataCollectionStart = 3, DataCollectionStop = 4, Extension = 5, - Info = 0, - Receive = 240, Reply = 6, Resume = 7, - Send = 9, - Start = 1, - Stop = 2, Suspend = 8, + Send = 9, + Receive = 240, } - - public enum StandardEventTask : int + public enum StandardEventTask { None = 0, } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.IO.Pipelines.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.IO.Pipelines.cs index 9bba4b098f2cf..73e49162db5da 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.IO.Pipelines.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.IO.Pipelines.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `System.IO.Pipelines, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`. - namespace System { namespace IO @@ -9,120 +8,107 @@ namespace Pipelines { public struct FlushResult { - // Stub generator skipped constructor public FlushResult(bool isCanceled, bool isCompleted) => throw null; public bool IsCanceled { get => throw null; } public bool IsCompleted { get => throw null; } } - public interface IDuplexPipe { System.IO.Pipelines.PipeReader Input { get; } System.IO.Pipelines.PipeWriter Output { get; } } - - public class Pipe + public sealed class Pipe { public Pipe() => throw null; public Pipe(System.IO.Pipelines.PipeOptions options) => throw null; - public System.IO.Pipelines.PipeReader Reader { get => throw null; } public void Reset() => throw null; + public System.IO.Pipelines.PipeReader Reader { get => throw null; } public System.IO.Pipelines.PipeWriter Writer { get => throw null; } } - public class PipeOptions { + public PipeOptions(System.Buffers.MemoryPool pool, System.IO.Pipelines.PipeScheduler readerScheduler, System.IO.Pipelines.PipeScheduler writerScheduler, long pauseWriterThreshold, long resumeWriterThreshold, int minimumSegmentSize, bool useSynchronizationContext) => throw null; public static System.IO.Pipelines.PipeOptions Default { get => throw null; } public int MinimumSegmentSize { get => throw null; } - public System.Int64 PauseWriterThreshold { get => throw null; } - public PipeOptions(System.Buffers.MemoryPool pool = default(System.Buffers.MemoryPool), System.IO.Pipelines.PipeScheduler readerScheduler = default(System.IO.Pipelines.PipeScheduler), System.IO.Pipelines.PipeScheduler writerScheduler = default(System.IO.Pipelines.PipeScheduler), System.Int64 pauseWriterThreshold = default(System.Int64), System.Int64 resumeWriterThreshold = default(System.Int64), int minimumSegmentSize = default(int), bool useSynchronizationContext = default(bool)) => throw null; - public System.Buffers.MemoryPool Pool { get => throw null; } + public long PauseWriterThreshold { get => throw null; } + public System.Buffers.MemoryPool Pool { get => throw null; } public System.IO.Pipelines.PipeScheduler ReaderScheduler { get => throw null; } - public System.Int64 ResumeWriterThreshold { get => throw null; } + public long ResumeWriterThreshold { get => throw null; } public bool UseSynchronizationContext { get => throw null; } public System.IO.Pipelines.PipeScheduler WriterScheduler { get => throw null; } } - public abstract class PipeReader { + protected PipeReader() => throw null; public abstract void AdvanceTo(System.SequencePosition consumed); public abstract void AdvanceTo(System.SequencePosition consumed, System.SequencePosition examined); - public virtual System.IO.Stream AsStream(bool leaveOpen = default(bool)) => throw null; + public virtual System.IO.Stream AsStream(bool leaveOpen) => throw null; public abstract void CancelPendingRead(); - public abstract void Complete(System.Exception exception = default(System.Exception)); - public virtual System.Threading.Tasks.ValueTask CompleteAsync(System.Exception exception = default(System.Exception)) => throw null; - public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.IO.Pipelines.PipeReader Create(System.Buffers.ReadOnlySequence sequence) => throw null; - public static System.IO.Pipelines.PipeReader Create(System.IO.Stream stream, System.IO.Pipelines.StreamPipeReaderOptions readerOptions = default(System.IO.Pipelines.StreamPipeReaderOptions)) => throw null; + public abstract void Complete(System.Exception exception); + public virtual System.Threading.Tasks.ValueTask CompleteAsync(System.Exception exception) => throw null; + public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.IO.Pipelines.PipeReader Create(System.Buffers.ReadOnlySequence sequence) => throw null; + public static System.IO.Pipelines.PipeReader Create(System.IO.Stream stream, System.IO.Pipelines.StreamPipeReaderOptions readerOptions) => throw null; public virtual void OnWriterCompleted(System.Action callback, object state) => throw null; - protected PipeReader() => throw null; - public abstract System.Threading.Tasks.ValueTask ReadAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public System.Threading.Tasks.ValueTask ReadAtLeastAsync(int minimumSize, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public abstract System.Threading.Tasks.ValueTask ReadAsync(System.Threading.CancellationToken cancellationToken); + public System.Threading.Tasks.ValueTask ReadAtLeastAsync(int minimumSize, System.Threading.CancellationToken cancellationToken) => throw null; protected virtual System.Threading.Tasks.ValueTask ReadAtLeastAsyncCore(int minimumSize, System.Threading.CancellationToken cancellationToken) => throw null; public abstract bool TryRead(out System.IO.Pipelines.ReadResult result); } - public abstract class PipeScheduler { - public static System.IO.Pipelines.PipeScheduler Inline { get => throw null; } protected PipeScheduler() => throw null; public abstract void Schedule(System.Action action, object state); + public static System.IO.Pipelines.PipeScheduler Inline { get => throw null; } public static System.IO.Pipelines.PipeScheduler ThreadPool { get => throw null; } } - - public abstract class PipeWriter : System.Buffers.IBufferWriter + public abstract class PipeWriter : System.Buffers.IBufferWriter { + protected PipeWriter() => throw null; public abstract void Advance(int bytes); - public virtual System.IO.Stream AsStream(bool leaveOpen = default(bool)) => throw null; - public virtual bool CanGetUnflushedBytes { get => throw null; } + public virtual System.IO.Stream AsStream(bool leaveOpen) => throw null; public abstract void CancelPendingFlush(); - public abstract void Complete(System.Exception exception = default(System.Exception)); - public virtual System.Threading.Tasks.ValueTask CompleteAsync(System.Exception exception = default(System.Exception)) => throw null; - protected internal virtual System.Threading.Tasks.Task CopyFromAsync(System.IO.Stream source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - public static System.IO.Pipelines.PipeWriter Create(System.IO.Stream stream, System.IO.Pipelines.StreamPipeWriterOptions writerOptions = default(System.IO.Pipelines.StreamPipeWriterOptions)) => throw null; - public abstract System.Threading.Tasks.ValueTask FlushAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - public abstract System.Memory GetMemory(int sizeHint = default(int)); - public abstract System.Span GetSpan(int sizeHint = default(int)); + public abstract void Complete(System.Exception exception); + public virtual System.Threading.Tasks.ValueTask CompleteAsync(System.Exception exception) => throw null; + protected virtual System.Threading.Tasks.Task CopyFromAsync(System.IO.Stream source, System.Threading.CancellationToken cancellationToken) => throw null; + public static System.IO.Pipelines.PipeWriter Create(System.IO.Stream stream, System.IO.Pipelines.StreamPipeWriterOptions writerOptions) => throw null; + public abstract System.Threading.Tasks.ValueTask FlushAsync(System.Threading.CancellationToken cancellationToken); + public abstract System.Memory GetMemory(int sizeHint); + public abstract System.Span GetSpan(int sizeHint); public virtual void OnReaderCompleted(System.Action callback, object state) => throw null; - protected PipeWriter() => throw null; - public virtual System.Int64 UnflushedBytes { get => throw null; } - public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory source, System.Threading.CancellationToken cancellationToken) => throw null; + public virtual bool CanGetUnflushedBytes { get => throw null; } + public virtual long UnflushedBytes { get => throw null; } } - public struct ReadResult { - public System.Buffers.ReadOnlySequence Buffer { get => throw null; } + public ReadResult(System.Buffers.ReadOnlySequence buffer, bool isCanceled, bool isCompleted) => throw null; + public System.Buffers.ReadOnlySequence Buffer { get => throw null; } public bool IsCanceled { get => throw null; } public bool IsCompleted { get => throw null; } - // Stub generator skipped constructor - public ReadResult(System.Buffers.ReadOnlySequence buffer, bool isCanceled, bool isCompleted) => throw null; } - - public static class StreamPipeExtensions + public static partial class StreamPipeExtensions { - public static System.Threading.Tasks.Task CopyToAsync(this System.IO.Stream source, System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public static System.Threading.Tasks.Task CopyToAsync(this System.IO.Stream source, System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken) => throw null; } - public class StreamPipeReaderOptions { + public StreamPipeReaderOptions(System.Buffers.MemoryPool pool, int bufferSize, int minimumReadSize, bool leaveOpen) => throw null; + public StreamPipeReaderOptions(System.Buffers.MemoryPool pool, int bufferSize, int minimumReadSize, bool leaveOpen, bool useZeroByteReads) => throw null; public int BufferSize { get => throw null; } public bool LeaveOpen { get => throw null; } public int MinimumReadSize { get => throw null; } - public System.Buffers.MemoryPool Pool { get => throw null; } - public StreamPipeReaderOptions(System.Buffers.MemoryPool pool, int bufferSize, int minimumReadSize, bool leaveOpen) => throw null; - public StreamPipeReaderOptions(System.Buffers.MemoryPool pool = default(System.Buffers.MemoryPool), int bufferSize = default(int), int minimumReadSize = default(int), bool leaveOpen = default(bool), bool useZeroByteReads = default(bool)) => throw null; + public System.Buffers.MemoryPool Pool { get => throw null; } public bool UseZeroByteReads { get => throw null; } } - public class StreamPipeWriterOptions { + public StreamPipeWriterOptions(System.Buffers.MemoryPool pool, int minimumBufferSize, bool leaveOpen) => throw null; public bool LeaveOpen { get => throw null; } public int MinimumBufferSize { get => throw null; } - public System.Buffers.MemoryPool Pool { get => throw null; } - public StreamPipeWriterOptions(System.Buffers.MemoryPool pool = default(System.Buffers.MemoryPool), int minimumBufferSize = default(int), bool leaveOpen = default(bool)) => throw null; + public System.Buffers.MemoryPool Pool { get => throw null; } } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Security.Cryptography.Xml.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Security.Cryptography.Xml.cs index b47994b9b08e4..a86003558c51d 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Security.Cryptography.Xml.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Security.Cryptography.Xml.cs @@ -1,6 +1,5 @@ // This file contains auto-generated code. // Generated from `System.Security.Cryptography.Xml, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`. - namespace System { namespace Security @@ -9,18 +8,17 @@ namespace Cryptography { namespace Xml { - public class CipherData + public sealed class CipherData { public CipherData() => throw null; - public CipherData(System.Byte[] cipherValue) => throw null; + public CipherData(byte[] cipherValue) => throw null; public CipherData(System.Security.Cryptography.Xml.CipherReference cipherReference) => throw null; - public System.Security.Cryptography.Xml.CipherReference CipherReference { get => throw null; set => throw null; } - public System.Byte[] CipherValue { get => throw null; set => throw null; } public System.Xml.XmlElement GetXml() => throw null; public void LoadXml(System.Xml.XmlElement value) => throw null; + public System.Security.Cryptography.Xml.CipherReference CipherReference { get => throw null; set { } } + public byte[] CipherValue { get => throw null; set { } } } - - public class CipherReference : System.Security.Cryptography.Xml.EncryptedReference + public sealed class CipherReference : System.Security.Cryptography.Xml.EncryptedReference { public CipherReference() => throw null; public CipherReference(string uri) => throw null; @@ -28,355 +26,358 @@ public class CipherReference : System.Security.Cryptography.Xml.EncryptedReferen public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; } - - public class DSAKeyValue : System.Security.Cryptography.Xml.KeyInfoClause - { - public DSAKeyValue() => throw null; - public DSAKeyValue(System.Security.Cryptography.DSA key) => throw null; - public override System.Xml.XmlElement GetXml() => throw null; - public System.Security.Cryptography.DSA Key { get => throw null; set => throw null; } - public override void LoadXml(System.Xml.XmlElement value) => throw null; - } - public class DataObject { - public System.Xml.XmlNodeList Data { get => throw null; set => throw null; } public DataObject() => throw null; public DataObject(string id, string mimeType, string encoding, System.Xml.XmlElement data) => throw null; - public string Encoding { get => throw null; set => throw null; } public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; set => throw null; } public void LoadXml(System.Xml.XmlElement value) => throw null; - public string MimeType { get => throw null; set => throw null; } + public System.Xml.XmlNodeList Data { get => throw null; set { } } + public string Encoding { get => throw null; set { } } + public string Id { get => throw null; set { } } + public string MimeType { get => throw null; set { } } } - - public class DataReference : System.Security.Cryptography.Xml.EncryptedReference + public sealed class DataReference : System.Security.Cryptography.Xml.EncryptedReference { public DataReference() => throw null; public DataReference(string uri) => throw null; public DataReference(string uri, System.Security.Cryptography.Xml.TransformChain transformChain) => throw null; } - - public class EncryptedData : System.Security.Cryptography.Xml.EncryptedType + public class DSAKeyValue : System.Security.Cryptography.Xml.KeyInfoClause + { + public DSAKeyValue() => throw null; + public DSAKeyValue(System.Security.Cryptography.DSA key) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; + public override void LoadXml(System.Xml.XmlElement value) => throw null; + public System.Security.Cryptography.DSA Key { get => throw null; set { } } + } + public sealed class EncryptedData : System.Security.Cryptography.Xml.EncryptedType { public EncryptedData() => throw null; public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; } - - public class EncryptedKey : System.Security.Cryptography.Xml.EncryptedType + public sealed class EncryptedKey : System.Security.Cryptography.Xml.EncryptedType { + public EncryptedKey() => throw null; public void AddReference(System.Security.Cryptography.Xml.DataReference dataReference) => throw null; public void AddReference(System.Security.Cryptography.Xml.KeyReference keyReference) => throw null; - public string CarriedKeyName { get => throw null; set => throw null; } - public EncryptedKey() => throw null; public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; - public string Recipient { get => throw null; set => throw null; } + public string CarriedKeyName { get => throw null; set { } } + public string Recipient { get => throw null; set { } } public System.Security.Cryptography.Xml.ReferenceList ReferenceList { get => throw null; } } - public abstract class EncryptedReference { - public void AddTransform(System.Security.Cryptography.Xml.Transform transform) => throw null; - protected internal bool CacheValid { get => throw null; } protected EncryptedReference() => throw null; protected EncryptedReference(string uri) => throw null; protected EncryptedReference(string uri, System.Security.Cryptography.Xml.TransformChain transformChain) => throw null; + public void AddTransform(System.Security.Cryptography.Xml.Transform transform) => throw null; public virtual System.Xml.XmlElement GetXml() => throw null; public virtual void LoadXml(System.Xml.XmlElement value) => throw null; - protected string ReferenceType { get => throw null; set => throw null; } - public System.Security.Cryptography.Xml.TransformChain TransformChain { get => throw null; set => throw null; } - public string Uri { get => throw null; set => throw null; } + protected bool CacheValid { get => throw null; } + protected string ReferenceType { get => throw null; set { } } + public System.Security.Cryptography.Xml.TransformChain TransformChain { get => throw null; set { } } + public string Uri { get => throw null; set { } } } - public abstract class EncryptedType { - public void AddProperty(System.Security.Cryptography.Xml.EncryptionProperty ep) => throw null; - public virtual System.Security.Cryptography.Xml.CipherData CipherData { get => throw null; set => throw null; } - public virtual string Encoding { get => throw null; set => throw null; } protected EncryptedType() => throw null; - public virtual System.Security.Cryptography.Xml.EncryptionMethod EncryptionMethod { get => throw null; set => throw null; } - public virtual System.Security.Cryptography.Xml.EncryptionPropertyCollection EncryptionProperties { get => throw null; } + public void AddProperty(System.Security.Cryptography.Xml.EncryptionProperty ep) => throw null; public abstract System.Xml.XmlElement GetXml(); - public virtual string Id { get => throw null; set => throw null; } - public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set => throw null; } public abstract void LoadXml(System.Xml.XmlElement value); - public virtual string MimeType { get => throw null; set => throw null; } - public virtual string Type { get => throw null; set => throw null; } + public virtual System.Security.Cryptography.Xml.CipherData CipherData { get => throw null; set { } } + public virtual string Encoding { get => throw null; set { } } + public virtual System.Security.Cryptography.Xml.EncryptionMethod EncryptionMethod { get => throw null; set { } } + public virtual System.Security.Cryptography.Xml.EncryptionPropertyCollection EncryptionProperties { get => throw null; } + public virtual string Id { get => throw null; set { } } + public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set { } } + public virtual string MimeType { get => throw null; set { } } + public virtual string Type { get => throw null; set { } } } - public class EncryptedXml { + public static string XmlEncAES128KeyWrapUrl; + public static string XmlEncAES128Url; + public static string XmlEncAES192KeyWrapUrl; + public static string XmlEncAES192Url; + public static string XmlEncAES256KeyWrapUrl; + public static string XmlEncAES256Url; + public static string XmlEncDESUrl; + public static string XmlEncElementContentUrl; + public static string XmlEncElementUrl; + public static string XmlEncEncryptedKeyUrl; + public static string XmlEncNamespaceUrl; + public static string XmlEncRSA15Url; + public static string XmlEncRSAOAEPUrl; + public static string XmlEncSHA256Url; + public static string XmlEncSHA512Url; + public static string XmlEncTripleDESKeyWrapUrl; + public static string XmlEncTripleDESUrl; + public EncryptedXml() => throw null; + public EncryptedXml(System.Xml.XmlDocument document) => throw null; + public EncryptedXml(System.Xml.XmlDocument document, System.Security.Policy.Evidence evidence) => throw null; public void AddKeyNameMapping(string keyName, object keyObject) => throw null; public void ClearKeyNameMappings() => throw null; - public System.Byte[] DecryptData(System.Security.Cryptography.Xml.EncryptedData encryptedData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; + public byte[] DecryptData(System.Security.Cryptography.Xml.EncryptedData encryptedData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; public void DecryptDocument() => throw null; - public virtual System.Byte[] DecryptEncryptedKey(System.Security.Cryptography.Xml.EncryptedKey encryptedKey) => throw null; - public static System.Byte[] DecryptKey(System.Byte[] keyData, System.Security.Cryptography.RSA rsa, bool useOAEP) => throw null; - public static System.Byte[] DecryptKey(System.Byte[] keyData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; - public System.Security.Policy.Evidence DocumentEvidence { get => throw null; set => throw null; } - public System.Text.Encoding Encoding { get => throw null; set => throw null; } + public virtual byte[] DecryptEncryptedKey(System.Security.Cryptography.Xml.EncryptedKey encryptedKey) => throw null; + public static byte[] DecryptKey(byte[] keyData, System.Security.Cryptography.RSA rsa, bool useOAEP) => throw null; + public static byte[] DecryptKey(byte[] keyData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; public System.Security.Cryptography.Xml.EncryptedData Encrypt(System.Xml.XmlElement inputElement, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) => throw null; public System.Security.Cryptography.Xml.EncryptedData Encrypt(System.Xml.XmlElement inputElement, string keyName) => throw null; - public System.Byte[] EncryptData(System.Byte[] plaintext, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; - public System.Byte[] EncryptData(System.Xml.XmlElement inputElement, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm, bool content) => throw null; - public static System.Byte[] EncryptKey(System.Byte[] keyData, System.Security.Cryptography.RSA rsa, bool useOAEP) => throw null; - public static System.Byte[] EncryptKey(System.Byte[] keyData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; - public EncryptedXml() => throw null; - public EncryptedXml(System.Xml.XmlDocument document) => throw null; - public EncryptedXml(System.Xml.XmlDocument document, System.Security.Policy.Evidence evidence) => throw null; - public virtual System.Byte[] GetDecryptionIV(System.Security.Cryptography.Xml.EncryptedData encryptedData, string symmetricAlgorithmUri) => throw null; + public byte[] EncryptData(byte[] plaintext, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; + public byte[] EncryptData(System.Xml.XmlElement inputElement, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm, bool content) => throw null; + public static byte[] EncryptKey(byte[] keyData, System.Security.Cryptography.RSA rsa, bool useOAEP) => throw null; + public static byte[] EncryptKey(byte[] keyData, System.Security.Cryptography.SymmetricAlgorithm symmetricAlgorithm) => throw null; + public virtual byte[] GetDecryptionIV(System.Security.Cryptography.Xml.EncryptedData encryptedData, string symmetricAlgorithmUri) => throw null; public virtual System.Security.Cryptography.SymmetricAlgorithm GetDecryptionKey(System.Security.Cryptography.Xml.EncryptedData encryptedData, string symmetricAlgorithmUri) => throw null; public virtual System.Xml.XmlElement GetIdElement(System.Xml.XmlDocument document, string idValue) => throw null; - public System.Security.Cryptography.CipherMode Mode { get => throw null; set => throw null; } - public System.Security.Cryptography.PaddingMode Padding { get => throw null; set => throw null; } - public string Recipient { get => throw null; set => throw null; } - public void ReplaceData(System.Xml.XmlElement inputElement, System.Byte[] decryptedData) => throw null; + public void ReplaceData(System.Xml.XmlElement inputElement, byte[] decryptedData) => throw null; public static void ReplaceElement(System.Xml.XmlElement inputElement, System.Security.Cryptography.Xml.EncryptedData encryptedData, bool content) => throw null; - public System.Xml.XmlResolver Resolver { get => throw null; set => throw null; } - public int XmlDSigSearchDepth { get => throw null; set => throw null; } - public const string XmlEncAES128KeyWrapUrl = default; - public const string XmlEncAES128Url = default; - public const string XmlEncAES192KeyWrapUrl = default; - public const string XmlEncAES192Url = default; - public const string XmlEncAES256KeyWrapUrl = default; - public const string XmlEncAES256Url = default; - public const string XmlEncDESUrl = default; - public const string XmlEncElementContentUrl = default; - public const string XmlEncElementUrl = default; - public const string XmlEncEncryptedKeyUrl = default; - public const string XmlEncNamespaceUrl = default; - public const string XmlEncRSA15Url = default; - public const string XmlEncRSAOAEPUrl = default; - public const string XmlEncSHA256Url = default; - public const string XmlEncSHA512Url = default; - public const string XmlEncTripleDESKeyWrapUrl = default; - public const string XmlEncTripleDESUrl = default; - } - + public System.Security.Policy.Evidence DocumentEvidence { get => throw null; set { } } + public System.Text.Encoding Encoding { get => throw null; set { } } + public System.Security.Cryptography.CipherMode Mode { get => throw null; set { } } + public System.Security.Cryptography.PaddingMode Padding { get => throw null; set { } } + public string Recipient { get => throw null; set { } } + public System.Xml.XmlResolver Resolver { get => throw null; set { } } + public int XmlDSigSearchDepth { get => throw null; set { } } + } public class EncryptionMethod { public EncryptionMethod() => throw null; public EncryptionMethod(string algorithm) => throw null; public System.Xml.XmlElement GetXml() => throw null; - public string KeyAlgorithm { get => throw null; set => throw null; } - public int KeySize { get => throw null; set => throw null; } public void LoadXml(System.Xml.XmlElement value) => throw null; + public string KeyAlgorithm { get => throw null; set { } } + public int KeySize { get => throw null; set { } } } - - public class EncryptionProperty + public sealed class EncryptionProperty { public EncryptionProperty() => throw null; public EncryptionProperty(System.Xml.XmlElement elementProperty) => throw null; public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; } public void LoadXml(System.Xml.XmlElement value) => throw null; - public System.Xml.XmlElement PropertyElement { get => throw null; set => throw null; } + public string Id { get => throw null; } + public System.Xml.XmlElement PropertyElement { get => throw null; set { } } public string Target { get => throw null; } } - - public class EncryptionPropertyCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList + public sealed class EncryptionPropertyCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList { + public EncryptionPropertyCollection() => throw null; public int Add(System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; - int System.Collections.IList.Add(object value) => throw null; public void Clear() => throw null; public bool Contains(System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; - bool System.Collections.IList.Contains(object value) => throw null; public void CopyTo(System.Array array, int index) => throw null; public void CopyTo(System.Security.Cryptography.Xml.EncryptionProperty[] array, int index) => throw null; - public int Count { get => throw null; } - public EncryptionPropertyCollection() => throw null; public System.Collections.IEnumerator GetEnumerator() => throw null; public int IndexOf(System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; - int System.Collections.IList.IndexOf(object value) => throw null; public void Insert(int index, System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; + public System.Security.Cryptography.Xml.EncryptionProperty Item(int index) => throw null; + public void Remove(System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; + public void RemoveAt(int index) => throw null; + int System.Collections.IList.Add(object value) => throw null; + bool System.Collections.IList.Contains(object value) => throw null; + int System.Collections.IList.IndexOf(object value) => throw null; void System.Collections.IList.Insert(int index, object value) => throw null; + void System.Collections.IList.Remove(object value) => throw null; + public int Count { get => throw null; } public bool IsFixedSize { get => throw null; } public bool IsReadOnly { get => throw null; } public bool IsSynchronized { get => throw null; } - public System.Security.Cryptography.Xml.EncryptionProperty Item(int index) => throw null; [System.Runtime.CompilerServices.IndexerName("ItemOf")] - public System.Security.Cryptography.Xml.EncryptionProperty this[int index] { get => throw null; set => throw null; } - object System.Collections.IList.this[int index] { get => throw null; set => throw null; } - public void Remove(System.Security.Cryptography.Xml.EncryptionProperty value) => throw null; - void System.Collections.IList.Remove(object value) => throw null; - public void RemoveAt(int index) => throw null; + public System.Security.Cryptography.Xml.EncryptionProperty this[int index] { get => throw null; set { } } public object SyncRoot { get => throw null; } + object System.Collections.IList.this[int index] { get => throw null; set { } } } - public interface IRelDecryptor { System.IO.Stream Decrypt(System.Security.Cryptography.Xml.EncryptionMethod encryptionMethod, System.Security.Cryptography.Xml.KeyInfo keyInfo, System.IO.Stream toDecrypt); } - public class KeyInfo : System.Collections.IEnumerable { + public KeyInfo() => throw null; public void AddClause(System.Security.Cryptography.Xml.KeyInfoClause clause) => throw null; - public int Count { get => throw null; } public System.Collections.IEnumerator GetEnumerator() => throw null; public System.Collections.IEnumerator GetEnumerator(System.Type requestedObjectType) => throw null; public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; set => throw null; } - public KeyInfo() => throw null; public void LoadXml(System.Xml.XmlElement value) => throw null; + public int Count { get => throw null; } + public string Id { get => throw null; set { } } } - public abstract class KeyInfoClause { - public abstract System.Xml.XmlElement GetXml(); protected KeyInfoClause() => throw null; + public abstract System.Xml.XmlElement GetXml(); public abstract void LoadXml(System.Xml.XmlElement element); } - public class KeyInfoEncryptedKey : System.Security.Cryptography.Xml.KeyInfoClause { - public System.Security.Cryptography.Xml.EncryptedKey EncryptedKey { get => throw null; set => throw null; } - public override System.Xml.XmlElement GetXml() => throw null; public KeyInfoEncryptedKey() => throw null; public KeyInfoEncryptedKey(System.Security.Cryptography.Xml.EncryptedKey encryptedKey) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; + public System.Security.Cryptography.Xml.EncryptedKey EncryptedKey { get => throw null; set { } } } - public class KeyInfoName : System.Security.Cryptography.Xml.KeyInfoClause { - public override System.Xml.XmlElement GetXml() => throw null; public KeyInfoName() => throw null; public KeyInfoName(string keyName) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; - public string Value { get => throw null; set => throw null; } + public string Value { get => throw null; set { } } } - public class KeyInfoNode : System.Security.Cryptography.Xml.KeyInfoClause { - public override System.Xml.XmlElement GetXml() => throw null; public KeyInfoNode() => throw null; public KeyInfoNode(System.Xml.XmlElement node) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; - public System.Xml.XmlElement Value { get => throw null; set => throw null; } + public System.Xml.XmlElement Value { get => throw null; set { } } } - public class KeyInfoRetrievalMethod : System.Security.Cryptography.Xml.KeyInfoClause { - public override System.Xml.XmlElement GetXml() => throw null; public KeyInfoRetrievalMethod() => throw null; public KeyInfoRetrievalMethod(string strUri) => throw null; public KeyInfoRetrievalMethod(string strUri, string typeName) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; public override void LoadXml(System.Xml.XmlElement value) => throw null; - public string Type { get => throw null; set => throw null; } - public string Uri { get => throw null; set => throw null; } + public string Type { get => throw null; set { } } + public string Uri { get => throw null; set { } } } - public class KeyInfoX509Data : System.Security.Cryptography.Xml.KeyInfoClause { + public KeyInfoX509Data() => throw null; + public KeyInfoX509Data(byte[] rgbCert) => throw null; + public KeyInfoX509Data(System.Security.Cryptography.X509Certificates.X509Certificate cert) => throw null; + public KeyInfoX509Data(System.Security.Cryptography.X509Certificates.X509Certificate cert, System.Security.Cryptography.X509Certificates.X509IncludeOption includeOption) => throw null; public void AddCertificate(System.Security.Cryptography.X509Certificates.X509Certificate certificate) => throw null; public void AddIssuerSerial(string issuerName, string serialNumber) => throw null; - public void AddSubjectKeyId(System.Byte[] subjectKeyId) => throw null; + public void AddSubjectKeyId(byte[] subjectKeyId) => throw null; public void AddSubjectKeyId(string subjectKeyId) => throw null; public void AddSubjectName(string subjectName) => throw null; - public System.Byte[] CRL { get => throw null; set => throw null; } - public System.Collections.ArrayList Certificates { get => throw null; } public override System.Xml.XmlElement GetXml() => throw null; - public System.Collections.ArrayList IssuerSerials { get => throw null; } - public KeyInfoX509Data() => throw null; - public KeyInfoX509Data(System.Byte[] rgbCert) => throw null; - public KeyInfoX509Data(System.Security.Cryptography.X509Certificates.X509Certificate cert) => throw null; - public KeyInfoX509Data(System.Security.Cryptography.X509Certificates.X509Certificate cert, System.Security.Cryptography.X509Certificates.X509IncludeOption includeOption) => throw null; public override void LoadXml(System.Xml.XmlElement element) => throw null; + public System.Collections.ArrayList Certificates { get => throw null; } + public byte[] CRL { get => throw null; set { } } + public System.Collections.ArrayList IssuerSerials { get => throw null; } public System.Collections.ArrayList SubjectKeyIds { get => throw null; } public System.Collections.ArrayList SubjectNames { get => throw null; } } - - public class KeyReference : System.Security.Cryptography.Xml.EncryptedReference + public sealed class KeyReference : System.Security.Cryptography.Xml.EncryptedReference { public KeyReference() => throw null; public KeyReference(string uri) => throw null; public KeyReference(string uri, System.Security.Cryptography.Xml.TransformChain transformChain) => throw null; } - - public class RSAKeyValue : System.Security.Cryptography.Xml.KeyInfoClause - { - public override System.Xml.XmlElement GetXml() => throw null; - public System.Security.Cryptography.RSA Key { get => throw null; set => throw null; } - public override void LoadXml(System.Xml.XmlElement value) => throw null; - public RSAKeyValue() => throw null; - public RSAKeyValue(System.Security.Cryptography.RSA key) => throw null; - } - public class Reference { - public void AddTransform(System.Security.Cryptography.Xml.Transform transform) => throw null; - public string DigestMethod { get => throw null; set => throw null; } - public System.Byte[] DigestValue { get => throw null; set => throw null; } - public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; set => throw null; } - public void LoadXml(System.Xml.XmlElement value) => throw null; public Reference() => throw null; public Reference(System.IO.Stream stream) => throw null; public Reference(string uri) => throw null; - public System.Security.Cryptography.Xml.TransformChain TransformChain { get => throw null; set => throw null; } - public string Type { get => throw null; set => throw null; } - public string Uri { get => throw null; set => throw null; } + public void AddTransform(System.Security.Cryptography.Xml.Transform transform) => throw null; + public System.Xml.XmlElement GetXml() => throw null; + public void LoadXml(System.Xml.XmlElement value) => throw null; + public string DigestMethod { get => throw null; set { } } + public byte[] DigestValue { get => throw null; set { } } + public string Id { get => throw null; set { } } + public System.Security.Cryptography.Xml.TransformChain TransformChain { get => throw null; set { } } + public string Type { get => throw null; set { } } + public string Uri { get => throw null; set { } } } - - public class ReferenceList : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList + public sealed class ReferenceList : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList { + public ReferenceList() => throw null; public int Add(object value) => throw null; public void Clear() => throw null; public bool Contains(object value) => throw null; public void CopyTo(System.Array array, int index) => throw null; - public int Count { get => throw null; } public System.Collections.IEnumerator GetEnumerator() => throw null; public int IndexOf(object value) => throw null; public void Insert(int index, object value) => throw null; - bool System.Collections.IList.IsFixedSize { get => throw null; } - bool System.Collections.IList.IsReadOnly { get => throw null; } - public bool IsSynchronized { get => throw null; } public System.Security.Cryptography.Xml.EncryptedReference Item(int index) => throw null; - [System.Runtime.CompilerServices.IndexerName("ItemOf")] - public System.Security.Cryptography.Xml.EncryptedReference this[int index] { get => throw null; set => throw null; } - object System.Collections.IList.this[int index] { get => throw null; set => throw null; } - public ReferenceList() => throw null; public void Remove(object value) => throw null; public void RemoveAt(int index) => throw null; + public int Count { get => throw null; } + public bool IsSynchronized { get => throw null; } + [System.Runtime.CompilerServices.IndexerName("ItemOf")] + public System.Security.Cryptography.Xml.EncryptedReference this[int index] { get => throw null; set { } } public object SyncRoot { get => throw null; } + bool System.Collections.IList.IsFixedSize { get => throw null; } + bool System.Collections.IList.IsReadOnly { get => throw null; } + object System.Collections.IList.this[int index] { get => throw null; set { } } + } + public class RSAKeyValue : System.Security.Cryptography.Xml.KeyInfoClause + { + public RSAKeyValue() => throw null; + public RSAKeyValue(System.Security.Cryptography.RSA key) => throw null; + public override System.Xml.XmlElement GetXml() => throw null; + public override void LoadXml(System.Xml.XmlElement value) => throw null; + public System.Security.Cryptography.RSA Key { get => throw null; set { } } } - public class Signature { + public Signature() => throw null; public void AddObject(System.Security.Cryptography.Xml.DataObject dataObject) => throw null; public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; set => throw null; } - public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set => throw null; } public void LoadXml(System.Xml.XmlElement value) => throw null; - public System.Collections.IList ObjectList { get => throw null; set => throw null; } - public Signature() => throw null; - public System.Byte[] SignatureValue { get => throw null; set => throw null; } - public System.Security.Cryptography.Xml.SignedInfo SignedInfo { get => throw null; set => throw null; } + public string Id { get => throw null; set { } } + public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set { } } + public System.Collections.IList ObjectList { get => throw null; set { } } + public byte[] SignatureValue { get => throw null; set { } } + public System.Security.Cryptography.Xml.SignedInfo SignedInfo { get => throw null; set { } } } - public class SignedInfo : System.Collections.ICollection, System.Collections.IEnumerable { + public SignedInfo() => throw null; public void AddReference(System.Security.Cryptography.Xml.Reference reference) => throw null; - public string CanonicalizationMethod { get => throw null; set => throw null; } - public System.Security.Cryptography.Xml.Transform CanonicalizationMethodObject { get => throw null; } public void CopyTo(System.Array array, int index) => throw null; - public int Count { get => throw null; } public System.Collections.IEnumerator GetEnumerator() => throw null; public System.Xml.XmlElement GetXml() => throw null; - public string Id { get => throw null; set => throw null; } + public void LoadXml(System.Xml.XmlElement value) => throw null; + public string CanonicalizationMethod { get => throw null; set { } } + public System.Security.Cryptography.Xml.Transform CanonicalizationMethodObject { get => throw null; } + public int Count { get => throw null; } + public string Id { get => throw null; set { } } public bool IsReadOnly { get => throw null; } public bool IsSynchronized { get => throw null; } - public void LoadXml(System.Xml.XmlElement value) => throw null; public System.Collections.ArrayList References { get => throw null; } - public string SignatureLength { get => throw null; set => throw null; } - public string SignatureMethod { get => throw null; set => throw null; } - public SignedInfo() => throw null; + public string SignatureLength { get => throw null; set { } } + public string SignatureMethod { get => throw null; set { } } public object SyncRoot { get => throw null; } } - public class SignedXml { + protected System.Security.Cryptography.Xml.Signature m_signature; + protected string m_strSigningKeyName; + public static string XmlDecryptionTransformUrl; + public static string XmlDsigBase64TransformUrl; + public static string XmlDsigC14NTransformUrl; + public static string XmlDsigC14NWithCommentsTransformUrl; + public static string XmlDsigCanonicalizationUrl; + public static string XmlDsigCanonicalizationWithCommentsUrl; + public static string XmlDsigDSAUrl; + public static string XmlDsigEnvelopedSignatureTransformUrl; + public static string XmlDsigExcC14NTransformUrl; + public static string XmlDsigExcC14NWithCommentsTransformUrl; + public static string XmlDsigHMACSHA1Url; + public static string XmlDsigMinimalCanonicalizationUrl; + public static string XmlDsigNamespaceUrl; + public static string XmlDsigRSASHA1Url; + public static string XmlDsigRSASHA256Url; + public static string XmlDsigRSASHA384Url; + public static string XmlDsigRSASHA512Url; + public static string XmlDsigSHA1Url; + public static string XmlDsigSHA256Url; + public static string XmlDsigSHA384Url; + public static string XmlDsigSHA512Url; + public static string XmlDsigXPathTransformUrl; + public static string XmlDsigXsltTransformUrl; + public static string XmlLicenseTransformUrl; + public SignedXml() => throw null; + public SignedXml(System.Xml.XmlDocument document) => throw null; + public SignedXml(System.Xml.XmlElement elem) => throw null; public void AddObject(System.Security.Cryptography.Xml.DataObject dataObject) => throw null; public void AddReference(System.Security.Cryptography.Xml.Reference reference) => throw null; public bool CheckSignature() => throw null; @@ -386,200 +387,158 @@ public class SignedXml public bool CheckSignatureReturningKey(out System.Security.Cryptography.AsymmetricAlgorithm signingKey) => throw null; public void ComputeSignature() => throw null; public void ComputeSignature(System.Security.Cryptography.KeyedHashAlgorithm macAlg) => throw null; - public System.Security.Cryptography.Xml.EncryptedXml EncryptedXml { get => throw null; set => throw null; } public virtual System.Xml.XmlElement GetIdElement(System.Xml.XmlDocument document, string idValue) => throw null; protected virtual System.Security.Cryptography.AsymmetricAlgorithm GetPublicKey() => throw null; public System.Xml.XmlElement GetXml() => throw null; - public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set => throw null; } public void LoadXml(System.Xml.XmlElement value) => throw null; - public System.Xml.XmlResolver Resolver { set => throw null; } + public System.Security.Cryptography.Xml.EncryptedXml EncryptedXml { get => throw null; set { } } + public System.Security.Cryptography.Xml.KeyInfo KeyInfo { get => throw null; set { } } + public System.Xml.XmlResolver Resolver { set { } } public System.Collections.ObjectModel.Collection SafeCanonicalizationMethods { get => throw null; } public System.Security.Cryptography.Xml.Signature Signature { get => throw null; } - public System.Func SignatureFormatValidator { get => throw null; set => throw null; } + public System.Func SignatureFormatValidator { get => throw null; set { } } public string SignatureLength { get => throw null; } public string SignatureMethod { get => throw null; } - public System.Byte[] SignatureValue { get => throw null; } + public byte[] SignatureValue { get => throw null; } public System.Security.Cryptography.Xml.SignedInfo SignedInfo { get => throw null; } - public SignedXml() => throw null; - public SignedXml(System.Xml.XmlDocument document) => throw null; - public SignedXml(System.Xml.XmlElement elem) => throw null; - public System.Security.Cryptography.AsymmetricAlgorithm SigningKey { get => throw null; set => throw null; } - public string SigningKeyName { get => throw null; set => throw null; } - public const string XmlDecryptionTransformUrl = default; - public const string XmlDsigBase64TransformUrl = default; - public const string XmlDsigC14NTransformUrl = default; - public const string XmlDsigC14NWithCommentsTransformUrl = default; - public const string XmlDsigCanonicalizationUrl = default; - public const string XmlDsigCanonicalizationWithCommentsUrl = default; - public const string XmlDsigDSAUrl = default; - public const string XmlDsigEnvelopedSignatureTransformUrl = default; - public const string XmlDsigExcC14NTransformUrl = default; - public const string XmlDsigExcC14NWithCommentsTransformUrl = default; - public const string XmlDsigHMACSHA1Url = default; - public const string XmlDsigMinimalCanonicalizationUrl = default; - public const string XmlDsigNamespaceUrl = default; - public const string XmlDsigRSASHA1Url = default; - public const string XmlDsigRSASHA256Url = default; - public const string XmlDsigRSASHA384Url = default; - public const string XmlDsigRSASHA512Url = default; - public const string XmlDsigSHA1Url = default; - public const string XmlDsigSHA256Url = default; - public const string XmlDsigSHA384Url = default; - public const string XmlDsigSHA512Url = default; - public const string XmlDsigXPathTransformUrl = default; - public const string XmlDsigXsltTransformUrl = default; - public const string XmlLicenseTransformUrl = default; - protected System.Security.Cryptography.Xml.Signature m_signature; - protected string m_strSigningKeyName; + public System.Security.Cryptography.AsymmetricAlgorithm SigningKey { get => throw null; set { } } + public string SigningKeyName { get => throw null; set { } } } - public abstract class Transform { - public string Algorithm { get => throw null; set => throw null; } - public System.Xml.XmlElement Context { get => throw null; set => throw null; } - public virtual System.Byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; + protected Transform() => throw null; + public virtual byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; protected abstract System.Xml.XmlNodeList GetInnerXml(); public abstract object GetOutput(); public abstract object GetOutput(System.Type type); public System.Xml.XmlElement GetXml() => throw null; - public abstract System.Type[] InputTypes { get; } public abstract void LoadInnerXml(System.Xml.XmlNodeList nodeList); public abstract void LoadInput(object obj); + public string Algorithm { get => throw null; set { } } + public System.Xml.XmlElement Context { get => throw null; set { } } + public abstract System.Type[] InputTypes { get; } public abstract System.Type[] OutputTypes { get; } public System.Collections.Hashtable PropagatedNamespaces { get => throw null; } - public System.Xml.XmlResolver Resolver { set => throw null; } - protected Transform() => throw null; + public System.Xml.XmlResolver Resolver { set { } } } - public class TransformChain { + public TransformChain() => throw null; public void Add(System.Security.Cryptography.Xml.Transform transform) => throw null; - public int Count { get => throw null; } public System.Collections.IEnumerator GetEnumerator() => throw null; + public int Count { get => throw null; } public System.Security.Cryptography.Xml.Transform this[int index] { get => throw null; } - public TransformChain() => throw null; } - public class XmlDecryptionTransform : System.Security.Cryptography.Xml.Transform { + public XmlDecryptionTransform() => throw null; public void AddExceptUri(string uri) => throw null; - public System.Security.Cryptography.Xml.EncryptedXml EncryptedXml { get => throw null; set => throw null; } protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } protected virtual bool IsTargetElement(System.Xml.XmlElement inputElement, string idValue) => throw null; public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public System.Security.Cryptography.Xml.EncryptedXml EncryptedXml { get => throw null; set { } } + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDecryptionTransform() => throw null; } - public class XmlDsigBase64Transform : System.Security.Cryptography.Xml.Transform { + public XmlDsigBase64Transform() => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigBase64Transform() => throw null; } - public class XmlDsigC14NTransform : System.Security.Cryptography.Xml.Transform { - public override System.Byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; + public XmlDsigC14NTransform() => throw null; + public XmlDsigC14NTransform(bool includeComments) => throw null; + public override byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigC14NTransform() => throw null; - public XmlDsigC14NTransform(bool includeComments) => throw null; } - public class XmlDsigC14NWithCommentsTransform : System.Security.Cryptography.Xml.XmlDsigC14NTransform { public XmlDsigC14NWithCommentsTransform() => throw null; } - public class XmlDsigEnvelopedSignatureTransform : System.Security.Cryptography.Xml.Transform { + public XmlDsigEnvelopedSignatureTransform() => throw null; + public XmlDsigEnvelopedSignatureTransform(bool includeComments) => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigEnvelopedSignatureTransform() => throw null; - public XmlDsigEnvelopedSignatureTransform(bool includeComments) => throw null; } - public class XmlDsigExcC14NTransform : System.Security.Cryptography.Xml.Transform { - public override System.Byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; + public XmlDsigExcC14NTransform() => throw null; + public XmlDsigExcC14NTransform(bool includeComments) => throw null; + public XmlDsigExcC14NTransform(bool includeComments, string inclusiveNamespacesPrefixList) => throw null; + public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) => throw null; + public override byte[] GetDigestedOutput(System.Security.Cryptography.HashAlgorithm hash) => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public string InclusiveNamespacesPrefixList { get => throw null; set => throw null; } - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public string InclusiveNamespacesPrefixList { get => throw null; set { } } + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigExcC14NTransform() => throw null; - public XmlDsigExcC14NTransform(bool includeComments) => throw null; - public XmlDsigExcC14NTransform(bool includeComments, string inclusiveNamespacesPrefixList) => throw null; - public XmlDsigExcC14NTransform(string inclusiveNamespacesPrefixList) => throw null; } - public class XmlDsigExcC14NWithCommentsTransform : System.Security.Cryptography.Xml.XmlDsigExcC14NTransform { public XmlDsigExcC14NWithCommentsTransform() => throw null; public XmlDsigExcC14NWithCommentsTransform(string inclusiveNamespacesPrefixList) => throw null; } - public class XmlDsigXPathTransform : System.Security.Cryptography.Xml.Transform { + public XmlDsigXPathTransform() => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigXPathTransform() => throw null; } - public class XmlDsigXsltTransform : System.Security.Cryptography.Xml.Transform { + public XmlDsigXsltTransform() => throw null; + public XmlDsigXsltTransform(bool includeComments) => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlDsigXsltTransform() => throw null; - public XmlDsigXsltTransform(bool includeComments) => throw null; } - public class XmlLicenseTransform : System.Security.Cryptography.Xml.Transform { - public System.Security.Cryptography.Xml.IRelDecryptor Decryptor { get => throw null; set => throw null; } + public XmlLicenseTransform() => throw null; protected override System.Xml.XmlNodeList GetInnerXml() => throw null; public override object GetOutput() => throw null; public override object GetOutput(System.Type type) => throw null; - public override System.Type[] InputTypes { get => throw null; } public override void LoadInnerXml(System.Xml.XmlNodeList nodeList) => throw null; public override void LoadInput(object obj) => throw null; + public System.Security.Cryptography.Xml.IRelDecryptor Decryptor { get => throw null; set { } } + public override System.Type[] InputTypes { get => throw null; } public override System.Type[] OutputTypes { get => throw null; } - public XmlLicenseTransform() => throw null; } - } } } diff --git a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Threading.RateLimiting.cs b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Threading.RateLimiting.cs index dfad6d3fa06c6..07c351db593a1 100644 --- a/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Threading.RateLimiting.cs +++ b/csharp/ql/test/resources/stubs/_frameworks/Microsoft.AspNetCore.App/System.Threading.RateLimiting.cs @@ -1,213 +1,192 @@ // This file contains auto-generated code. // Generated from `System.Threading.RateLimiting, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51`. - namespace System { namespace Threading { namespace RateLimiting { - public class ConcurrencyLimiter : System.Threading.RateLimiting.RateLimiter + public sealed class ConcurrencyLimiter : System.Threading.RateLimiting.RateLimiter { - protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null; public ConcurrencyLimiter(System.Threading.RateLimiting.ConcurrencyLimiterOptions options) => throw null; + protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken) => throw null; + protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null; protected override void Dispose(bool disposing) => throw null; protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null; public override System.TimeSpan? IdleDuration { get => throw null; } } - - public class ConcurrencyLimiterOptions + public sealed class ConcurrencyLimiterOptions { public ConcurrencyLimiterOptions() => throw null; - public int PermitLimit { get => throw null; set => throw null; } - public int QueueLimit { get => throw null; set => throw null; } - public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set => throw null; } + public int PermitLimit { get => throw null; set { } } + public int QueueLimit { get => throw null; set { } } + public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } } } - - public class FixedWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter + public sealed class FixedWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter { - protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public FixedWindowRateLimiter(System.Threading.RateLimiting.FixedWindowRateLimiterOptions options) => throw null; + protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken) => throw null; protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null; protected override void Dispose(bool disposing) => throw null; protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; - public FixedWindowRateLimiter(System.Threading.RateLimiting.FixedWindowRateLimiterOptions options) => throw null; public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null; + public override bool TryReplenish() => throw null; public override System.TimeSpan? IdleDuration { get => throw null; } public override bool IsAutoReplenishing { get => throw null; } public override System.TimeSpan ReplenishmentPeriod { get => throw null; } - public override bool TryReplenish() => throw null; } - - public class FixedWindowRateLimiterOptions + public sealed class FixedWindowRateLimiterOptions { - public bool AutoReplenishment { get => throw null; set => throw null; } public FixedWindowRateLimiterOptions() => throw null; - public int PermitLimit { get => throw null; set => throw null; } - public int QueueLimit { get => throw null; set => throw null; } - public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set => throw null; } - public System.TimeSpan Window { get => throw null; set => throw null; } + public bool AutoReplenishment { get => throw null; set { } } + public int PermitLimit { get => throw null; set { } } + public int QueueLimit { get => throw null; set { } } + public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } } + public System.TimeSpan Window { get => throw null; set { } } } - public static class MetadataName { public static System.Threading.RateLimiting.MetadataName Create(string name) => throw null; public static System.Threading.RateLimiting.MetadataName ReasonPhrase { get => throw null; } public static System.Threading.RateLimiting.MetadataName RetryAfter { get => throw null; } } - - public class MetadataName : System.IEquatable> + public sealed class MetadataName : System.IEquatable> { - public static bool operator !=(System.Threading.RateLimiting.MetadataName left, System.Threading.RateLimiting.MetadataName right) => throw null; - public static bool operator ==(System.Threading.RateLimiting.MetadataName left, System.Threading.RateLimiting.MetadataName right) => throw null; - public bool Equals(System.Threading.RateLimiting.MetadataName other) => throw null; + public MetadataName(string name) => throw null; public override bool Equals(object obj) => throw null; + public bool Equals(System.Threading.RateLimiting.MetadataName other) => throw null; public override int GetHashCode() => throw null; - public MetadataName(string name) => throw null; - public string Name { get => throw null; } + public static bool operator ==(System.Threading.RateLimiting.MetadataName left, System.Threading.RateLimiting.MetadataName right) => throw null; + public static bool operator !=(System.Threading.RateLimiting.MetadataName left, System.Threading.RateLimiting.MetadataName right) => throw null; public override string ToString() => throw null; + public string Name { get => throw null; } } - public static class PartitionedRateLimiter { - public static System.Threading.RateLimiting.PartitionedRateLimiter Create(System.Func> partitioner, System.Collections.Generic.IEqualityComparer equalityComparer = default(System.Collections.Generic.IEqualityComparer)) => throw null; public static System.Threading.RateLimiting.PartitionedRateLimiter CreateChained(params System.Threading.RateLimiting.PartitionedRateLimiter[] limiters) => throw null; + public static System.Threading.RateLimiting.PartitionedRateLimiter Create(System.Func> partitioner, System.Collections.Generic.IEqualityComparer equalityComparer) => throw null; } - public abstract class PartitionedRateLimiter : System.IAsyncDisposable, System.IDisposable { - public System.Threading.Tasks.ValueTask AcquireAsync(TResource resource, int permitCount = default(int), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + protected PartitionedRateLimiter() => throw null; + public System.Threading.Tasks.ValueTask AcquireAsync(TResource resource, int permitCount, System.Threading.CancellationToken cancellationToken) => throw null; protected abstract System.Threading.Tasks.ValueTask AcquireAsyncCore(TResource resource, int permitCount, System.Threading.CancellationToken cancellationToken); - public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(TResource resource, int permitCount = default(int)) => throw null; + public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(TResource resource, int permitCount) => throw null; protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(TResource resource, int permitCount); public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; public abstract System.Threading.RateLimiting.RateLimiterStatistics GetStatistics(TResource resource); - protected PartitionedRateLimiter() => throw null; public System.Threading.RateLimiting.PartitionedRateLimiter WithTranslatedKey(System.Func keyAdapter, bool leaveOpen) => throw null; } - - public enum QueueProcessingOrder : int + public enum QueueProcessingOrder { - NewestFirst = 1, OldestFirst = 0, + NewestFirst = 1, + } + public abstract class RateLimiter : System.IAsyncDisposable, System.IDisposable + { + protected RateLimiter() => throw null; + public System.Threading.Tasks.ValueTask AcquireAsync(int permitCount, System.Threading.CancellationToken cancellationToken) => throw null; + protected abstract System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken); + public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(int permitCount) => throw null; + protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount); + public void Dispose() => throw null; + protected virtual void Dispose(bool disposing) => throw null; + public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; + protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; + public abstract System.Threading.RateLimiting.RateLimiterStatistics GetStatistics(); + public abstract System.TimeSpan? IdleDuration { get; } + } + public class RateLimiterStatistics + { + public RateLimiterStatistics() => throw null; + public long CurrentAvailablePermits { get => throw null; set { } } + public long CurrentQueuedCount { get => throw null; set { } } + public long TotalFailedLeases { get => throw null; set { } } + public long TotalSuccessfulLeases { get => throw null; set { } } } - public abstract class RateLimitLease : System.IDisposable { + protected RateLimitLease() => throw null; public void Dispose() => throw null; protected virtual void Dispose(bool disposing) => throw null; public virtual System.Collections.Generic.IEnumerable> GetAllMetadata() => throw null; - public abstract bool IsAcquired { get; } - public abstract System.Collections.Generic.IEnumerable MetadataNames { get; } - protected RateLimitLease() => throw null; public abstract bool TryGetMetadata(string metadataName, out object metadata); public bool TryGetMetadata(System.Threading.RateLimiting.MetadataName metadataName, out T metadata) => throw null; + public abstract bool IsAcquired { get; } + public abstract System.Collections.Generic.IEnumerable MetadataNames { get; } } - public static class RateLimitPartition { - public static System.Threading.RateLimiting.RateLimitPartition Get(TKey partitionKey, System.Func factory) => throw null; public static System.Threading.RateLimiting.RateLimitPartition GetConcurrencyLimiter(TKey partitionKey, System.Func factory) => throw null; public static System.Threading.RateLimiting.RateLimitPartition GetFixedWindowLimiter(TKey partitionKey, System.Func factory) => throw null; public static System.Threading.RateLimiting.RateLimitPartition GetNoLimiter(TKey partitionKey) => throw null; public static System.Threading.RateLimiting.RateLimitPartition GetSlidingWindowLimiter(TKey partitionKey, System.Func factory) => throw null; public static System.Threading.RateLimiting.RateLimitPartition GetTokenBucketLimiter(TKey partitionKey, System.Func factory) => throw null; + public static System.Threading.RateLimiting.RateLimitPartition Get(TKey partitionKey, System.Func factory) => throw null; } - public struct RateLimitPartition { + public RateLimitPartition(TKey partitionKey, System.Func factory) => throw null; public System.Func Factory { get => throw null; } public TKey PartitionKey { get => throw null; } - // Stub generator skipped constructor - public RateLimitPartition(TKey partitionKey, System.Func factory) => throw null; } - - public abstract class RateLimiter : System.IAsyncDisposable, System.IDisposable - { - public System.Threading.Tasks.ValueTask AcquireAsync(int permitCount = default(int), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; - protected abstract System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken); - public System.Threading.RateLimiting.RateLimitLease AttemptAcquire(int permitCount = default(int)) => throw null; - protected abstract System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount); - public void Dispose() => throw null; - protected virtual void Dispose(bool disposing) => throw null; - public System.Threading.Tasks.ValueTask DisposeAsync() => throw null; - protected virtual System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; - public abstract System.Threading.RateLimiting.RateLimiterStatistics GetStatistics(); - public abstract System.TimeSpan? IdleDuration { get; } - protected RateLimiter() => throw null; - } - - public class RateLimiterStatistics - { - public System.Int64 CurrentAvailablePermits { get => throw null; set => throw null; } - public System.Int64 CurrentQueuedCount { get => throw null; set => throw null; } - public RateLimiterStatistics() => throw null; - public System.Int64 TotalFailedLeases { get => throw null; set => throw null; } - public System.Int64 TotalSuccessfulLeases { get => throw null; set => throw null; } - } - public abstract class ReplenishingRateLimiter : System.Threading.RateLimiting.RateLimiter { - public abstract bool IsAutoReplenishing { get; } protected ReplenishingRateLimiter() => throw null; - public abstract System.TimeSpan ReplenishmentPeriod { get; } public abstract bool TryReplenish(); + public abstract bool IsAutoReplenishing { get; } + public abstract System.TimeSpan ReplenishmentPeriod { get; } } - - public class SlidingWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter + public sealed class SlidingWindowRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter { - protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public SlidingWindowRateLimiter(System.Threading.RateLimiting.SlidingWindowRateLimiterOptions options) => throw null; + protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int permitCount, System.Threading.CancellationToken cancellationToken) => throw null; protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int permitCount) => throw null; protected override void Dispose(bool disposing) => throw null; protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null; + public override bool TryReplenish() => throw null; public override System.TimeSpan? IdleDuration { get => throw null; } public override bool IsAutoReplenishing { get => throw null; } public override System.TimeSpan ReplenishmentPeriod { get => throw null; } - public SlidingWindowRateLimiter(System.Threading.RateLimiting.SlidingWindowRateLimiterOptions options) => throw null; - public override bool TryReplenish() => throw null; } - - public class SlidingWindowRateLimiterOptions + public sealed class SlidingWindowRateLimiterOptions { - public bool AutoReplenishment { get => throw null; set => throw null; } - public int PermitLimit { get => throw null; set => throw null; } - public int QueueLimit { get => throw null; set => throw null; } - public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set => throw null; } - public int SegmentsPerWindow { get => throw null; set => throw null; } public SlidingWindowRateLimiterOptions() => throw null; - public System.TimeSpan Window { get => throw null; set => throw null; } + public bool AutoReplenishment { get => throw null; set { } } + public int PermitLimit { get => throw null; set { } } + public int QueueLimit { get => throw null; set { } } + public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } } + public int SegmentsPerWindow { get => throw null; set { } } + public System.TimeSpan Window { get => throw null; set { } } } - - public class TokenBucketRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter + public sealed class TokenBucketRateLimiter : System.Threading.RateLimiting.ReplenishingRateLimiter { - protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int tokenCount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null; + public TokenBucketRateLimiter(System.Threading.RateLimiting.TokenBucketRateLimiterOptions options) => throw null; + protected override System.Threading.Tasks.ValueTask AcquireAsyncCore(int tokenCount, System.Threading.CancellationToken cancellationToken) => throw null; protected override System.Threading.RateLimiting.RateLimitLease AttemptAcquireCore(int tokenCount) => throw null; protected override void Dispose(bool disposing) => throw null; protected override System.Threading.Tasks.ValueTask DisposeAsyncCore() => throw null; public override System.Threading.RateLimiting.RateLimiterStatistics GetStatistics() => throw null; + public override bool TryReplenish() => throw null; public override System.TimeSpan? IdleDuration { get => throw null; } public override bool IsAutoReplenishing { get => throw null; } public override System.TimeSpan ReplenishmentPeriod { get => throw null; } - public TokenBucketRateLimiter(System.Threading.RateLimiting.TokenBucketRateLimiterOptions options) => throw null; - public override bool TryReplenish() => throw null; } - - public class TokenBucketRateLimiterOptions + public sealed class TokenBucketRateLimiterOptions { - public bool AutoReplenishment { get => throw null; set => throw null; } - public int QueueLimit { get => throw null; set => throw null; } - public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set => throw null; } - public System.TimeSpan ReplenishmentPeriod { get => throw null; set => throw null; } public TokenBucketRateLimiterOptions() => throw null; - public int TokenLimit { get => throw null; set => throw null; } - public int TokensPerPeriod { get => throw null; set => throw null; } + public bool AutoReplenishment { get => throw null; set { } } + public int QueueLimit { get => throw null; set { } } + public System.Threading.RateLimiting.QueueProcessingOrder QueueProcessingOrder { get => throw null; set { } } + public System.TimeSpan ReplenishmentPeriod { get => throw null; set { } } + public int TokenLimit { get => throw null; set { } } + public int TokensPerPeriod { get => throw null; set { } } } - } } }