CAAppFramework.Web
1.1.1
dotnet add package CAAppFramework.Web --version 1.1.1
NuGet\Install-Package CAAppFramework.Web -Version 1.1.1
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="CAAppFramework.Web" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CAAppFramework.Web" Version="1.1.1" />
<PackageReference Include="CAAppFramework.Web" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CAAppFramework.Web --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CAAppFramework.Web, 1.1.1"
#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.
#:package CAAppFramework.Web@1.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CAAppFramework.Web&version=1.1.1
#tool nuget:?package=CAAppFramework.Web&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CAAppFramework
Modern, temiz mimari prensiplerine dayalı .NET Core application framework.
NuGet Paketleri
Framework 3 ayrı NuGet paketi olarak dağıtılmaktadır:
📦 CAAppFramework.Core
dotnet add package CAAppFramework.Core
- Domain Entities: Entity base sınıfları ve audit özellikleri
- Result Pattern: Hata yönetimi için Result ve Error tipleri
- Primitives: ApiResponse, Maybe, PagedList gibi temel tipler
- Domain Events: Domain event pattern implementasyonu
- Value Objects: Value object base sınıfı
- Enumeration: Güçlü enum alternatifi
📦 CAAppFramework.Infrastructure
dotnet add package CAAppFramework.Infrastructure
- Entity Framework Integration: EF Core ile entegrasyon
- PostgreSQL Support: PostgreSQL veritabanı desteği
- Repository Pattern: Generic repository implementasyonu
- Unit of Work: Transaction yönetimi
- Multi-tenancy: Çoklu kiracı desteği
- Specification Pattern: LINQ specification implementasyonu
📦 CAAppFramework.Web
dotnet add package CAAppFramework.Web
- Global Exception Handler: Merkezi hata yakalama
- JWT Authentication: JWT tabanlı kimlik doğrulama
- License Middleware: Lisans doğrulama sistemi
- Service Extensions: DI container yapılandırması
Hızlı Başlangıç
1. Paketleri Yükleyin
dotnet add package CAAppFramework.Core
dotnet add package CAAppFramework.Infrastructure
dotnet add package CAAppFramework.Web
2. Program.cs'i Yapılandırın
using CAAppFramework.Infrastructure.DependencyInjection;
using CAAppFramework.Web.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
// Framework servislerini ekle
builder.Services.AddCore();
builder.Services.AddInfrastructure(
connectionString: builder.Configuration.GetConnectionString("DefaultConnection")!
);
builder.Services.AddWebLayer();
var app = builder.Build();
// Global exception handler'ı ekle
app.UseGlobalExceptionMiddleware();
// Lisans middleware'ini ekle (opsiyonel)
app.UseCAAppLicense();
app.Run();
3. appsettings.json'u Yapılandırın
{
"ConnectionStrings": {
"DefaultConnection": "Host=localhost;Database=mydb;Username=postgres;Password=password"
},
"JWT": {
"Issuer": "CAAppFramework",
"Audience": "CAAppFramework",
"SigningKey": "your-256-bit-secret-key-here",
"AccessTokenMinutes": 60,
"RefreshTokenDays": 30
},
"Framework": {
"MultiTenancy": true,
"SignalR": false,
"RabbitMq": false,
"Licensing": false
}
}
Teknolojiler
- .NET 9.0
- Entity Framework Core
- PostgreSQL (Npgsql)
- ASP.NET Core
- System.IdentityModel.Tokens.Jwt
Build ve Dağıtım
NuGet Paketlerini Oluşturmak İçin
dotnet build --configuration Release
dotnet pack --configuration Release --output nupkgs
Local Test İçin
dotnet nuget add source ./nupkgs --name Local
Lisans
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- CAAppFramework.Core (>= 1.1.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.9)
- Microsoft.Extensions.Configuration (>= 9.0.9)
- Microsoft.Extensions.DependencyInjection (>= 9.0.9)
- Microsoft.Extensions.Logging (>= 9.0.9)
- System.IdentityModel.Tokens.Jwt (>= 8.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.