Pipoburgos.SharedKernel.Api
9.0.7.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Pipoburgos.SharedKernel.Api --version 9.0.7.1
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 9.0.7.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="Pipoburgos.SharedKernel.Api" Version="9.0.7.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="9.0.7.1" />
<PackageReference Include="Pipoburgos.SharedKernel.Api" />
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 Pipoburgos.SharedKernel.Api --version 9.0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pipoburgos.SharedKernel.Api, 9.0.7.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 Pipoburgos.SharedKernel.Api@9.0.7.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=Pipoburgos.SharedKernel.Api&version=9.0.7.1
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
The following code demonstrates basic usage of SharedKernel api.
appsettings.json
{
"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"
},
}
Startup.cs
See register module information
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 | 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. 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.
-
net8.0
- App.Metrics.AspNetCore (>= 4.3.0)
- App.Metrics.AspNetCore.Endpoints (>= 4.3.0)
- App.Metrics.AspNetCore.Tracking (>= 4.3.0)
- App.Metrics.Formatters.Prometheus (>= 4.3.0)
- AspNetCore.HealthChecks.UI.Client (>= 9.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.18)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 8.0.18)
- Microsoft.Extensions.Logging.Debug (>= 9.0.7)
- Pipoburgos.SharedKernel.Infrastructure (>= 9.0.7.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 9.0.3)
- System.Text.Encodings.Web (>= 9.0.7)
- Unchase.Swashbuckle.AspNetCore.Extensions (>= 2.7.2)
-
net9.0
- App.Metrics.AspNetCore (>= 4.3.0)
- App.Metrics.AspNetCore.Endpoints (>= 4.3.0)
- App.Metrics.AspNetCore.Tracking (>= 4.3.0)
- App.Metrics.Formatters.Prometheus (>= 4.3.0)
- AspNetCore.HealthChecks.UI.Client (>= 9.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.7)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 9.0.7)
- Microsoft.Extensions.Logging.Debug (>= 9.0.7)
- Pipoburgos.SharedKernel.Infrastructure (>= 9.0.7.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 9.0.3)
- System.Text.Encodings.Web (>= 9.0.7)
- Unchase.Swashbuckle.AspNetCore.Extensions (>= 2.7.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Pipoburgos.SharedKernel.Api:
Package | Downloads |
---|---|
Pipoburgos.SharedKernel.Testing
C# Testing |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
9.0.8.1 | 8 | 8/6/2025 |
9.0.7.1 | 154 | 7/9/2025 |
9.0.6.1 | 159 | 6/16/2025 |
9.0.5.1 | 171 | 6/4/2025 |
9.0.4.2 | 178 | 5/7/2025 |
9.0.4.1 | 168 | 5/7/2025 |
9.0.3.3 | 167 | 4/6/2025 |
9.0.3.2 | 502 | 3/26/2025 |
9.0.3.1 | 180 | 3/17/2025 |
9.0.2.1 | 160 | 2/12/2025 |
9.0.0.5 | 237 | 12/4/2024 |
9.0.0.4 | 135 | 12/2/2024 |
9.0.0.3 | 129 | 11/27/2024 |
9.0.0.2 | 143 | 11/17/2024 |
9.0.0.1 | 140 | 11/16/2024 |
8.0.10.3 | 156 | 11/5/2024 |
8.0.10.2 | 149 | 11/1/2024 |
8.0.10.1 | 149 | 10/16/2024 |
8.0.7.3 | 178 | 7/27/2024 |
8.0.7.2 | 164 | 7/15/2024 |
8.0.6.2 | 196 | 6/5/2024 |
8.0.6.1 | 216 | 5/30/2024 |
8.0.5.1 | 221 | 5/14/2024 |
8.0.4.8 | 188 | 5/11/2024 |
8.0.4.7 | 183 | 5/1/2024 |
8.0.4.6 | 170 | 4/29/2024 |
8.0.4.5 | 171 | 4/27/2024 |
8.0.4.4 | 174 | 4/27/2024 |
8.0.4.3 | 171 | 4/26/2024 |
8.0.4.2 | 146 | 4/26/2024 |
8.0.4.1 | 213 | 4/20/2024 |
8.0.3.5 | 261 | 3/25/2024 |
8.0.3.4 | 208 | 3/14/2024 |
8.0.3.3 | 166 | 3/14/2024 |
8.0.3.2 | 174 | 3/13/2024 |
8.0.3.1 | 174 | 3/13/2024 |
8.0.2.6 | 186 | 2/15/2024 |
8.0.2.5 | 178 | 2/15/2024 |
8.0.2.4 | 177 | 2/15/2024 |
8.0.2.3 | 177 | 2/14/2024 |
8.0.2.2 | 170 | 2/14/2024 |
8.0.2.1 | 184 | 2/14/2024 |
8.0.0.8 | 268 | 1/29/2024 |
8.0.0.7 | 169 | 1/26/2024 |
8.0.0.6 | 164 | 1/26/2024 |
8.0.0.5 | 235 | 1/16/2024 |
8.0.0.4 | 210 | 12/29/2023 |
8.0.0.3 | 208 | 12/21/2023 |
8.0.0.2 | 186 | 12/13/2023 |
8.0.0.2-rc.3 | 161 | 10/25/2023 |
8.0.0.2-rc.2 | 100 | 10/5/2023 |
8.0.0.1 | 163 | 11/19/2023 |
8.0.0.1-rc.1 | 93 | 9/25/2023 |
8.0.0 | 144 | 11/15/2023 |
7.3.13.1 | 131 | 10/25/2023 |
7.3.11.4 | 149 | 10/9/2023 |
7.3.11.3 | 132 | 10/5/2023 |
7.3.11.2 | 151 | 9/21/2023 |
7.3.11.1 | 137 | 9/13/2023 |
7.3.10.1 | 136 | 9/11/2023 |
7.2.10.3 | 168 | 9/6/2023 |
7.2.10.2 | 156 | 9/1/2023 |
7.2.10.1 | 175 | 8/29/2023 |
7.1.10.5 | 137 | 8/24/2023 |
7.1.10.4 | 142 | 8/23/2023 |
7.1.10.3 | 144 | 8/20/2023 |
7.1.10.2 | 143 | 8/20/2023 |
7.1.10.1 | 151 | 8/20/2023 |
7.0.10.4 | 154 | 8/18/2023 |
7.0.10.3 | 143 | 8/17/2023 |
7.0.10.2 | 147 | 8/16/2023 |
7.0.10.1 | 169 | 8/9/2023 |
7.0.9.3 | 159 | 8/2/2023 |
7.0.9.2 | 152 | 8/2/2023 |
7.0.9.1 | 151 | 8/2/2023 |
7.0.8.2 | 167 | 7/11/2023 |
7.0.8.1 | 260 | 6/27/2023 |
7.0.7.3 | 244 | 6/21/2023 |
7.0.7.2 | 247 | 6/19/2023 |
7.0.7.1 | 257 | 6/14/2023 |
7.0.5.11 | 275 | 6/13/2023 |
7.0.5.10 | 253 | 6/12/2023 |
7.0.5.9 | 245 | 6/12/2023 |
7.0.5.8 | 252 | 5/26/2023 |
7.0.5.7 | 247 | 5/26/2023 |
7.0.5.6 | 252 | 5/22/2023 |
7.0.5.5 | 257 | 5/18/2023 |
7.0.5.4 | 260 | 5/18/2023 |
7.0.5.3 | 321 | 4/22/2023 |
7.0.5.2 | 303 | 4/13/2023 |
7.0.5.1 | 289 | 4/13/2023 |
7.0.5 | 289 | 4/13/2023 |
7.0.4 | 331 | 3/30/2023 |
7.0.3 | 358 | 3/6/2023 |
7.0.2 | 457 | 2/2/2023 |
7.0.1 | 442 | 12/19/2022 |
7.0.0 | 554 | 11/14/2022 |
6.0.54 | 528 | 10/21/2022 |
6.0.53 | 524 | 10/20/2022 |
6.0.52 | 504 | 10/6/2022 |
6.0.51 | 509 | 10/5/2022 |
6.0.50 | 523 | 9/30/2022 |
6.0.49 | 594 | 9/27/2022 |
6.0.48 | 569 | 9/22/2022 |
6.0.47 | 578 | 9/20/2022 |
6.0.46 | 586 | 8/27/2022 |
6.0.45 | 622 | 8/26/2022 |
6.0.44 | 569 | 8/26/2022 |
6.0.43 | 609 | 8/23/2022 |
6.0.42 | 554 | 8/23/2022 |
6.0.41 | 591 | 8/16/2022 |
6.0.40 | 580 | 8/16/2022 |
6.0.39 | 602 | 8/4/2022 |
6.0.38 | 608 | 8/4/2022 |
6.0.37 | 612 | 8/4/2022 |
6.0.36 | 582 | 8/4/2022 |
6.0.35 | 574 | 8/4/2022 |
6.0.34 | 606 | 8/3/2022 |
6.0.33 | 597 | 8/3/2022 |
6.0.32 | 636 | 8/3/2022 |
6.0.31 | 599 | 8/3/2022 |
6.0.29 | 662 | 7/22/2022 |
6.0.28 | 636 | 7/14/2022 |
6.0.27 | 661 | 7/12/2022 |
6.0.26 | 664 | 7/12/2022 |
6.0.25 | 665 | 6/23/2022 |
6.0.24 | 659 | 6/23/2022 |
6.0.23 | 615 | 6/22/2022 |
6.0.22 | 634 | 6/22/2022 |
6.0.21 | 637 | 6/21/2022 |
6.0.20 | 664 | 5/26/2022 |
6.0.19 | 644 | 5/13/2022 |
6.0.17 | 691 | 5/10/2022 |
6.0.16 | 687 | 4/27/2022 |
6.0.15 | 739 | 3/18/2022 |
6.0.14 | 664 | 3/16/2022 |
6.0.13 | 742 | 2/25/2022 |
6.0.12 | 720 | 2/25/2022 |
6.0.11 | 737 | 2/2/2022 |
6.0.10 | 751 | 1/24/2022 |
6.0.9 | 734 | 1/24/2022 |
6.0.8 | 717 | 1/24/2022 |
6.0.7 | 757 | 1/24/2022 |
6.0.6 | 720 | 1/20/2022 |
6.0.5 | 751 | 1/19/2022 |
6.0.4 | 489 | 12/30/2021 |
6.0.3 | 620 | 12/14/2021 |
6.0.2 | 513 | 12/14/2021 |
6.0.1 | 730 | 11/30/2021 |
6.0.0 | 2,413 | 11/26/2021 |
6.0.0-rc3 | 324 | 11/16/2021 |
6.0.0-rc2 | 319 | 11/15/2021 |
6.0.0-rc1 | 375 | 11/10/2021 |
5.0.41 | 651 | 10/31/2021 |
5.0.40 | 663 | 10/20/2021 |
5.0.39 | 689 | 10/8/2021 |
5.0.35 | 663 | 10/6/2021 |
5.0.34 | 632 | 10/6/2021 |
5.0.33 | 626 | 10/5/2021 |
5.0.32 | 581 | 10/5/2021 |
5.0.31 | 669 | 10/4/2021 |
5.0.30 | 557 | 10/4/2021 |
5.0.29 | 740 | 10/2/2021 |
5.0.28 | 675 | 10/2/2021 |
5.0.27 | 620 | 10/2/2021 |
5.0.26 | 588 | 10/2/2021 |
5.0.25 | 607 | 9/28/2021 |
5.0.24 | 640 | 9/22/2021 |
5.0.23 | 712 | 9/11/2021 |
5.0.22 | 668 | 9/10/2021 |
5.0.21 | 628 | 8/29/2021 |
5.0.20 | 658 | 8/9/2021 |
5.0.19 | 713 | 7/21/2021 |
5.0.18 | 698 | 1/10/2021 |
5.0.17 | 708 | 12/30/2020 |
5.0.16 | 715 | 12/21/2020 |
5.0.15 | 756 | 12/19/2020 |
5.0.14 | 747 | 12/19/2020 |
5.0.13 | 781 | 12/18/2020 |
5.0.12 | 712 | 12/12/2020 |
5.0.11 | 697 | 12/10/2020 |
5.0.10 | 662 | 12/9/2020 |
5.0.9 | 677 | 12/9/2020 |
5.0.8 | 696 | 12/9/2020 |
5.0.7 | 696 | 12/9/2020 |
5.0.6 | 764 | 12/7/2020 |
5.0.5 | 635 | 12/7/2020 |
5.0.4 | 706 | 12/7/2020 |
5.0.3 | 736 | 11/24/2020 |
5.0.2 | 753 | 11/24/2020 |
5.0.1 | 718 | 11/18/2020 |
5.0.0 | 773 | 11/14/2020 |