Pipoburgos.SharedKernel.Api 9.0.4.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pipoburgos.SharedKernel.Api --version 9.0.4.1
                    
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 9.0.4.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.4.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.4.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.4.1
                    
#r "nuget: Pipoburgos.SharedKernel.Api, 9.0.4.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.
#:package Pipoburgos.SharedKernel.Api@9.0.4.1
                    
#: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.4.1
                    
Install as a Cake Addin
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.4.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.8.2 140 8/20/2025
9.0.8.1 220 8/6/2025
9.0.7.1 171 7/9/2025
9.0.6.1 173 6/16/2025
9.0.5.1 187 6/4/2025
9.0.4.2 197 5/7/2025
9.0.4.1 189 5/7/2025
9.0.3.3 187 4/6/2025
9.0.3.2 525 3/26/2025
9.0.3.1 197 3/17/2025
9.0.2.1 177 2/12/2025
9.0.0.5 257 12/4/2024
9.0.0.4 155 12/2/2024
9.0.0.3 147 11/27/2024
9.0.0.2 160 11/17/2024
9.0.0.1 156 11/16/2024
8.0.10.3 172 11/5/2024
8.0.10.2 168 11/1/2024
8.0.10.1 167 10/16/2024
8.0.7.3 192 7/27/2024
8.0.7.2 180 7/15/2024
8.0.6.2 214 6/5/2024
8.0.6.1 234 5/30/2024
8.0.5.1 239 5/14/2024
8.0.4.8 210 5/11/2024
8.0.4.7 199 5/1/2024
8.0.4.6 191 4/29/2024
8.0.4.5 187 4/27/2024
8.0.4.4 193 4/27/2024
8.0.4.3 186 4/26/2024
8.0.4.2 163 4/26/2024
8.0.4.1 227 4/20/2024
8.0.3.5 280 3/25/2024
8.0.3.4 222 3/14/2024
8.0.3.3 180 3/14/2024
8.0.3.2 191 3/13/2024
8.0.3.1 192 3/13/2024
8.0.2.6 201 2/15/2024
8.0.2.5 193 2/15/2024
8.0.2.4 192 2/15/2024
8.0.2.3 192 2/14/2024
8.0.2.2 188 2/14/2024
8.0.2.1 199 2/14/2024
8.0.0.8 283 1/29/2024
8.0.0.7 187 1/26/2024
8.0.0.6 181 1/26/2024
8.0.0.5 256 1/16/2024
8.0.0.4 226 12/29/2023
8.0.0.3 225 12/21/2023
8.0.0.2 201 12/13/2023
8.0.0.2-rc.3 166 10/25/2023
8.0.0.2-rc.2 109 10/5/2023
8.0.0.1 173 11/19/2023
8.0.0.1-rc.1 101 9/25/2023
8.0.0 149 11/15/2023
7.3.13.1 143 10/25/2023
7.3.11.4 159 10/9/2023
7.3.11.3 139 10/5/2023
7.3.11.2 158 9/21/2023
7.3.11.1 144 9/13/2023
7.3.10.1 147 9/11/2023
7.2.10.3 184 9/6/2023
7.2.10.2 170 9/1/2023
7.2.10.1 189 8/29/2023
7.1.10.5 147 8/24/2023
7.1.10.4 155 8/23/2023
7.1.10.3 154 8/20/2023
7.1.10.2 155 8/20/2023
7.1.10.1 163 8/20/2023
7.0.10.4 167 8/18/2023
7.0.10.3 155 8/17/2023
7.0.10.2 159 8/16/2023
7.0.10.1 185 8/9/2023
7.0.9.3 173 8/2/2023
7.0.9.2 166 8/2/2023
7.0.9.1 163 8/2/2023
7.0.8.2 180 7/11/2023
7.0.8.1 276 6/27/2023
7.0.7.3 257 6/21/2023
7.0.7.2 259 6/19/2023
7.0.7.1 272 6/14/2023
7.0.5.11 289 6/13/2023
7.0.5.10 270 6/12/2023
7.0.5.9 261 6/12/2023
7.0.5.8 266 5/26/2023
7.0.5.7 267 5/26/2023
7.0.5.6 269 5/22/2023
7.0.5.5 271 5/18/2023
7.0.5.4 278 5/18/2023
7.0.5.3 336 4/22/2023
7.0.5.2 317 4/13/2023
7.0.5.1 304 4/13/2023
7.0.5 305 4/13/2023
7.0.4 344 3/30/2023
7.0.3 375 3/6/2023
7.0.2 480 2/2/2023
7.0.1 458 12/19/2022
7.0.0 571 11/14/2022
6.0.54 545 10/21/2022
6.0.53 542 10/20/2022
6.0.52 519 10/6/2022
6.0.51 528 10/5/2022
6.0.50 541 9/30/2022
6.0.49 611 9/27/2022
6.0.48 585 9/22/2022
6.0.47 591 9/20/2022
6.0.46 602 8/27/2022
6.0.45 640 8/26/2022
6.0.44 584 8/26/2022
6.0.43 624 8/23/2022
6.0.42 568 8/23/2022
6.0.41 607 8/16/2022
6.0.40 599 8/16/2022
6.0.39 620 8/4/2022
6.0.38 626 8/4/2022
6.0.37 630 8/4/2022
6.0.36 600 8/4/2022
6.0.35 589 8/4/2022
6.0.34 622 8/3/2022
6.0.33 612 8/3/2022
6.0.32 650 8/3/2022
6.0.31 616 8/3/2022
6.0.29 676 7/22/2022
6.0.28 657 7/14/2022
6.0.27 681 7/12/2022
6.0.26 678 7/12/2022
6.0.25 683 6/23/2022
6.0.24 678 6/23/2022
6.0.23 630 6/22/2022
6.0.22 653 6/22/2022
6.0.21 654 6/21/2022
6.0.20 680 5/26/2022
6.0.19 661 5/13/2022
6.0.17 706 5/10/2022
6.0.16 705 4/27/2022
6.0.15 756 3/18/2022
6.0.14 677 3/16/2022
6.0.13 762 2/25/2022
6.0.12 740 2/25/2022
6.0.11 754 2/2/2022
6.0.10 768 1/24/2022
6.0.9 752 1/24/2022
6.0.8 734 1/24/2022
6.0.7 778 1/24/2022
6.0.6 734 1/20/2022
6.0.5 769 1/19/2022
6.0.4 505 12/30/2021
6.0.3 637 12/14/2021
6.0.2 531 12/14/2021
6.0.1 748 11/30/2021
6.0.0 2,430 11/26/2021
6.0.0-rc3 338 11/16/2021
6.0.0-rc2 337 11/15/2021
6.0.0-rc1 394 11/10/2021
5.0.41 665 10/31/2021
5.0.40 680 10/20/2021
5.0.39 703 10/8/2021
5.0.35 685 10/6/2021
5.0.34 651 10/6/2021
5.0.33 638 10/5/2021
5.0.32 596 10/5/2021
5.0.31 687 10/4/2021
5.0.30 570 10/4/2021
5.0.29 756 10/2/2021
5.0.28 690 10/2/2021
5.0.27 635 10/2/2021
5.0.26 604 10/2/2021
5.0.25 623 9/28/2021
5.0.24 659 9/22/2021
5.0.23 727 9/11/2021
5.0.22 683 9/10/2021
5.0.21 642 8/29/2021
5.0.20 679 8/9/2021
5.0.19 727 7/21/2021
5.0.18 715 1/10/2021
5.0.17 725 12/30/2020
5.0.16 735 12/21/2020
5.0.15 775 12/19/2020
5.0.14 766 12/19/2020
5.0.13 797 12/18/2020
5.0.12 729 12/12/2020
5.0.11 713 12/10/2020
5.0.10 679 12/9/2020
5.0.9 694 12/9/2020
5.0.8 714 12/9/2020
5.0.7 714 12/9/2020
5.0.6 781 12/7/2020
5.0.5 659 12/7/2020
5.0.4 723 12/7/2020
5.0.3 757 11/24/2020
5.0.2 771 11/24/2020
5.0.1 737 11/18/2020
5.0.0 791 11/14/2020