|
| 1 | +// This file contains auto-generated code. |
| 2 | +// Generated from `Microsoft.AspNetCore.Antiforgery, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60`. |
| 3 | +namespace Microsoft |
| 4 | +{ |
| 5 | + namespace AspNetCore |
| 6 | + { |
| 7 | + namespace Antiforgery |
| 8 | + { |
| 9 | + public class AntiforgeryOptions |
| 10 | + { |
| 11 | + public Microsoft.AspNetCore.Http.CookieBuilder Cookie { get => throw null; set { } } |
| 12 | + public AntiforgeryOptions() => throw null; |
| 13 | + public static readonly string DefaultCookiePrefix; |
| 14 | + public string FormFieldName { get => throw null; set { } } |
| 15 | + public string HeaderName { get => throw null; set { } } |
| 16 | + public bool SuppressXFrameOptionsHeader { get => throw null; set { } } |
| 17 | + } |
| 18 | + public class AntiforgeryTokenSet |
| 19 | + { |
| 20 | + public string CookieToken { get => throw null; } |
| 21 | + public AntiforgeryTokenSet(string requestToken, string cookieToken, string formFieldName, string headerName) => throw null; |
| 22 | + public string FormFieldName { get => throw null; } |
| 23 | + public string HeaderName { get => throw null; } |
| 24 | + public string RequestToken { get => throw null; } |
| 25 | + } |
| 26 | + public class AntiforgeryValidationException : System.Exception |
| 27 | + { |
| 28 | + public AntiforgeryValidationException(string message) => throw null; |
| 29 | + public AntiforgeryValidationException(string message, System.Exception innerException) => throw null; |
| 30 | + } |
| 31 | + public interface IAntiforgery |
| 32 | + { |
| 33 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetAndStoreTokens(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 34 | + Microsoft.AspNetCore.Antiforgery.AntiforgeryTokenSet GetTokens(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 35 | + System.Threading.Tasks.Task<bool> IsRequestValidAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 36 | + void SetCookieTokenAndHeader(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 37 | + System.Threading.Tasks.Task ValidateRequestAsync(Microsoft.AspNetCore.Http.HttpContext httpContext); |
| 38 | + } |
| 39 | + public interface IAntiforgeryAdditionalDataProvider |
| 40 | + { |
| 41 | + string GetAdditionalData(Microsoft.AspNetCore.Http.HttpContext context); |
| 42 | + bool ValidateAdditionalData(Microsoft.AspNetCore.Http.HttpContext context, string additionalData); |
| 43 | + } |
| 44 | + [System.AttributeUsage((System.AttributeTargets)68)] |
| 45 | + public class RequireAntiforgeryTokenAttribute : System.Attribute, Microsoft.AspNetCore.Antiforgery.IAntiforgeryMetadata |
| 46 | + { |
| 47 | + public RequireAntiforgeryTokenAttribute(bool required = default(bool)) => throw null; |
| 48 | + public bool RequiresValidation { get => throw null; } |
| 49 | + } |
| 50 | + } |
| 51 | + namespace Builder |
| 52 | + { |
| 53 | + public static partial class AntiforgeryApplicationBuilderExtensions |
| 54 | + { |
| 55 | + public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAntiforgery(this Microsoft.AspNetCore.Builder.IApplicationBuilder builder) => throw null; |
| 56 | + } |
| 57 | + } |
| 58 | + } |
| 59 | + namespace Extensions |
| 60 | + { |
| 61 | + namespace DependencyInjection |
| 62 | + { |
| 63 | + public static partial class AntiforgeryServiceCollectionExtensions |
| 64 | + { |
| 65 | + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) => throw null; |
| 66 | + public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> setupAction) => throw null; |
| 67 | + } |
| 68 | + } |
| 69 | + } |
| 70 | +} |
0 commit comments