![]() |
VOOZH | about |
dotnet add package Pipoburgos.SharedKernel.Api --version 10.0.9
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 10.0.9
<PackageReference Include="Pipoburgos.SharedKernel.Api" Version="10.0.9" />
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="Pipoburgos.SharedKernel.Api" />Project file
paket add Pipoburgos.SharedKernel.Api --version 10.0.9
#r "nuget: Pipoburgos.SharedKernel.Api, 10.0.9"
#:package Pipoburgos.SharedKernel.Api@10.0.9
#addin nuget:?package=Pipoburgos.SharedKernel.Api&version=10.0.9Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=10.0.9Install as a Cake Tool
The following code demonstrates basic usage of SharedKernel api.
{
"AllowedHosts": "",
"Origins": [
"https://localhost/"
],
"SmtpSettings": {
"MailServer": "smtp",
"MailPort": 587,
"SenderName": "SharedKernel@SharedKernel.com",
"Sender": "SharedKernel@SharedKernel.com",
"Password": "SharedKernel"
},
"OpenApiOptions": {
"Title": "SharedKernel",
"AppName": "SharedKernel",
"Name": "SharedKernel",
"XmlDocumentationFile": "SharedKernel.Api.xml"
},
"ConnectionStrings": {
"PaymentConnection": "Server=.;Database=Payment;Trusted_Connection=True;MultipleActiveResultSets=true;Application Name=Payment;",
"PurchasingConnection": "Server=.;Database=Purchasing;Trusted_Connection=True;MultipleActiveResultSets=true;Application Name=Purchasing;"
},
"RabbitMq": {
"Username": "guest",
"Password": "guest",
"Hostname": "localhost",
"port": "5672"
},
"RedisCacheOptions": {
"ConnectionString": "localhost:6379",
"Configuration": "localhost:6379",
"InstanceName": "sharedKernel"
},
}
public class Startup
{
public class Startup
{
private const string CorsPolicy = "CorsPolicy";
private IConfiguration Configuration { get; }
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public void ConfigureServices(IServiceCollection services)
{
services
.AddSharedKernel()
.AddSharedKernelApi<FluentApiSampleValidator>(CorsPolicy, Configuration.GetSection("Origins").Get<string[]>())
.AddSharedKernelHealthChecks()
.AddSharedKernelOpenApi(Configuration)
// Cache
.AddRedisDistributedCache(Configuration)
// .AddInMemoryCache()
.AddInMemoryCommandBus()
.AddInMemoryQueryBus()
// Event bus
.AddRabbitMqEventBus(Configuration)
// .AddInMemoryEventBus()
//.AddRedisEventBus(Configuration)
// Add modules
.AddPaymentModule(Configuration, "PaymentConnection")
.AddPurchasingModule(Configuration, "PurchasingConnection")
// Register all domain event subscribers
.AddDomainEventSubscribers();
}
public void Configure(IApplicationBuilder app, IOptions<OpenApiOptions> options)
{
// Other usages
app.UseCors(CorsPolicy);
// Other usages
app
.UseEndpoints(endpoints =>
{
endpoints.MapHealthChecks("/health", new HealthCheckOptions
{
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
endpoints.MapControllers();
})
.UseSharedKernelMetrics()
.UseSharedKernelOpenApi(options);
}
}
}
| 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 is compatible. 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 Pipoburgos.SharedKernel.Api:
| Package | Downloads |
|---|---|
|
Pipoburgos.SharedKernel.Testing
C# Testing |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.9 | 22 | 6/17/2026 |
| 10.0.8.3 | 129 | 6/2/2026 |
| 10.0.8.2 | 119 | 5/19/2026 |
| 10.0.8.1 | 117 | 5/13/2026 |
| 10.0.7.2 | 116 | 5/6/2026 |
| 10.0.7.1 | 132 | 4/23/2026 |
| 10.0.6.1 | 144 | 4/15/2026 |
| 10.0.5.2 | 171 | 3/24/2026 |
| 10.0.5.1 | 141 | 3/20/2026 |
| 10.0.5 | 151 | 3/16/2026 |
| 10.0.0 | 401 | 12/7/2025 |
| 9.0.8.2 | 326 | 8/20/2025 |
| 9.0.8.1 | 373 | 8/6/2025 |
| 9.0.7.1 | 315 | 7/9/2025 |
| 9.0.6.1 | 350 | 6/16/2025 |
| 9.0.5.1 | 332 | 6/4/2025 |
| 9.0.4.2 | 359 | 5/7/2025 |
| 9.0.4.1 | 350 | 5/7/2025 |
| 9.0.3.3 | 334 | 4/6/2025 |
| 9.0.3.2 | 691 | 3/26/2025 |