Pipoburgos.SharedKernel.Api 9.0.8.2

dotnet add package Pipoburgos.SharedKernel.Api --version 9.0.8.2
                    
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 9.0.8.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="9.0.8.2" />
                    
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.8.2" />
                    
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.8.2
                    
#r "nuget: Pipoburgos.SharedKernel.Api, 9.0.8.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.
#:package Pipoburgos.SharedKernel.Api@9.0.8.2
                    
#: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=9.0.8.2
                    
Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.8.2
                    
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.8.2 173 8/20/2025
9.0.8.1 250 8/6/2025
9.0.7.1 191 7/9/2025
9.0.6.1 200 6/16/2025
9.0.5.1 209 6/4/2025
9.0.4.2 221 5/7/2025
9.0.4.1 220 5/7/2025
9.0.3.3 206 4/6/2025
9.0.3.2 536 3/26/2025
9.0.3.1 222 3/17/2025
9.0.2.1 203 2/12/2025
9.0.0.5 281 12/4/2024
9.0.0.4 168 12/2/2024
9.0.0.3 178 11/27/2024
9.0.0.2 182 11/17/2024
9.0.0.1 174 11/16/2024
8.0.10.3 197 11/5/2024
8.0.10.2 194 11/1/2024
8.0.10.1 191 10/16/2024
8.0.7.3 204 7/27/2024
8.0.7.2 203 7/15/2024
8.0.6.2 239 6/5/2024
8.0.6.1 255 5/30/2024
8.0.5.1 260 5/14/2024
8.0.4.8 235 5/11/2024
8.0.4.7 221 5/1/2024
8.0.4.6 217 4/29/2024
8.0.4.5 204 4/27/2024
8.0.4.4 216 4/27/2024
8.0.4.3 197 4/26/2024
8.0.4.2 185 4/26/2024
8.0.4.1 248 4/20/2024
8.0.3.5 311 3/25/2024
8.0.3.4 232 3/14/2024
8.0.3.3 203 3/14/2024
8.0.3.2 213 3/13/2024
8.0.3.1 214 3/13/2024
8.0.2.6 218 2/15/2024
8.0.2.5 213 2/15/2024
8.0.2.4 204 2/15/2024
8.0.2.3 213 2/14/2024
8.0.2.2 217 2/14/2024
8.0.2.1 211 2/14/2024
8.0.0.8 305 1/29/2024
8.0.0.7 197 1/26/2024
8.0.0.6 206 1/26/2024
8.0.0.5 269 1/16/2024
8.0.0.4 249 12/29/2023
8.0.0.3 236 12/21/2023
8.0.0.2 214 12/13/2023
8.0.0.2-rc.3 167 10/25/2023
8.0.0.2-rc.2 112 10/5/2023
8.0.0.1 175 11/19/2023
8.0.0.1-rc.1 105 9/25/2023
8.0.0 151 11/15/2023
7.3.13.1 145 10/25/2023
7.3.11.4 162 10/9/2023
7.3.11.3 142 10/5/2023
7.3.11.2 164 9/21/2023
7.3.11.1 146 9/13/2023
7.3.10.1 149 9/11/2023
7.2.10.3 189 9/6/2023
7.2.10.2 174 9/1/2023
7.2.10.1 192 8/29/2023
7.1.10.5 154 8/24/2023
7.1.10.4 159 8/23/2023
7.1.10.3 159 8/20/2023
7.1.10.2 160 8/20/2023
7.1.10.1 168 8/20/2023
7.0.10.4 179 8/18/2023
7.0.10.3 161 8/17/2023
7.0.10.2 163 8/16/2023
7.0.10.1 189 8/9/2023
7.0.9.3 179 8/2/2023
7.0.9.2 171 8/2/2023
7.0.9.1 169 8/2/2023
7.0.8.2 184 7/11/2023
7.0.8.1 291 6/27/2023
7.0.7.3 282 6/21/2023
7.0.7.2 275 6/19/2023
7.0.7.1 292 6/14/2023
7.0.5.11 310 6/13/2023
7.0.5.10 278 6/12/2023
7.0.5.9 276 6/12/2023
7.0.5.8 273 5/26/2023
7.0.5.7 284 5/26/2023
7.0.5.6 286 5/22/2023
7.0.5.5 277 5/18/2023
7.0.5.4 294 5/18/2023
7.0.5.3 341 4/22/2023
7.0.5.2 333 4/13/2023
7.0.5.1 322 4/13/2023
7.0.5 318 4/13/2023
7.0.4 362 3/30/2023
7.0.3 381 3/6/2023
7.0.2 498 2/2/2023
7.0.1 474 12/19/2022
7.0.0 576 11/14/2022
6.0.54 554 10/21/2022
6.0.53 557 10/20/2022
6.0.52 528 10/6/2022
6.0.51 533 10/5/2022
6.0.50 549 9/30/2022
6.0.49 621 9/27/2022
6.0.48 616 9/22/2022
6.0.47 596 9/20/2022
6.0.46 609 8/27/2022
6.0.45 648 8/26/2022
6.0.44 593 8/26/2022
6.0.43 633 8/23/2022
6.0.42 584 8/23/2022
6.0.41 615 8/16/2022
6.0.40 627 8/16/2022
6.0.39 638 8/4/2022
6.0.38 654 8/4/2022
6.0.37 651 8/4/2022
6.0.36 622 8/4/2022
6.0.35 596 8/4/2022
6.0.34 639 8/3/2022
6.0.33 624 8/3/2022
6.0.32 658 8/3/2022
6.0.31 624 8/3/2022
6.0.29 692 7/22/2022
6.0.28 684 7/14/2022
6.0.27 702 7/12/2022
6.0.26 697 7/12/2022
6.0.25 701 6/23/2022
6.0.24 687 6/23/2022
6.0.23 645 6/22/2022
6.0.22 658 6/22/2022
6.0.21 664 6/21/2022
6.0.20 707 5/26/2022
6.0.19 680 5/13/2022
6.0.17 714 5/10/2022
6.0.16 714 4/27/2022
6.0.15 778 3/18/2022
6.0.14 701 3/16/2022
6.0.13 778 2/25/2022
6.0.12 748 2/25/2022
6.0.11 767 2/2/2022
6.0.10 776 1/24/2022
6.0.9 767 1/24/2022
6.0.8 740 1/24/2022
6.0.7 801 1/24/2022
6.0.6 752 1/20/2022
6.0.5 792 1/19/2022
6.0.4 522 12/30/2021
6.0.3 657 12/14/2021
6.0.2 545 12/14/2021
6.0.1 776 11/30/2021
6.0.0 2,437 11/26/2021
6.0.0-rc3 366 11/16/2021
6.0.0-rc2 345 11/15/2021
6.0.0-rc1 420 11/10/2021
5.0.41 684 10/31/2021
5.0.40 696 10/20/2021
5.0.39 709 10/8/2021
5.0.35 691 10/6/2021
5.0.34 659 10/6/2021
5.0.33 657 10/5/2021
5.0.32 615 10/5/2021
5.0.31 726 10/4/2021
5.0.30 586 10/4/2021
5.0.29 773 10/2/2021
5.0.28 698 10/2/2021
5.0.27 643 10/2/2021
5.0.26 622 10/2/2021
5.0.25 648 9/28/2021
5.0.24 682 9/22/2021
5.0.23 754 9/11/2021
5.0.22 698 9/10/2021
5.0.21 647 8/29/2021
5.0.20 699 8/9/2021
5.0.19 737 7/21/2021
5.0.18 732 1/10/2021
5.0.17 734 12/30/2020
5.0.16 761 12/21/2020
5.0.15 802 12/19/2020
5.0.14 785 12/19/2020
5.0.13 815 12/18/2020
5.0.12 738 12/12/2020
5.0.11 732 12/10/2020
5.0.10 696 12/9/2020
5.0.9 712 12/9/2020
5.0.8 734 12/9/2020
5.0.7 733 12/9/2020
5.0.6 798 12/7/2020
5.0.5 678 12/7/2020
5.0.4 743 12/7/2020
5.0.3 776 11/24/2020
5.0.2 789 11/24/2020
5.0.1 754 11/18/2020
5.0.0 810 11/14/2020