Pipoburgos.SharedKernel.Api 9.0.6.1

dotnet add package Pipoburgos.SharedKernel.Api --version 9.0.6.1
                    
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 9.0.6.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="9.0.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pipoburgos.SharedKernel.Api" Version="9.0.6.1" />
                    
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 9.0.6.1
                    
#r "nuget: Pipoburgos.SharedKernel.Api, 9.0.6.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.
#addin nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.6.1
                    
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 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 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 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. 
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.6.1 147 6/16/2025
9.0.5.1 155 6/4/2025
9.0.4.2 169 5/7/2025
9.0.4.1 157 5/7/2025
9.0.3.3 155 4/6/2025
9.0.3.2 491 3/26/2025
9.0.3.1 164 3/17/2025
9.0.2.1 148 2/12/2025
9.0.0.5 223 12/4/2024
9.0.0.4 123 12/2/2024
9.0.0.3 117 11/27/2024
9.0.0.2 131 11/17/2024
9.0.0.1 129 11/16/2024
8.0.10.3 143 11/5/2024
8.0.10.2 140 11/1/2024
8.0.10.1 139 10/16/2024
8.0.7.3 162 7/27/2024
8.0.7.2 154 7/15/2024
8.0.6.2 184 6/5/2024
8.0.6.1 205 5/30/2024
8.0.5.1 211 5/14/2024
8.0.4.8 177 5/11/2024
8.0.4.7 172 5/1/2024
8.0.4.6 158 4/29/2024
8.0.4.5 164 4/27/2024
8.0.4.4 166 4/27/2024
8.0.4.3 161 4/26/2024
8.0.4.2 135 4/26/2024
8.0.4.1 199 4/20/2024
8.0.3.5 250 3/25/2024
8.0.3.4 199 3/14/2024
8.0.3.3 157 3/14/2024
8.0.3.2 162 3/13/2024
8.0.3.1 163 3/13/2024
8.0.2.6 180 2/15/2024
8.0.2.5 171 2/15/2024
8.0.2.4 165 2/15/2024
8.0.2.3 168 2/14/2024
8.0.2.2 156 2/14/2024
8.0.2.1 175 2/14/2024
8.0.0.8 256 1/29/2024
8.0.0.7 163 1/26/2024
8.0.0.6 153 1/26/2024
8.0.0.5 222 1/16/2024
8.0.0.4 201 12/29/2023
8.0.0.3 197 12/21/2023
8.0.0.2 177 12/13/2023
8.0.0.2-rc.3 151 10/25/2023
8.0.0.2-rc.2 90 10/5/2023
8.0.0.1 146 11/19/2023
8.0.0.1-rc.1 87 9/25/2023
8.0.0 138 11/15/2023
7.3.13.1 126 10/25/2023
7.3.11.4 140 10/9/2023
7.3.11.3 125 10/5/2023
7.3.11.2 143 9/21/2023
7.3.11.1 130 9/13/2023
7.3.10.1 129 9/11/2023
7.2.10.3 155 9/6/2023
7.2.10.2 143 9/1/2023
7.2.10.1 163 8/29/2023
7.1.10.5 124 8/24/2023
7.1.10.4 130 8/23/2023
7.1.10.3 131 8/20/2023
7.1.10.2 125 8/20/2023
7.1.10.1 136 8/20/2023
7.0.10.4 142 8/18/2023
7.0.10.3 128 8/17/2023
7.0.10.2 133 8/16/2023
7.0.10.1 156 8/9/2023
7.0.9.3 148 8/2/2023
7.0.9.2 139 8/2/2023
7.0.9.1 138 8/2/2023
7.0.8.2 156 7/11/2023
7.0.8.1 245 6/27/2023
7.0.7.3 230 6/21/2023
7.0.7.2 232 6/19/2023
7.0.7.1 245 6/14/2023
7.0.5.11 262 6/13/2023
7.0.5.10 240 6/12/2023
7.0.5.9 232 6/12/2023
7.0.5.8 236 5/26/2023
7.0.5.7 231 5/26/2023
7.0.5.6 238 5/22/2023
7.0.5.5 242 5/18/2023
7.0.5.4 247 5/18/2023
7.0.5.3 307 4/22/2023
7.0.5.2 287 4/13/2023
7.0.5.1 278 4/13/2023
7.0.5 274 4/13/2023
7.0.4 318 3/30/2023
7.0.3 347 3/6/2023
7.0.2 444 2/2/2023
7.0.1 429 12/19/2022
7.0.0 542 11/14/2022
6.0.54 514 10/21/2022
6.0.53 509 10/20/2022
6.0.52 488 10/6/2022
6.0.51 493 10/5/2022
6.0.50 509 9/30/2022
6.0.49 580 9/27/2022
6.0.48 555 9/22/2022
6.0.47 565 9/20/2022
6.0.46 574 8/27/2022
6.0.45 606 8/26/2022
6.0.44 552 8/26/2022
6.0.43 593 8/23/2022
6.0.42 542 8/23/2022
6.0.41 577 8/16/2022
6.0.40 560 8/16/2022
6.0.39 589 8/4/2022
6.0.38 593 8/4/2022
6.0.37 597 8/4/2022
6.0.36 570 8/4/2022
6.0.35 559 8/4/2022
6.0.34 591 8/3/2022
6.0.33 581 8/3/2022
6.0.32 622 8/3/2022
6.0.31 587 8/3/2022
6.0.29 647 7/22/2022
6.0.28 621 7/14/2022
6.0.27 647 7/12/2022
6.0.26 647 7/12/2022
6.0.25 647 6/23/2022
6.0.24 642 6/23/2022
6.0.23 597 6/22/2022
6.0.22 620 6/22/2022
6.0.21 621 6/21/2022
6.0.20 648 5/26/2022
6.0.19 628 5/13/2022
6.0.17 675 5/10/2022
6.0.16 671 4/27/2022
6.0.15 720 3/18/2022
6.0.14 649 3/16/2022
6.0.13 726 2/25/2022
6.0.12 704 2/25/2022
6.0.11 720 2/2/2022
6.0.10 736 1/24/2022
6.0.9 716 1/24/2022
6.0.8 701 1/24/2022
6.0.7 740 1/24/2022
6.0.6 707 1/20/2022
6.0.5 732 1/19/2022
6.0.4 472 12/30/2021
6.0.3 606 12/14/2021
6.0.2 497 12/14/2021
6.0.1 712 11/30/2021
6.0.0 2,394 11/26/2021
6.0.0-rc3 310 11/16/2021
6.0.0-rc2 304 11/15/2021
6.0.0-rc1 358 11/10/2021
5.0.41 634 10/31/2021
5.0.40 649 10/20/2021
5.0.39 676 10/8/2021
5.0.35 647 10/6/2021
5.0.34 614 10/6/2021
5.0.33 608 10/5/2021
5.0.32 565 10/5/2021
5.0.31 650 10/4/2021
5.0.30 539 10/4/2021
5.0.29 725 10/2/2021
5.0.28 661 10/2/2021
5.0.27 603 10/2/2021
5.0.26 568 10/2/2021
5.0.25 590 9/28/2021
5.0.24 622 9/22/2021
5.0.23 697 9/11/2021
5.0.22 650 9/10/2021
5.0.21 615 8/29/2021
5.0.20 635 8/9/2021
5.0.19 698 7/21/2021
5.0.18 680 1/10/2021
5.0.17 690 12/30/2020
5.0.16 696 12/21/2020
5.0.15 738 12/19/2020
5.0.14 728 12/19/2020
5.0.13 761 12/18/2020
5.0.12 695 12/12/2020
5.0.11 678 12/10/2020
5.0.10 643 12/9/2020
5.0.9 659 12/9/2020
5.0.8 676 12/9/2020
5.0.7 680 12/9/2020
5.0.6 746 12/7/2020
5.0.5 617 12/7/2020
5.0.4 683 12/7/2020
5.0.3 717 11/24/2020
5.0.2 734 11/24/2020
5.0.1 699 11/18/2020
5.0.0 755 11/14/2020