Pipoburgos.SharedKernel.Api
8.0.10.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 8.0.10.1
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 8.0.10.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="8.0.10.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pipoburgos.SharedKernel.Api --version 8.0.10.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pipoburgos.SharedKernel.Api, 8.0.10.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.
// Install Pipoburgos.SharedKernel.Api as a Cake Addin #addin nuget:?package=Pipoburgos.SharedKernel.Api&version=8.0.10.1 // Install Pipoburgos.SharedKernel.Api as a Cake Tool #tool nuget:?package=Pipoburgos.SharedKernel.Api&version=8.0.10.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 | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.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 (>= 8.0.1)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.31)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 6.0.31)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.10.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.9.0)
- Unchase.Swashbuckle.AspNetCore.Extensions (>= 2.7.1)
-
net7.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 (>= 8.0.1)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.20)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 7.0.20)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.10.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.9.0)
- Unchase.Swashbuckle.AspNetCore.Extensions (>= 2.7.1)
-
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 (>= 8.0.1)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 8.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.10.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.9.0)
- Unchase.Swashbuckle.AspNetCore.Extensions (>= 2.7.1)
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.0.5 | 140 | 12/4/2024 |
9.0.0.4 | 96 | 12/2/2024 |
9.0.0.3 | 89 | 11/27/2024 |
9.0.0.2 | 99 | 11/17/2024 |
9.0.0.1 | 95 | 11/16/2024 |
8.0.10.3 | 111 | 11/5/2024 |
8.0.10.2 | 113 | 11/1/2024 |
8.0.10.1 | 112 | 10/16/2024 |
8.0.7.3 | 135 | 7/27/2024 |
8.0.7.2 | 132 | 7/15/2024 |
8.0.6.2 | 162 | 6/5/2024 |
8.0.6.1 | 181 | 5/30/2024 |
8.0.5.1 | 182 | 5/14/2024 |
8.0.4.8 | 149 | 5/11/2024 |
8.0.4.7 | 137 | 5/1/2024 |
8.0.4.6 | 132 | 4/29/2024 |
8.0.4.5 | 142 | 4/27/2024 |
8.0.4.4 | 140 | 4/27/2024 |
8.0.4.3 | 141 | 4/26/2024 |
8.0.4.2 | 114 | 4/26/2024 |
8.0.4.1 | 179 | 4/20/2024 |
8.0.3.5 | 222 | 3/25/2024 |
8.0.3.4 | 176 | 3/14/2024 |
8.0.3.3 | 132 | 3/14/2024 |
8.0.3.2 | 130 | 3/13/2024 |
8.0.3.1 | 135 | 3/13/2024 |
8.0.2.6 | 155 | 2/15/2024 |
8.0.2.5 | 148 | 2/15/2024 |
8.0.2.4 | 142 | 2/15/2024 |
8.0.2.3 | 138 | 2/14/2024 |
8.0.2.2 | 129 | 2/14/2024 |
8.0.2.1 | 149 | 2/14/2024 |
8.0.0.8 | 236 | 1/29/2024 |
8.0.0.7 | 138 | 1/26/2024 |
8.0.0.6 | 130 | 1/26/2024 |
8.0.0.5 | 197 | 1/16/2024 |
8.0.0.4 | 179 | 12/29/2023 |
8.0.0.3 | 170 | 12/21/2023 |
8.0.0.2 | 151 | 12/13/2023 |
8.0.0.2-rc.3 | 139 | 10/25/2023 |
8.0.0.2-rc.2 | 75 | 10/5/2023 |
8.0.0.1 | 131 | 11/19/2023 |
8.0.0.1-rc.1 | 72 | 9/25/2023 |
8.0.0 | 129 | 11/15/2023 |
7.3.13.1 | 108 | 10/25/2023 |
7.3.11.4 | 122 | 10/9/2023 |
7.3.11.3 | 109 | 10/5/2023 |
7.3.11.2 | 123 | 9/21/2023 |
7.3.11.1 | 117 | 9/13/2023 |
7.3.10.1 | 110 | 9/11/2023 |
7.2.10.3 | 134 | 9/6/2023 |
7.2.10.2 | 125 | 9/1/2023 |
7.2.10.1 | 147 | 8/29/2023 |
7.1.10.5 | 108 | 8/24/2023 |
7.1.10.4 | 107 | 8/23/2023 |
7.1.10.3 | 115 | 8/20/2023 |
7.1.10.2 | 104 | 8/20/2023 |
7.1.10.1 | 112 | 8/20/2023 |
7.0.10.4 | 119 | 8/18/2023 |
7.0.10.3 | 108 | 8/17/2023 |
7.0.10.2 | 114 | 8/16/2023 |
7.0.10.1 | 129 | 8/9/2023 |
7.0.9.3 | 123 | 8/2/2023 |
7.0.9.2 | 114 | 8/2/2023 |
7.0.9.1 | 117 | 8/2/2023 |
7.0.8.2 | 129 | 7/11/2023 |
7.0.8.1 | 220 | 6/27/2023 |
7.0.7.3 | 205 | 6/21/2023 |
7.0.7.2 | 204 | 6/19/2023 |
7.0.7.1 | 217 | 6/14/2023 |
7.0.5.11 | 227 | 6/13/2023 |
7.0.5.10 | 217 | 6/12/2023 |
7.0.5.9 | 205 | 6/12/2023 |
7.0.5.8 | 203 | 5/26/2023 |
7.0.5.7 | 198 | 5/26/2023 |
7.0.5.6 | 204 | 5/22/2023 |
7.0.5.5 | 219 | 5/18/2023 |
7.0.5.4 | 219 | 5/18/2023 |
7.0.5.3 | 278 | 4/22/2023 |
7.0.5.2 | 259 | 4/13/2023 |
7.0.5.1 | 253 | 4/13/2023 |
7.0.5 | 241 | 4/13/2023 |
7.0.4 | 294 | 3/30/2023 |
7.0.3 | 314 | 3/6/2023 |
7.0.2 | 402 | 2/2/2023 |
7.0.1 | 397 | 12/19/2022 |
7.0.0 | 508 | 11/14/2022 |
6.0.54 | 486 | 10/21/2022 |
6.0.53 | 471 | 10/20/2022 |
6.0.52 | 458 | 10/6/2022 |
6.0.51 | 460 | 10/5/2022 |
6.0.50 | 469 | 9/30/2022 |
6.0.49 | 546 | 9/27/2022 |
6.0.48 | 519 | 9/22/2022 |
6.0.47 | 534 | 9/20/2022 |
6.0.46 | 537 | 8/27/2022 |
6.0.45 | 571 | 8/26/2022 |
6.0.44 | 515 | 8/26/2022 |
6.0.43 | 557 | 8/23/2022 |
6.0.42 | 511 | 8/23/2022 |
6.0.41 | 533 | 8/16/2022 |
6.0.40 | 520 | 8/16/2022 |
6.0.39 | 553 | 8/4/2022 |
6.0.38 | 555 | 8/4/2022 |
6.0.37 | 563 | 8/4/2022 |
6.0.36 | 530 | 8/4/2022 |
6.0.35 | 518 | 8/4/2022 |
6.0.34 | 551 | 8/3/2022 |
6.0.33 | 539 | 8/3/2022 |
6.0.32 | 584 | 8/3/2022 |
6.0.31 | 545 | 8/3/2022 |
6.0.29 | 605 | 7/22/2022 |
6.0.28 | 583 | 7/14/2022 |
6.0.27 | 611 | 7/12/2022 |
6.0.26 | 605 | 7/12/2022 |
6.0.25 | 601 | 6/23/2022 |
6.0.24 | 605 | 6/23/2022 |
6.0.23 | 557 | 6/22/2022 |
6.0.22 | 576 | 6/22/2022 |
6.0.21 | 583 | 6/21/2022 |
6.0.20 | 605 | 5/26/2022 |
6.0.19 | 579 | 5/13/2022 |
6.0.17 | 635 | 5/10/2022 |
6.0.16 | 625 | 4/27/2022 |
6.0.15 | 669 | 3/18/2022 |
6.0.14 | 607 | 3/16/2022 |
6.0.13 | 683 | 2/25/2022 |
6.0.12 | 654 | 2/25/2022 |
6.0.11 | 672 | 2/2/2022 |
6.0.10 | 680 | 1/24/2022 |
6.0.9 | 669 | 1/24/2022 |
6.0.8 | 656 | 1/24/2022 |
6.0.7 | 695 | 1/24/2022 |
6.0.6 | 665 | 1/20/2022 |
6.0.5 | 687 | 1/19/2022 |
6.0.4 | 426 | 12/30/2021 |
6.0.3 | 553 | 12/14/2021 |
6.0.2 | 450 | 12/14/2021 |
6.0.1 | 663 | 11/30/2021 |
6.0.0 | 2,348 | 11/26/2021 |
6.0.0-rc3 | 263 | 11/16/2021 |
6.0.0-rc2 | 254 | 11/15/2021 |
6.0.0-rc1 | 312 | 11/10/2021 |
5.0.41 | 587 | 10/31/2021 |
5.0.40 | 604 | 10/20/2021 |
5.0.39 | 626 | 10/8/2021 |
5.0.35 | 595 | 10/6/2021 |
5.0.34 | 567 | 10/6/2021 |
5.0.33 | 560 | 10/5/2021 |
5.0.32 | 518 | 10/5/2021 |
5.0.31 | 604 | 10/4/2021 |
5.0.30 | 488 | 10/4/2021 |
5.0.29 | 676 | 10/2/2021 |
5.0.28 | 614 | 10/2/2021 |
5.0.27 | 553 | 10/2/2021 |
5.0.26 | 499 | 10/2/2021 |
5.0.25 | 542 | 9/28/2021 |
5.0.24 | 574 | 9/22/2021 |
5.0.23 | 649 | 9/11/2021 |
5.0.22 | 602 | 9/10/2021 |
5.0.21 | 569 | 8/29/2021 |
5.0.20 | 589 | 8/9/2021 |
5.0.19 | 641 | 7/21/2021 |
5.0.18 | 627 | 1/10/2021 |
5.0.17 | 631 | 12/30/2020 |
5.0.16 | 638 | 12/21/2020 |
5.0.15 | 679 | 12/19/2020 |
5.0.14 | 668 | 12/19/2020 |
5.0.13 | 706 | 12/18/2020 |
5.0.12 | 635 | 12/12/2020 |
5.0.11 | 620 | 12/10/2020 |
5.0.10 | 584 | 12/9/2020 |
5.0.9 | 596 | 12/9/2020 |
5.0.8 | 618 | 12/9/2020 |
5.0.7 | 620 | 12/9/2020 |
5.0.6 | 681 | 12/7/2020 |
5.0.5 | 558 | 12/7/2020 |
5.0.4 | 623 | 12/7/2020 |
5.0.3 | 652 | 11/24/2020 |
5.0.2 | 671 | 11/24/2020 |
5.0.1 | 642 | 11/18/2020 |
5.0.0 | 696 | 11/14/2020 |