Pipoburgos.SharedKernel.Api 6.0.20

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pipoburgos.SharedKernel.Api --version 6.0.20
                    
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 6.0.20
                    
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="6.0.20" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="6.0.20" />
                    
Directory.Packages.props
<PackageReference Include="Pipoburgos.SharedKernel.Api" />
                    
Project file
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 6.0.20
                    
#r "nuget: Pipoburgos.SharedKernel.Api, 6.0.20"
                    
#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.
#addin nuget:?package=Pipoburgos.SharedKernel.Api&version=6.0.20
                    
Install Pipoburgos.SharedKernel.Api as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=6.0.20
                    
Install Pipoburgos.SharedKernel.Api as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 was computed.  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.  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.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.4.2 146 5/7/2025
9.0.4.1 138 5/7/2025
9.0.3.3 145 4/6/2025
9.0.3.2 479 3/26/2025
9.0.3.1 152 3/17/2025
9.0.2.1 127 2/12/2025
9.0.0.5 212 12/4/2024
9.0.0.4 114 12/2/2024
9.0.0.3 107 11/27/2024
9.0.0.2 119 11/17/2024
9.0.0.1 116 11/16/2024
8.0.10.3 130 11/5/2024
8.0.10.2 129 11/1/2024
8.0.10.1 127 10/16/2024
8.0.7.3 147 7/27/2024
8.0.7.2 144 7/15/2024
8.0.6.2 173 6/5/2024
8.0.6.1 193 5/30/2024
8.0.5.1 197 5/14/2024
8.0.4.8 163 5/11/2024
8.0.4.7 153 5/1/2024
8.0.4.6 145 4/29/2024
8.0.4.5 154 4/27/2024
8.0.4.4 154 4/27/2024
8.0.4.3 154 4/26/2024
8.0.4.2 127 4/26/2024
8.0.4.1 192 4/20/2024
8.0.3.5 238 3/25/2024
8.0.3.4 190 3/14/2024
8.0.3.3 145 3/14/2024
8.0.3.2 143 3/13/2024
8.0.3.1 149 3/13/2024
8.0.2.6 169 2/15/2024
8.0.2.5 162 2/15/2024
8.0.2.4 155 2/15/2024
8.0.2.3 155 2/14/2024
8.0.2.2 140 2/14/2024
8.0.2.1 161 2/14/2024
8.0.0.8 248 1/29/2024
8.0.0.7 154 1/26/2024
8.0.0.6 141 1/26/2024
8.0.0.5 209 1/16/2024
8.0.0.4 192 12/29/2023
8.0.0.3 182 12/21/2023
8.0.0.2 164 12/13/2023
8.0.0.2-rc.3 142 10/25/2023
8.0.0.2-rc.2 81 10/5/2023
8.0.0.1 135 11/19/2023
8.0.0.1-rc.1 74 9/25/2023
8.0.0 133 11/15/2023
7.3.13.1 113 10/25/2023
7.3.11.4 128 10/9/2023
7.3.11.3 114 10/5/2023
7.3.11.2 132 9/21/2023
7.3.11.1 122 9/13/2023
7.3.10.1 117 9/11/2023
7.2.10.3 142 9/6/2023
7.2.10.2 132 9/1/2023
7.2.10.1 156 8/29/2023
7.1.10.5 115 8/24/2023
7.1.10.4 117 8/23/2023
7.1.10.3 122 8/20/2023
7.1.10.2 112 8/20/2023
7.1.10.1 121 8/20/2023
7.0.10.4 127 8/18/2023
7.0.10.3 116 8/17/2023
7.0.10.2 123 8/16/2023
7.0.10.1 139 8/9/2023
7.0.9.3 134 8/2/2023
7.0.9.2 124 8/2/2023
7.0.9.1 126 8/2/2023
7.0.8.2 138 7/11/2023
7.0.8.1 229 6/27/2023
7.0.7.3 215 6/21/2023
7.0.7.2 217 6/19/2023
7.0.7.1 233 6/14/2023
7.0.5.11 244 6/13/2023
7.0.5.10 232 6/12/2023
7.0.5.9 218 6/12/2023
7.0.5.8 219 5/26/2023
7.0.5.7 213 5/26/2023
7.0.5.6 220 5/22/2023
7.0.5.5 233 5/18/2023
7.0.5.4 235 5/18/2023
7.0.5.3 296 4/22/2023
7.0.5.2 276 4/13/2023
7.0.5.1 268 4/13/2023
7.0.5 257 4/13/2023
7.0.4 309 3/30/2023
7.0.3 330 3/6/2023
7.0.2 429 2/2/2023
7.0.1 418 12/19/2022
7.0.0 533 11/14/2022
6.0.54 506 10/21/2022
6.0.53 494 10/20/2022
6.0.52 479 10/6/2022
6.0.51 480 10/5/2022
6.0.50 491 9/30/2022
6.0.49 567 9/27/2022
6.0.48 543 9/22/2022
6.0.47 555 9/20/2022
6.0.46 560 8/27/2022
6.0.45 593 8/26/2022
6.0.44 537 8/26/2022
6.0.43 579 8/23/2022
6.0.42 534 8/23/2022
6.0.41 561 8/16/2022
6.0.40 543 8/16/2022
6.0.39 576 8/4/2022
6.0.38 580 8/4/2022
6.0.37 586 8/4/2022
6.0.36 552 8/4/2022
6.0.35 542 8/4/2022
6.0.34 577 8/3/2022
6.0.33 562 8/3/2022
6.0.32 608 8/3/2022
6.0.31 570 8/3/2022
6.0.29 629 7/22/2022
6.0.28 607 7/14/2022
6.0.27 633 7/12/2022
6.0.26 628 7/12/2022
6.0.25 626 6/23/2022
6.0.24 628 6/23/2022
6.0.23 582 6/22/2022
6.0.22 601 6/22/2022
6.0.21 606 6/21/2022
6.0.20 632 5/26/2022
6.0.19 604 5/13/2022
6.0.17 660 5/10/2022
6.0.16 652 4/27/2022
6.0.15 701 3/18/2022
6.0.14 637 3/16/2022
6.0.13 714 2/25/2022
6.0.12 686 2/25/2022
6.0.11 704 2/2/2022
6.0.10 712 1/24/2022
6.0.9 700 1/24/2022
6.0.8 689 1/24/2022
6.0.7 726 1/24/2022
6.0.6 695 1/20/2022
6.0.5 718 1/19/2022
6.0.4 457 12/30/2021
6.0.3 589 12/14/2021
6.0.2 481 12/14/2021
6.0.1 696 11/30/2021
6.0.0 2,379 11/26/2021
6.0.0-rc3 294 11/16/2021
6.0.0-rc2 285 11/15/2021
6.0.0-rc1 343 11/10/2021
5.0.41 621 10/31/2021
5.0.40 636 10/20/2021
5.0.39 659 10/8/2021
5.0.35 627 10/6/2021
5.0.34 599 10/6/2021
5.0.33 594 10/5/2021
5.0.32 550 10/5/2021
5.0.31 635 10/4/2021
5.0.30 519 10/4/2021
5.0.29 708 10/2/2021
5.0.28 647 10/2/2021
5.0.27 585 10/2/2021
5.0.26 540 10/2/2021
5.0.25 574 9/28/2021
5.0.24 606 9/22/2021
5.0.23 680 9/11/2021
5.0.22 635 9/10/2021
5.0.21 600 8/29/2021
5.0.20 619 8/9/2021
5.0.19 672 7/21/2021
5.0.18 667 1/10/2021
5.0.17 672 12/30/2020
5.0.16 680 12/21/2020
5.0.15 721 12/19/2020
5.0.14 710 12/19/2020
5.0.13 747 12/18/2020
5.0.12 677 12/12/2020
5.0.11 662 12/10/2020
5.0.10 624 12/9/2020
5.0.9 636 12/9/2020
5.0.8 658 12/9/2020
5.0.7 661 12/9/2020
5.0.6 722 12/7/2020
5.0.5 599 12/7/2020
5.0.4 665 12/7/2020
5.0.3 693 11/24/2020
5.0.2 711 11/24/2020
5.0.1 685 11/18/2020
5.0.0 737 11/14/2020