YITC.DotNetCore.AspNetCore 16.30.0.4

.NET 6.0
NuGet\Install-Package YITC.DotNetCore.AspNetCore -Version 16.30.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package YITC.DotNetCore.AspNetCore --version 16.30.0.4
<PackageReference Include="YITC.DotNetCore.AspNetCore" Version="16.30.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YITC.DotNetCore.AspNetCore --version 16.30.0.4
#r "nuget: YITC.DotNetCore.AspNetCore, 16.30.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install YITC.DotNetCore.AspNetCore as a Cake Addin
#addin nuget:?package=YITC.DotNetCore.AspNetCore&version=16.30.0.4

// Install YITC.DotNetCore.AspNetCore as a Cake Tool
#tool nuget:?package=YITC.DotNetCore.AspNetCore&version=16.30.0.4

DotNetCore.AspNetCore

Attributes

EnumAuthorizeAttribute

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public sealed class EnumAuthorizeAttribute : AuthorizeAttribute
{
    public EnumAuthorizeAttribute(params object[] roles) { }
}

Extensions

ActionContextExtensions

public static class ActionContextExtensions
{
    public static Task Ok(this ActionContext context, object value) { }

    public static Task UnprocessableEntity(this ActionContext context, string error) { }
}

ApplicationBuilderExtensions

public static class ApplicationBuilderExtensions
{
    public static void UseCorsAllowAny(this IApplicationBuilder application) { }

    public static void UseEndpointsMapControllers(this IApplicationBuilder application) { }

    public static void UseException(this IApplicationBuilder application) { }

    public static void UseHttps(this IApplicationBuilder application) { }

    public static void UseSpaAngular(this IApplicationBuilder application, string sourcePath, string npmScript, string baseUri) { }

    public static void UseSpaAngularServer(this IApplicationBuilder application, string sourcePath, string npmScript) { }

    public static void UseSpaProxyServer(this IApplicationBuilder application, string sourcePath, string baseUri) { }

    public static void ConfigureFormOptions(this IServiceCollection services) { }
}

BinaryFileExtensions

public static class BinaryFileExtensions
{
    public static IActionResult FileResult(this Task<BinaryFile> binaryFile) { }
}

HttpRequestExtensions

public static class HttpRequestExtensions
{
    public static IList<BinaryFile> Files(this HttpRequest request) { }
}

ResultExtensions

public static class ResultExtensions
{
    public static IActionResult ApiResult<T>(this IResult<T> result) { }

    public static IActionResult ApiResult<T>(this Task<IResult<T>> result) { }

    public static IActionResult ApiResult(this IResult result) { }

    public static IActionResult ApiResult(this Task<IResult> result) { }

    public static IActionResult ApiResult<T>(this T result) { }

    public static IActionResult ApiResult<T>(this Task<T> result) { }
}

ServiceCollectionExtensions

public static class ServiceCollectionExtensions
{
    public static AuthenticationBuilder AddAuthenticationJwtBearer(this IServiceCollection services, JwtSettings settings) { }

    public static IMvcBuilder AddAuthorizationPolicy(this IMvcBuilder builder) { }

    public static IServiceCollection AddCorsAllowAny(this IServiceCollection services) { }

    public static IServiceCollection AddFileExtensionContentTypeProvider(this IServiceCollection services) { }

    public static IMvcBuilder AddJsonOptions(this IMvcBuilder builder) { }

    public static IServiceCollection AddSpaStaticFiles(this IServiceCollection services, string rootPath) { }

    public static IServiceCollection ConfigureFormOptionsMaxLengthLimit(this IServiceCollection services) { }
}

Action Results

ApiResult

public sealed class ApiResult : IActionResult
{
    public ApiResult(IResult result) { }

    public Task ExecuteResultAsync(ActionContext context) { }
}

ApiResult<T>

public sealed class ApiResult<T> : IActionResult
{
    public ApiResult(IResult<T> result) { }

    public Task ExecuteResultAsync(ActionContext context) { }
}
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
16.30.0.4 107 4/15/2022
16.26.0.3 85 3/17/2022
16.26.0 83 3/16/2022