![]() |
VOOZH | about |
dotnet add package OakPeak.Core --version 9.0.23
NuGet\Install-Package OakPeak.Core -Version 9.0.23
<PackageReference Include="OakPeak.Core" Version="9.0.23" />
<PackageVersion Include="OakPeak.Core" Version="9.0.23" />Directory.Packages.props
<PackageReference Include="OakPeak.Core" />Project file
paket add OakPeak.Core --version 9.0.23
#r "nuget: OakPeak.Core, 9.0.23"
#:package OakPeak.Core@9.0.23
#addin nuget:?package=OakPeak.Core&version=9.0.23Install as a Cake Addin
#tool nuget:?package=OakPeak.Core&version=9.0.23Install as a Cake Tool
<img align="right" alt=".NET5 Build Status" src="https://dev.azure.com/oakpeak-devops/OakPeak.Core/_apis/build/status%2FOakPeak.Core%20.NET5?branchName=master" height="22"> <img align="right" alt=".NET6 Build Status" src="https://dev.azure.com/oakpeak-devops/OakPeak.Core/_apis/build/status%2FOakPeak.Core%20.NET6?branchName=master" height="22"> <img align="right" alt=".NET8 Build Status" src="https://dev.azure.com/oakpeak-devops/OakPeak.Core/_apis/build/status%2FOakPeak.Core%20.NET8?branchName=master" height="22"> <img align="right" alt=".NET8 Build Status" src="https://dev.azure.com/oakpeak-devops/OakPeak.Core/_apis/build/status%2FOakPeak.Core%20.NET7?branchName=master" height="22">
👁 NuGet Version
👁 NuGet Downloads
👁 .NET Support
OakPeak.Core is a powerful framework for building enterprise-grade microservices and web applications in .NET. It provides a comprehensive set of APIs, tools, and utilities to streamline your development process and enhance productivity.
Install the package using NuGet Package Manager or by executing the following command in the Package Manager Console:
Install-Package OakPeak.Core
For specific .NET versions:
# For .NET 6
Install-Package OakPeak.Core -Version 6.0.2
# For .NET 8
Install-Package OakPeak.Core -Version 8.0.6
# For .NET 9
Install-Package OakPeak.Core -Version 9.0.1
OakPeak.Core follows a multi-layered architecture:
OakPeak.Core includes several middleware components for cross-cutting concerns:
Multiple authentication methods are supported:
The framework includes built-in multi-tenancy capabilities:
Add OakPeak.Core to your ASP.NET Core application in Program.cs or Startup.cs:
// Add services
services.AddOakPeakCore(Configuration);
// Configure middleware
app.UseOakPeak();
Configure OakPeak.Core in your appsettings.json:
{
"ConnectionStrings": {
"DefaultConnection": "Server=...;Database=...;User Id=...;Password=...;"
},
"AppSettings": {
"EnableSwagger": true,
"HealthBaseUrl": "https://your-api-base-url.com"
},
"JwtIssuerOptions": {
"Issuer": "your-issuer",
"Audience": "your-audience",
"Subject": "your-subject",
"ValidFor": "24:00:00",
"Key": "your-secret-key-with-at-least-16-characters"
},
"EmailConfiguration": {
"Provider": "smtp",
"SmtpServer": "smtp.example.com",
"SmtpPort": 587,
"SmtpUsername": "user@example.com",
"SmtpPassword": "password",
"FromEmail": "noreply@example.com",
"UseSsl": true,
"Title": "Your Application Name",
"TemplateFile": "email-template.html"
}
}
Configure authentication in your application:
services.AddAuthentication(options => {
options.JwtIssuerOptions = new JwtIssuerOptions {
Issuer = Configuration["JwtIssuerOptions:Issuer"],
Audience = Configuration["JwtIssuerOptions:Audience"],
Subject = Configuration["JwtIssuerOptions:Subject"],
ValidFor = Configuration.GetValue<TimeSpan>("JwtIssuerOptions:ValidFor"),
Key = Configuration["JwtIssuerOptions:Key"],
};
});
Create scheduled tasks by implementing the IScheduledTask interface:
public class MyScheduledTask : BaseSchedulerTask
{
public override string Schedule => "0 */12 * * *"; // Cron expression
public override async Task DoWork()
{
// Task implementation
await Task.CompletedTask;
}
}
Register scheduled tasks:
services.AddScheduler((sender, args) => {
Console.Write(args.Exception.Message);
args.SetObserved();
});
services.AddSingleton<IScheduledTask, MyScheduledTask>();
Send emails using the notification service:
public class MyService
{
private readonly INotificationService _notificationService;
public MyService(INotificationService notificationService)
{
_notificationService = notificationService;
}
public async Task SendNotification()
{
await _notificationService.CreateAndSendHtmlEmail(
"recipient@example.com",
"Recipient Name",
"Email Subject",
"<p>Email body content</p>"
);
}
}
Use the data provider for database operations:
public class MyRepository
{
private readonly IDataProvider _dataProvider;
public MyRepository(IDataProvider dataProvider)
{
_dataProvider = dataProvider;
}
public IEnumerable<MyEntity> GetItems()
{
return _dataProvider.ExecuteReader("GetItems").FillCollection<MyEntity>();
}
}
OakPeak.Core includes Azure DevOps pipeline configurations for different .NET versions:
azure-pipelines.yml - Main pipeline for .NET 5azure-pipelines-NET6.yml - Pipeline for .NET 6azure-pipelines-NET8.yml - Pipeline for .NET 8These pipelines automate the build, test, and deployment processes for your applications.
OakPeak.Core integrates with Swagger/OpenAPI for API documentation. Enable it in your application:
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Your API", Version = "v1" });
c.EnableAnnotations();
});
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Your API v1"));
This project is licensed under the MIT License.
For issues, questions, or contributions, please contact us or open an issue on the repository.
OakPeak.Core is developed and maintained by Brighten Consulting.
© 2025 Brighten Consulting. All rights reserved.
This documentation is subject to change as the framework evolves. Always refer to the latest version for the most up-to-date information.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on OakPeak.Core:
| Package | Downloads |
|---|---|
|
Brighten.Plab.Models
Provides the component model for Brighten's AppMyWork |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.23 | 83 | 5/1/2026 |
| 9.0.22 | 58 | 4/30/2026 |
| 9.0.21 | 132 | 1/23/2026 |
| 9.0.20 | 94 | 1/23/2026 |
| 9.0.19 | 98 | 1/22/2026 |
| 9.0.18 | 474 | 11/19/2025 |
| 9.0.17 | 431 | 11/18/2025 |
| 9.0.16 | 423 | 11/18/2025 |
| 9.0.15 | 366 | 11/17/2025 |
| 9.0.14 | 290 | 11/10/2025 |
| 9.0.13 | 273 | 11/10/2025 |
| 9.0.12 | 273 | 11/10/2025 |
| 9.0.11 | 274 | 11/10/2025 |
| 9.0.10 | 205 | 11/7/2025 |
| 9.0.9 | 247 | 10/30/2025 |
| 9.0.8 | 227 | 10/30/2025 |
| 9.0.7 | 227 | 10/30/2025 |
| 9.0.6 | 246 | 9/11/2025 |
| 6.0.6 | 448 | 7/21/2025 |
| 5.1.21 | 474 | 7/21/2025 |
Security and critical updates