Pipoburgos.SharedKernel.Api
8.0.3.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.3.1
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 8.0.3.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.3.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.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pipoburgos.SharedKernel.Api, 8.0.3.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.3.1 // Install Pipoburgos.SharedKernel.Api as a Cake Tool #tool nuget:?package=Pipoburgos.SharedKernel.Api&version=8.0.3.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. |
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.0)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.25)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 6.0.25)
- Microsoft.Extensions.Logging.Debug (>= 8.0.0)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.3.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.5.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.0)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.11)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 7.0.11)
- Microsoft.Extensions.Logging.Debug (>= 8.0.0)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.3.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.5.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.0)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.3)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 8.0.3)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Debug (>= 8.0.0)
- Pipoburgos.SharedKernel.Infrastructure (>= 8.0.3.1)
- prometheus-net.AspNetCore (>= 8.2.1)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.5.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.1 | 10 | 11/16/2024 |
8.0.10.3 | 88 | 11/5/2024 |
8.0.10.2 | 91 | 11/1/2024 |
8.0.10.1 | 95 | 10/16/2024 |
8.0.7.3 | 120 | 7/27/2024 |
8.0.7.2 | 119 | 7/15/2024 |
8.0.6.2 | 150 | 6/5/2024 |
8.0.6.1 | 161 | 5/30/2024 |
8.0.5.1 | 168 | 5/14/2024 |
8.0.4.8 | 135 | 5/11/2024 |
8.0.4.7 | 125 | 5/1/2024 |
8.0.4.6 | 120 | 4/29/2024 |
8.0.4.5 | 132 | 4/27/2024 |
8.0.4.4 | 128 | 4/27/2024 |
8.0.4.3 | 131 | 4/26/2024 |
8.0.4.2 | 104 | 4/26/2024 |
8.0.4.1 | 168 | 4/20/2024 |
8.0.3.5 | 213 | 3/25/2024 |
8.0.3.4 | 166 | 3/14/2024 |
8.0.3.3 | 123 | 3/14/2024 |
8.0.3.2 | 121 | 3/13/2024 |
8.0.3.1 | 126 | 3/13/2024 |
8.0.2.6 | 140 | 2/15/2024 |
8.0.2.5 | 135 | 2/15/2024 |
8.0.2.4 | 129 | 2/15/2024 |
8.0.2.3 | 125 | 2/14/2024 |
8.0.2.2 | 116 | 2/14/2024 |
8.0.2.1 | 134 | 2/14/2024 |
8.0.0.8 | 225 | 1/29/2024 |
8.0.0.7 | 127 | 1/26/2024 |
8.0.0.6 | 121 | 1/26/2024 |
8.0.0.5 | 188 | 1/16/2024 |
8.0.0.4 | 170 | 12/29/2023 |
8.0.0.3 | 161 | 12/21/2023 |
8.0.0.2 | 142 | 12/13/2023 |
8.0.0.2-rc.3 | 132 | 10/25/2023 |
8.0.0.2-rc.2 | 69 | 10/5/2023 |
8.0.0.1 | 120 | 11/19/2023 |
8.0.0.1-rc.1 | 65 | 9/25/2023 |
8.0.0 | 118 | 11/15/2023 |
7.3.13.1 | 99 | 10/25/2023 |
7.3.11.4 | 111 | 10/9/2023 |
7.3.11.3 | 100 | 10/5/2023 |
7.3.11.2 | 115 | 9/21/2023 |
7.3.11.1 | 108 | 9/13/2023 |
7.3.10.1 | 101 | 9/11/2023 |
7.2.10.3 | 123 | 9/6/2023 |
7.2.10.2 | 116 | 9/1/2023 |
7.2.10.1 | 139 | 8/29/2023 |
7.1.10.5 | 99 | 8/24/2023 |
7.1.10.4 | 99 | 8/23/2023 |
7.1.10.3 | 106 | 8/20/2023 |
7.1.10.2 | 95 | 8/20/2023 |
7.1.10.1 | 103 | 8/20/2023 |
7.0.10.4 | 108 | 8/18/2023 |
7.0.10.3 | 99 | 8/17/2023 |
7.0.10.2 | 105 | 8/16/2023 |
7.0.10.1 | 116 | 8/9/2023 |
7.0.9.3 | 112 | 8/2/2023 |
7.0.9.2 | 105 | 8/2/2023 |
7.0.9.1 | 106 | 8/2/2023 |
7.0.8.2 | 118 | 7/11/2023 |
7.0.8.1 | 209 | 6/27/2023 |
7.0.7.3 | 196 | 6/21/2023 |
7.0.7.2 | 195 | 6/19/2023 |
7.0.7.1 | 206 | 6/14/2023 |
7.0.5.11 | 216 | 6/13/2023 |
7.0.5.10 | 203 | 6/12/2023 |
7.0.5.9 | 194 | 6/12/2023 |
7.0.5.8 | 189 | 5/26/2023 |
7.0.5.7 | 185 | 5/26/2023 |
7.0.5.6 | 192 | 5/22/2023 |
7.0.5.5 | 206 | 5/18/2023 |
7.0.5.4 | 206 | 5/18/2023 |
7.0.5.3 | 266 | 4/22/2023 |
7.0.5.2 | 249 | 4/13/2023 |
7.0.5.1 | 241 | 4/13/2023 |
7.0.5 | 229 | 4/13/2023 |
7.0.4 | 283 | 3/30/2023 |
7.0.3 | 303 | 3/6/2023 |
7.0.2 | 387 | 2/2/2023 |
7.0.1 | 387 | 12/19/2022 |
7.0.0 | 495 | 11/14/2022 |
6.0.54 | 472 | 10/21/2022 |
6.0.53 | 459 | 10/20/2022 |
6.0.52 | 444 | 10/6/2022 |
6.0.51 | 446 | 10/5/2022 |
6.0.50 | 457 | 9/30/2022 |
6.0.49 | 532 | 9/27/2022 |
6.0.48 | 506 | 9/22/2022 |
6.0.47 | 520 | 9/20/2022 |
6.0.46 | 524 | 8/27/2022 |
6.0.45 | 558 | 8/26/2022 |
6.0.44 | 501 | 8/26/2022 |
6.0.43 | 541 | 8/23/2022 |
6.0.42 | 497 | 8/23/2022 |
6.0.41 | 519 | 8/16/2022 |
6.0.40 | 506 | 8/16/2022 |
6.0.39 | 537 | 8/4/2022 |
6.0.38 | 541 | 8/4/2022 |
6.0.37 | 549 | 8/4/2022 |
6.0.36 | 515 | 8/4/2022 |
6.0.35 | 504 | 8/4/2022 |
6.0.34 | 539 | 8/3/2022 |
6.0.33 | 525 | 8/3/2022 |
6.0.32 | 570 | 8/3/2022 |
6.0.31 | 532 | 8/3/2022 |
6.0.29 | 589 | 7/22/2022 |
6.0.28 | 569 | 7/14/2022 |
6.0.27 | 597 | 7/12/2022 |
6.0.26 | 591 | 7/12/2022 |
6.0.25 | 589 | 6/23/2022 |
6.0.24 | 591 | 6/23/2022 |
6.0.23 | 545 | 6/22/2022 |
6.0.22 | 563 | 6/22/2022 |
6.0.21 | 569 | 6/21/2022 |
6.0.20 | 592 | 5/26/2022 |
6.0.19 | 565 | 5/13/2022 |
6.0.17 | 618 | 5/10/2022 |
6.0.16 | 610 | 4/27/2022 |
6.0.15 | 654 | 3/18/2022 |
6.0.14 | 592 | 3/16/2022 |
6.0.13 | 667 | 2/25/2022 |
6.0.12 | 640 | 2/25/2022 |
6.0.11 | 658 | 2/2/2022 |
6.0.10 | 665 | 1/24/2022 |
6.0.9 | 657 | 1/24/2022 |
6.0.8 | 643 | 1/24/2022 |
6.0.7 | 681 | 1/24/2022 |
6.0.6 | 653 | 1/20/2022 |
6.0.5 | 676 | 1/19/2022 |
6.0.4 | 412 | 12/30/2021 |
6.0.3 | 541 | 12/14/2021 |
6.0.2 | 436 | 12/14/2021 |
6.0.1 | 650 | 11/30/2021 |
6.0.0 | 2,334 | 11/26/2021 |
6.0.0-rc3 | 252 | 11/16/2021 |
6.0.0-rc2 | 246 | 11/15/2021 |
6.0.0-rc1 | 304 | 11/10/2021 |
5.0.41 | 575 | 10/31/2021 |
5.0.40 | 592 | 10/20/2021 |
5.0.39 | 614 | 10/8/2021 |
5.0.35 | 581 | 10/6/2021 |
5.0.34 | 555 | 10/6/2021 |
5.0.33 | 547 | 10/5/2021 |
5.0.32 | 505 | 10/5/2021 |
5.0.31 | 592 | 10/4/2021 |
5.0.30 | 476 | 10/4/2021 |
5.0.29 | 662 | 10/2/2021 |
5.0.28 | 602 | 10/2/2021 |
5.0.27 | 541 | 10/2/2021 |
5.0.26 | 485 | 10/2/2021 |
5.0.25 | 530 | 9/28/2021 |
5.0.24 | 559 | 9/22/2021 |
5.0.23 | 635 | 9/11/2021 |
5.0.22 | 589 | 9/10/2021 |
5.0.21 | 557 | 8/29/2021 |
5.0.20 | 576 | 8/9/2021 |
5.0.19 | 628 | 7/21/2021 |
5.0.18 | 615 | 1/10/2021 |
5.0.17 | 617 | 12/30/2020 |
5.0.16 | 624 | 12/21/2020 |
5.0.15 | 667 | 12/19/2020 |
5.0.14 | 656 | 12/19/2020 |
5.0.13 | 694 | 12/18/2020 |
5.0.12 | 622 | 12/12/2020 |
5.0.11 | 608 | 12/10/2020 |
5.0.10 | 570 | 12/9/2020 |
5.0.9 | 582 | 12/9/2020 |
5.0.8 | 604 | 12/9/2020 |
5.0.7 | 608 | 12/9/2020 |
5.0.6 | 669 | 12/7/2020 |
5.0.5 | 545 | 12/7/2020 |
5.0.4 | 610 | 12/7/2020 |
5.0.3 | 640 | 11/24/2020 |
5.0.2 | 659 | 11/24/2020 |
5.0.1 | 628 | 11/18/2020 |
5.0.0 | 681 | 11/14/2020 |