DotaCore.AspNetCore 15.2.2

DotaCore.AspNetCore

Install-Package DotaCore.AspNetCore -Version 15.2.2
dotnet add package DotaCore.AspNetCore --version 15.2.2
<PackageReference Include="DotaCore.AspNetCore" Version="15.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotaCore.AspNetCore --version 15.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DotaCore.AspNetCore, 15.2.2"
#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 DotaCore.AspNetCore as a Cake Addin
#addin nuget:?package=DotaCore.AspNetCore&version=15.2.2

// Install DotaCore.AspNetCore as a Cake Tool
#tool nuget:?package=DotaCore.AspNetCore&version=15.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DotaCore.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 UseEndpoints(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) { }

    public static void UseHstsDefault(this IApplicationBuilder application) { }

    public static void UseSwaggerUI(this IApplicationBuilder application, string version, string name, bool visibleProduction = false) { }   
}

HostBuilderExtensions

public static class HostBuilderExtensions
{
    public static void Run<T>(this IHostBuilder host) where T : class { }
}

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 void AddAuthenticationJwtBearer(this IServiceCollection services) { }

    public static void AddControllersMvcJsonOptions(this IServiceCollection services) { }

    public static IServiceCollection AddCorsAllowAny(this IServiceCollection services) { }

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

    public static void AddFileExtensionContentTypeProvider(this IServiceCollection services) { }

    public static void ConfigureFormOptionsMaxLengthLimit(this IServiceCollection services) { }

    public static void AddSwaggerBearer(this IServiceCollection services, string version, string title, string description) { }
}

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) { }
}

DotaCore.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 UseEndpoints(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) { }

    public static void UseHstsDefault(this IApplicationBuilder application) { }

    public static void UseSwaggerUI(this IApplicationBuilder application, string version, string name, bool visibleProduction = false) { }   
}

HostBuilderExtensions

public static class HostBuilderExtensions
{
    public static void Run<T>(this IHostBuilder host) where T : class { }
}

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 void AddAuthenticationJwtBearer(this IServiceCollection services) { }

    public static void AddControllersMvcJsonOptions(this IServiceCollection services) { }

    public static IServiceCollection AddCorsAllowAny(this IServiceCollection services) { }

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

    public static void AddFileExtensionContentTypeProvider(this IServiceCollection services) { }

    public static void ConfigureFormOptionsMaxLengthLimit(this IServiceCollection services) { }

    public static void AddSwaggerBearer(this IServiceCollection services, string version, string title, string description) { }
}

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) { }
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
15.2.2 72 4/6/2021