CodeNet.Core
1.0.5
dotnet add package CodeNet.Core --version 1.0.5
NuGet\Install-Package CodeNet.Core -Version 1.0.5
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="CodeNet.Core" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeNet.Core --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeNet.Core, 1.0.5"
#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 CodeNet.Core as a Cake Addin
#addin nuget:?package=CodeNet.Core&version=1.0.5
// Install CodeNet.Core as a Cake Tool
#tool nuget:?package=CodeNet.Core&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeNet.Core
CodeNet.Core is a .Net library.
Installation
Use the package manager npm to install CodeNet.Core.
dotnet add package CodeNet.Core
Usage
appSettings.json
{
"Application": {
"Name": "Customer",
"Title": "StokTakip | Customer API",
"Version": "v1.0"
},
"JWT": {
"ValidAudience": "http://codenet",
"ValidIssuer": "http://login.codenet",
"PublicKeyPath": "public_key.pem"
}
}
program.cs
using CodeNet.Core.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseNetCoreContainer(containerBuilder =>
{
containerBuilder.RegisterModule<CodeNetModule>();
containerBuilder.RegisterModule<MediatRModule>();
});
builder.AddCodeNet("Application");
builder.AddAuthentication("JWT");
//...
var app = builder.Build();
app.UseCodeNet(builder.Configuration, "Application");
//...
app.Run();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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.
-
net8.0
- Autofac (>= 8.0.0)
- Autofac.Extensions.DependencyInjection (>= 9.0.0)
- MediatR (>= 12.3.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.6)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.6)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Swashbuckle.AspNetCore (>= 6.6.2)
- Swashbuckle.AspNetCore.Filters (>= 8.0.2)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on CodeNet.Core:
Package | Downloads |
---|---|
CodeNet.Container
It includes modules from MediatR and CodeNet. |
|
CodeNet.EntityFramework
CodeNet Entity Framework package. |
|
CodeNet.ExceptionHandling
CodeNet Exception Handler package. |
|
CodeNet.Mapper
CodeNet Mapper package. |
|
CodeNet.RabbitMQ
CodeNet RabbitMQ package. |
GitHub repositories
This package is not used by any popular GitHub repositories.