Chakra.Core.WebApi
5.0.2
dotnet add package Chakra.Core.WebApi --version 5.0.2
NuGet\Install-Package Chakra.Core.WebApi -Version 5.0.2
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.
<PackageReference Include="Chakra.Core.WebApi" Version="5.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chakra.Core.WebApi --version 5.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Chakra.Core.WebApi, 5.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Chakra.Core.WebApi as a Cake Addin #addin nuget:?package=Chakra.Core.WebApi&version=5.0.2 // Install Chakra.Core.WebApi as a Cake Tool #tool nuget:?package=Chakra.Core.WebApi&version=5.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Charka.Core.WebApi
A bunch of ASP.NET Core action filters and utilities for trace request, responses, durations and detailed exceptions, in the super-easy and super-pragmatic way.
TraceOnFileError attribute
Given the following Controller, just decorate with [TraceOnFileError] attribute...
[Route("api/Authentication")]
[TraceOnErrorFile]
public class AuthenticationController: Controller
{
[HttpPost]
[AllowAnonymous]
[Route("SignIn")]
[ProducesResponseType(typeof(SignInResult), 200)]
public IActionResult SignIn([FromBody]SignInRequest request)
{
// Omitted for brevity ...
}
}
In case of exception, a file with details of occurred issue is generated in this location:
[application-root]
+- App_Data
| +- traced-errors
| +- 2020-01-23
| +- Error_2020-01-23_15.34.28_209.log
and will contains something like this:
REQUEST : (uid: a79f6bb1-5eec-43b3-89fd-b4a11dd11d1e) authentication:-> john.doe - [POST] Authentication/SignIn({
"request": {
"UserName": "john.doe",
"Email": "john@doe.it",
"FirstName": "John",
"LastName": "Doe"
}
})
RESPONSE : (uid: a79f6bb1-5eec-43b3-89fd-b4a11dd11d1e) duration:2431ms - null [ERROR: My custom exception for development purposes
System.InvalidOperationException: My custom exception for development purposes
at ZenProgramming.Chimera.Api.Controllers.AuthenticationController.SignIn(SignInRequest request) in E:\Projects\Chimera\Chimera.Api\Controllers\AuthenticationController.cs:line 76
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- No dependencies.
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 |
---|---|---|
5.0.2 | 437 | 10/29/2021 |
5.0.1 | 332 | 10/29/2021 |
5.0.0 | 530 | 6/21/2021 |
3.0.4 | 343 | 6/21/2021 |
3.0.3 | 846 | 7/2/2020 |
3.0.2 | 919 | 3/24/2020 |
3.0.1 | 498 | 3/23/2020 |
3.0.0 | 500 | 1/23/2020 |
2.0.15 | 937 | 10/24/2019 |
2.0.14 | 513 | 10/15/2019 |
2.0.13 | 1,741 | 12/11/2018 |
2.0.11 | 714 | 10/30/2018 |
2.0.10 | 779 | 9/19/2018 |