Pipoburgos.SharedKernel.Api
7.3.11.2
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 7.3.11.2
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 7.3.11.2
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="7.3.11.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pipoburgos.SharedKernel.Api --version 7.3.11.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pipoburgos.SharedKernel.Api, 7.3.11.2"
#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=7.3.11.2 // Install Pipoburgos.SharedKernel.Api as a Cake Tool #tool nuget:?package=Pipoburgos.SharedKernel.Api&version=7.3.11.2
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 was computed. 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 (>= 7.1.0)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0-beta.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.22)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 6.0.22)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 6.0.22)
- Microsoft.AspNetCore.Mvc.Versioning (>= 5.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Debug (>= 7.0.0)
- Pipoburgos.SharedKernel.Infrastructure (>= 7.3.11.2)
- prometheus-net.AspNetCore (>= 8.0.1)
- Swashbuckle.AspNetCore.Newtonsoft (>= 6.5.0)
- 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 (>= 7.1.0)
- MicroElements.Swashbuckle.FluentValidation (>= 6.0.0-beta.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.11)
- Microsoft.AspNetCore.Authentication.Negotiate (>= 7.0.11)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 7.0.11)
- Microsoft.AspNetCore.Mvc.Versioning (>= 5.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging.Debug (>= 7.0.0)
- Pipoburgos.SharedKernel.Infrastructure (>= 7.3.11.2)
- prometheus-net.AspNetCore (>= 8.0.1)
- Swashbuckle.AspNetCore.Newtonsoft (>= 6.5.0)
- 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.2 | 80 | 11/17/2024 |
9.0.0.1 | 79 | 11/16/2024 |
8.0.10.3 | 95 | 11/5/2024 |
8.0.10.2 | 98 | 11/1/2024 |
8.0.10.1 | 100 | 10/16/2024 |
8.0.7.3 | 123 | 7/27/2024 |
8.0.7.2 | 122 | 7/15/2024 |
8.0.6.2 | 153 | 6/5/2024 |
8.0.6.1 | 166 | 5/30/2024 |
8.0.5.1 | 171 | 5/14/2024 |
8.0.4.8 | 138 | 5/11/2024 |
8.0.4.7 | 128 | 5/1/2024 |
8.0.4.6 | 123 | 4/29/2024 |
8.0.4.5 | 135 | 4/27/2024 |
8.0.4.4 | 131 | 4/27/2024 |
8.0.4.3 | 134 | 4/26/2024 |
8.0.4.2 | 107 | 4/26/2024 |
8.0.4.1 | 170 | 4/20/2024 |
8.0.3.5 | 215 | 3/25/2024 |
8.0.3.4 | 168 | 3/14/2024 |
8.0.3.3 | 125 | 3/14/2024 |
8.0.3.2 | 123 | 3/13/2024 |
8.0.3.1 | 128 | 3/13/2024 |
8.0.2.6 | 142 | 2/15/2024 |
8.0.2.5 | 137 | 2/15/2024 |
8.0.2.4 | 131 | 2/15/2024 |
8.0.2.3 | 127 | 2/14/2024 |
8.0.2.2 | 118 | 2/14/2024 |
8.0.2.1 | 136 | 2/14/2024 |
8.0.0.8 | 229 | 1/29/2024 |
8.0.0.7 | 129 | 1/26/2024 |
8.0.0.6 | 123 | 1/26/2024 |
8.0.0.5 | 190 | 1/16/2024 |
8.0.0.4 | 172 | 12/29/2023 |
8.0.0.3 | 163 | 12/21/2023 |
8.0.0.2 | 144 | 12/13/2023 |
8.0.0.2-rc.3 | 134 | 10/25/2023 |
8.0.0.2-rc.2 | 71 | 10/5/2023 |
8.0.0.1 | 122 | 11/19/2023 |
8.0.0.1-rc.1 | 67 | 9/25/2023 |
8.0.0 | 120 | 11/15/2023 |
7.3.13.1 | 101 | 10/25/2023 |
7.3.11.4 | 114 | 10/9/2023 |
7.3.11.3 | 102 | 10/5/2023 |
7.3.11.2 | 117 | 9/21/2023 |
7.3.11.1 | 110 | 9/13/2023 |
7.3.10.1 | 103 | 9/11/2023 |
7.2.10.3 | 127 | 9/6/2023 |
7.2.10.2 | 118 | 9/1/2023 |
7.2.10.1 | 141 | 8/29/2023 |
7.1.10.5 | 101 | 8/24/2023 |
7.1.10.4 | 101 | 8/23/2023 |
7.1.10.3 | 108 | 8/20/2023 |
7.1.10.2 | 97 | 8/20/2023 |
7.1.10.1 | 105 | 8/20/2023 |
7.0.10.4 | 110 | 8/18/2023 |
7.0.10.3 | 101 | 8/17/2023 |
7.0.10.2 | 107 | 8/16/2023 |
7.0.10.1 | 118 | 8/9/2023 |
7.0.9.3 | 114 | 8/2/2023 |
7.0.9.2 | 107 | 8/2/2023 |
7.0.9.1 | 108 | 8/2/2023 |
7.0.8.2 | 120 | 7/11/2023 |
7.0.8.1 | 211 | 6/27/2023 |
7.0.7.3 | 198 | 6/21/2023 |
7.0.7.2 | 197 | 6/19/2023 |
7.0.7.1 | 210 | 6/14/2023 |
7.0.5.11 | 220 | 6/13/2023 |
7.0.5.10 | 206 | 6/12/2023 |
7.0.5.9 | 197 | 6/12/2023 |
7.0.5.8 | 192 | 5/26/2023 |
7.0.5.7 | 189 | 5/26/2023 |
7.0.5.6 | 195 | 5/22/2023 |
7.0.5.5 | 209 | 5/18/2023 |
7.0.5.4 | 209 | 5/18/2023 |
7.0.5.3 | 269 | 4/22/2023 |
7.0.5.2 | 252 | 4/13/2023 |
7.0.5.1 | 244 | 4/13/2023 |
7.0.5 | 232 | 4/13/2023 |
7.0.4 | 286 | 3/30/2023 |
7.0.3 | 306 | 3/6/2023 |
7.0.2 | 392 | 2/2/2023 |
7.0.1 | 390 | 12/19/2022 |
7.0.0 | 499 | 11/14/2022 |
6.0.54 | 475 | 10/21/2022 |
6.0.53 | 462 | 10/20/2022 |
6.0.52 | 447 | 10/6/2022 |
6.0.51 | 449 | 10/5/2022 |
6.0.50 | 460 | 9/30/2022 |
6.0.49 | 535 | 9/27/2022 |
6.0.48 | 510 | 9/22/2022 |
6.0.47 | 523 | 9/20/2022 |
6.0.46 | 527 | 8/27/2022 |
6.0.45 | 561 | 8/26/2022 |
6.0.44 | 504 | 8/26/2022 |
6.0.43 | 546 | 8/23/2022 |
6.0.42 | 500 | 8/23/2022 |
6.0.41 | 522 | 8/16/2022 |
6.0.40 | 509 | 8/16/2022 |
6.0.39 | 540 | 8/4/2022 |
6.0.38 | 546 | 8/4/2022 |
6.0.37 | 552 | 8/4/2022 |
6.0.36 | 518 | 8/4/2022 |
6.0.35 | 507 | 8/4/2022 |
6.0.34 | 542 | 8/3/2022 |
6.0.33 | 528 | 8/3/2022 |
6.0.32 | 575 | 8/3/2022 |
6.0.31 | 535 | 8/3/2022 |
6.0.29 | 594 | 7/22/2022 |
6.0.28 | 572 | 7/14/2022 |
6.0.27 | 600 | 7/12/2022 |
6.0.26 | 594 | 7/12/2022 |
6.0.25 | 592 | 6/23/2022 |
6.0.24 | 594 | 6/23/2022 |
6.0.23 | 548 | 6/22/2022 |
6.0.22 | 567 | 6/22/2022 |
6.0.21 | 572 | 6/21/2022 |
6.0.20 | 596 | 5/26/2022 |
6.0.19 | 568 | 5/13/2022 |
6.0.17 | 623 | 5/10/2022 |
6.0.16 | 614 | 4/27/2022 |
6.0.15 | 657 | 3/18/2022 |
6.0.14 | 596 | 3/16/2022 |
6.0.13 | 672 | 2/25/2022 |
6.0.12 | 643 | 2/25/2022 |
6.0.11 | 661 | 2/2/2022 |
6.0.10 | 669 | 1/24/2022 |
6.0.9 | 660 | 1/24/2022 |
6.0.8 | 647 | 1/24/2022 |
6.0.7 | 684 | 1/24/2022 |
6.0.6 | 656 | 1/20/2022 |
6.0.5 | 679 | 1/19/2022 |
6.0.4 | 415 | 12/30/2021 |
6.0.3 | 544 | 12/14/2021 |
6.0.2 | 440 | 12/14/2021 |
6.0.1 | 654 | 11/30/2021 |
6.0.0 | 2,339 | 11/26/2021 |
6.0.0-rc3 | 258 | 11/16/2021 |
6.0.0-rc2 | 249 | 11/15/2021 |
6.0.0-rc1 | 307 | 11/10/2021 |
5.0.41 | 578 | 10/31/2021 |
5.0.40 | 595 | 10/20/2021 |
5.0.39 | 617 | 10/8/2021 |
5.0.35 | 586 | 10/6/2021 |
5.0.34 | 558 | 10/6/2021 |
5.0.33 | 551 | 10/5/2021 |
5.0.32 | 508 | 10/5/2021 |
5.0.31 | 595 | 10/4/2021 |
5.0.30 | 479 | 10/4/2021 |
5.0.29 | 665 | 10/2/2021 |
5.0.28 | 605 | 10/2/2021 |
5.0.27 | 544 | 10/2/2021 |
5.0.26 | 489 | 10/2/2021 |
5.0.25 | 533 | 9/28/2021 |
5.0.24 | 565 | 9/22/2021 |
5.0.23 | 640 | 9/11/2021 |
5.0.22 | 592 | 9/10/2021 |
5.0.21 | 560 | 8/29/2021 |
5.0.20 | 580 | 8/9/2021 |
5.0.19 | 632 | 7/21/2021 |
5.0.18 | 618 | 1/10/2021 |
5.0.17 | 620 | 12/30/2020 |
5.0.16 | 629 | 12/21/2020 |
5.0.15 | 670 | 12/19/2020 |
5.0.14 | 659 | 12/19/2020 |
5.0.13 | 697 | 12/18/2020 |
5.0.12 | 625 | 12/12/2020 |
5.0.11 | 611 | 12/10/2020 |
5.0.10 | 575 | 12/9/2020 |
5.0.9 | 587 | 12/9/2020 |
5.0.8 | 609 | 12/9/2020 |
5.0.7 | 611 | 12/9/2020 |
5.0.6 | 672 | 12/7/2020 |
5.0.5 | 549 | 12/7/2020 |
5.0.4 | 614 | 12/7/2020 |
5.0.3 | 643 | 11/24/2020 |
5.0.2 | 662 | 11/24/2020 |
5.0.1 | 631 | 11/18/2020 |
5.0.0 | 684 | 11/14/2020 |