Pipoburgos.SharedKernel.Api 10.0.0

dotnet add package Pipoburgos.SharedKernel.Api --version 10.0.0
                    
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 10.0.0
                    
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="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="10.0.0" />
                    
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 10.0.0
                    
#r "nuget: Pipoburgos.SharedKernel.Api, 10.0.0"
                    
#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@10.0.0
                    
#: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=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=10.0.0
                    
Install 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 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 is compatible.  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.

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
10.0.0 251 12/7/2025
9.0.8.2 230 8/20/2025
9.0.8.1 296 8/6/2025
9.0.7.1 234 7/9/2025
9.0.6.1 258 6/16/2025
9.0.5.1 262 6/4/2025
9.0.4.2 276 5/7/2025
9.0.4.1 276 5/7/2025
9.0.3.3 259 4/6/2025
9.0.3.2 602 3/26/2025
9.0.3.1 274 3/17/2025
9.0.2.1 251 2/12/2025
9.0.0.5 332 12/4/2024
9.0.0.4 225 12/2/2024
9.0.0.3 230 11/27/2024
9.0.0.2 232 11/17/2024
9.0.0.1 233 11/16/2024
8.0.10.3 251 11/5/2024
8.0.10.2 240 11/1/2024
8.0.10.1 247 10/16/2024
8.0.7.3 271 7/27/2024
8.0.7.2 252 7/15/2024
8.0.6.2 299 6/5/2024
8.0.6.1 308 5/30/2024
8.0.5.1 303 5/14/2024
8.0.4.8 286 5/11/2024
8.0.4.7 266 5/1/2024
8.0.4.6 263 4/29/2024
8.0.4.5 245 4/27/2024
8.0.4.4 270 4/27/2024
8.0.4.3 250 4/26/2024
8.0.4.2 238 4/26/2024
8.0.4.1 298 4/20/2024
8.0.3.5 363 3/25/2024
8.0.3.4 285 3/14/2024
8.0.3.3 257 3/14/2024
8.0.3.2 270 3/13/2024
8.0.3.1 266 3/13/2024
8.0.2.6 261 2/15/2024
8.0.2.5 259 2/15/2024
8.0.2.4 265 2/15/2024
8.0.2.3 265 2/14/2024
8.0.2.2 270 2/14/2024
8.0.2.1 267 2/14/2024
8.0.0.8 346 1/29/2024
8.0.0.7 247 1/26/2024
8.0.0.6 266 1/26/2024
8.0.0.5 319 1/16/2024
8.0.0.4 304 12/29/2023
8.0.0.3 294 12/21/2023
8.0.0.2 257 12/13/2023
8.0.0.2-rc.3 181 10/25/2023
8.0.0.2-rc.2 130 10/5/2023
8.0.0.1 198 11/19/2023
8.0.0.1-rc.1 120 9/25/2023
8.0.0 190 11/15/2023
7.3.13.1 169 10/25/2023
7.3.11.4 185 10/9/2023
7.3.11.3 164 10/5/2023
7.3.11.2 187 9/21/2023
7.3.11.1 169 9/13/2023
7.3.10.1 170 9/11/2023
7.2.10.3 225 9/6/2023
7.2.10.2 201 9/1/2023
7.2.10.1 211 8/29/2023
7.1.10.5 174 8/24/2023
7.1.10.4 191 8/23/2023
7.1.10.3 184 8/20/2023
7.1.10.2 185 8/20/2023
7.1.10.1 191 8/20/2023
7.0.10.4 208 8/18/2023
7.0.10.3 180 8/17/2023
7.0.10.2 178 8/16/2023
7.0.10.1 211 8/9/2023
7.0.9.3 196 8/2/2023
7.0.9.2 200 8/2/2023
7.0.9.1 205 8/2/2023
7.0.8.2 205 7/11/2023
7.0.8.1 328 6/27/2023
7.0.7.3 334 6/21/2023
7.0.7.2 312 6/19/2023
7.0.7.1 327 6/14/2023
7.0.5.11 364 6/13/2023
7.0.5.10 328 6/12/2023
7.0.5.9 322 6/12/2023
7.0.5.8 327 5/26/2023
7.0.5.7 323 5/26/2023
7.0.5.6 329 5/22/2023
7.0.5.5 325 5/18/2023
7.0.5.4 347 5/18/2023
7.0.5.3 391 4/22/2023
7.0.5.2 367 4/13/2023
7.0.5.1 362 4/13/2023
7.0.5 365 4/13/2023
7.0.4 414 3/30/2023
7.0.3 436 3/6/2023
7.0.2 540 2/2/2023
7.0.1 517 12/19/2022
7.0.0 629 11/14/2022
6.0.54 608 10/21/2022
6.0.53 614 10/20/2022
6.0.52 599 10/6/2022
6.0.51 591 10/5/2022
6.0.50 610 9/30/2022
6.0.49 677 9/27/2022
6.0.48 671 9/22/2022
6.0.47 627 9/20/2022
6.0.46 660 8/27/2022
6.0.45 705 8/26/2022
6.0.44 644 8/26/2022
6.0.43 688 8/23/2022
6.0.42 621 8/23/2022
6.0.41 684 8/16/2022
6.0.40 681 8/16/2022
6.0.39 681 8/4/2022
6.0.38 700 8/4/2022
6.0.37 704 8/4/2022
6.0.36 682 8/4/2022
6.0.35 646 8/4/2022
6.0.34 687 8/3/2022
6.0.33 670 8/3/2022
6.0.32 717 8/3/2022
6.0.31 683 8/3/2022
6.0.29 738 7/22/2022
6.0.28 727 7/14/2022
6.0.27 755 7/12/2022
6.0.26 740 7/12/2022
6.0.25 744 6/23/2022
6.0.24 750 6/23/2022
6.0.23 701 6/22/2022
6.0.22 715 6/22/2022
6.0.21 735 6/21/2022
6.0.20 775 5/26/2022
6.0.19 725 5/13/2022
6.0.17 772 5/10/2022
6.0.16 791 4/27/2022
6.0.15 838 3/18/2022
6.0.14 748 3/16/2022
6.0.13 838 2/25/2022
6.0.12 813 2/25/2022
6.0.11 830 2/2/2022
6.0.10 835 1/24/2022
6.0.9 821 1/24/2022
6.0.8 800 1/24/2022
6.0.7 852 1/24/2022
6.0.6 792 1/20/2022
6.0.5 857 1/19/2022
6.0.4 578 12/30/2021
6.0.3 707 12/14/2021
6.0.2 596 12/14/2021
6.0.1 824 11/30/2021
6.0.0 2,509 11/26/2021
6.0.0-rc3 412 11/16/2021
6.0.0-rc2 417 11/15/2021
6.0.0-rc1 481 11/10/2021
5.0.41 748 10/31/2021
5.0.40 762 10/20/2021
5.0.39 792 10/8/2021
5.0.35 755 10/6/2021
5.0.34 713 10/6/2021
5.0.33 709 10/5/2021
5.0.32 678 10/5/2021
5.0.31 794 10/4/2021
5.0.30 634 10/4/2021
5.0.29 852 10/2/2021
5.0.28 758 10/2/2021
5.0.27 715 10/2/2021
5.0.26 677 10/2/2021
5.0.25 707 9/28/2021
5.0.24 747 9/22/2021
5.0.23 809 9/11/2021
5.0.22 773 9/10/2021
5.0.21 707 8/29/2021
5.0.20 754 8/9/2021
5.0.19 814 7/21/2021
5.0.18 787 1/10/2021
5.0.17 811 12/30/2020
5.0.16 849 12/21/2020
5.0.15 868 12/19/2020
5.0.14 847 12/19/2020
5.0.13 870 12/18/2020
5.0.12 807 12/12/2020
5.0.11 793 12/10/2020
5.0.10 772 12/9/2020
5.0.9 767 12/9/2020
5.0.8 787 12/9/2020
5.0.7 794 12/9/2020
5.0.6 859 12/7/2020
5.0.5 733 12/7/2020
5.0.4 796 12/7/2020
5.0.3 829 11/24/2020
5.0.2 843 11/24/2020
5.0.1 831 11/18/2020
5.0.0 863 11/14/2020