Pipoburgos.SharedKernel.Api 7.0.4

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

// Install Pipoburgos.SharedKernel.Api as a Cake Tool
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=7.0.4                

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 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 is compatible.  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. 
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.3.2 38 3/26/2025
9.0.3.1 133 3/17/2025
9.0.2.1 111 2/12/2025
9.0.0.5 194 12/4/2024
9.0.0.4 100 12/2/2024
9.0.0.3 94 11/27/2024
9.0.0.2 106 11/17/2024
9.0.0.1 100 11/16/2024
8.0.10.3 118 11/5/2024
8.0.10.2 117 11/1/2024
8.0.10.1 114 10/16/2024
8.0.7.3 135 7/27/2024
8.0.7.2 132 7/15/2024
8.0.6.2 162 6/5/2024
8.0.6.1 182 5/30/2024
8.0.5.1 186 5/14/2024
8.0.4.8 152 5/11/2024
8.0.4.7 142 5/1/2024
8.0.4.6 134 4/29/2024
8.0.4.5 143 4/27/2024
8.0.4.4 142 4/27/2024
8.0.4.3 143 4/26/2024
8.0.4.2 116 4/26/2024
8.0.4.1 180 4/20/2024
8.0.3.5 226 3/25/2024
8.0.3.4 178 3/14/2024
8.0.3.3 133 3/14/2024
8.0.3.2 131 3/13/2024
8.0.3.1 137 3/13/2024
8.0.2.6 157 2/15/2024
8.0.2.5 150 2/15/2024
8.0.2.4 143 2/15/2024
8.0.2.3 144 2/14/2024
8.0.2.2 129 2/14/2024
8.0.2.1 150 2/14/2024
8.0.0.8 237 1/29/2024
8.0.0.7 142 1/26/2024
8.0.0.6 130 1/26/2024
8.0.0.5 198 1/16/2024
8.0.0.4 181 12/29/2023
8.0.0.3 171 12/21/2023
8.0.0.2 152 12/13/2023
8.0.0.2-rc.3 139 10/25/2023
8.0.0.2-rc.2 76 10/5/2023
8.0.0.1 132 11/19/2023
8.0.0.1-rc.1 72 9/25/2023
8.0.0 130 11/15/2023
7.3.13.1 110 10/25/2023
7.3.11.4 124 10/9/2023
7.3.11.3 110 10/5/2023
7.3.11.2 129 9/21/2023
7.3.11.1 118 9/13/2023
7.3.10.1 111 9/11/2023
7.2.10.3 136 9/6/2023
7.2.10.2 125 9/1/2023
7.2.10.1 150 8/29/2023
7.1.10.5 109 8/24/2023
7.1.10.4 110 8/23/2023
7.1.10.3 115 8/20/2023
7.1.10.2 105 8/20/2023
7.1.10.1 114 8/20/2023
7.0.10.4 120 8/18/2023
7.0.10.3 109 8/17/2023
7.0.10.2 115 8/16/2023
7.0.10.1 131 8/9/2023
7.0.9.3 126 8/2/2023
7.0.9.2 117 8/2/2023
7.0.9.1 119 8/2/2023
7.0.8.2 130 7/11/2023
7.0.8.1 221 6/27/2023
7.0.7.3 207 6/21/2023
7.0.7.2 208 6/19/2023
7.0.7.1 223 6/14/2023
7.0.5.11 234 6/13/2023
7.0.5.10 222 6/12/2023
7.0.5.9 208 6/12/2023
7.0.5.8 209 5/26/2023
7.0.5.7 202 5/26/2023
7.0.5.6 210 5/22/2023
7.0.5.5 223 5/18/2023
7.0.5.4 225 5/18/2023
7.0.5.3 286 4/22/2023
7.0.5.2 266 4/13/2023
7.0.5.1 258 4/13/2023
7.0.5 247 4/13/2023
7.0.4 299 3/30/2023
7.0.3 320 3/6/2023
7.0.2 413 2/2/2023
7.0.1 408 12/19/2022
7.0.0 519 11/14/2022
6.0.54 496 10/21/2022
6.0.53 483 10/20/2022
6.0.52 469 10/6/2022
6.0.51 470 10/5/2022
6.0.50 481 9/30/2022
6.0.49 557 9/27/2022
6.0.48 532 9/22/2022
6.0.47 545 9/20/2022
6.0.46 549 8/27/2022
6.0.45 582 8/26/2022
6.0.44 526 8/26/2022
6.0.43 568 8/23/2022
6.0.42 523 8/23/2022
6.0.41 544 8/16/2022
6.0.40 532 8/16/2022
6.0.39 564 8/4/2022
6.0.38 568 8/4/2022
6.0.37 573 8/4/2022
6.0.36 540 8/4/2022
6.0.35 530 8/4/2022
6.0.34 565 8/3/2022
6.0.33 550 8/3/2022
6.0.32 596 8/3/2022
6.0.31 558 8/3/2022
6.0.29 616 7/22/2022
6.0.28 595 7/14/2022
6.0.27 621 7/12/2022
6.0.26 616 7/12/2022
6.0.25 613 6/23/2022
6.0.24 615 6/23/2022
6.0.23 570 6/22/2022
6.0.22 589 6/22/2022
6.0.21 594 6/21/2022
6.0.20 619 5/26/2022
6.0.19 592 5/13/2022
6.0.17 647 5/10/2022
6.0.16 637 4/27/2022
6.0.15 685 3/18/2022
6.0.14 622 3/16/2022
6.0.13 699 2/25/2022
6.0.12 671 2/25/2022
6.0.11 686 2/2/2022
6.0.10 695 1/24/2022
6.0.9 683 1/24/2022
6.0.8 672 1/24/2022
6.0.7 709 1/24/2022
6.0.6 678 1/20/2022
6.0.5 701 1/19/2022
6.0.4 440 12/30/2021
6.0.3 572 12/14/2021
6.0.2 464 12/14/2021
6.0.1 678 11/30/2021
6.0.0 2,362 11/26/2021
6.0.0-rc3 277 11/16/2021
6.0.0-rc2 268 11/15/2021
6.0.0-rc1 325 11/10/2021
5.0.41 602 10/31/2021
5.0.40 618 10/20/2021
5.0.39 641 10/8/2021
5.0.35 609 10/6/2021
5.0.34 581 10/6/2021
5.0.33 575 10/5/2021
5.0.32 532 10/5/2021
5.0.31 617 10/4/2021
5.0.30 501 10/4/2021
5.0.29 689 10/2/2021
5.0.28 629 10/2/2021
5.0.27 567 10/2/2021
5.0.26 514 10/2/2021
5.0.25 556 9/28/2021
5.0.24 588 9/22/2021
5.0.23 662 9/11/2021
5.0.22 617 9/10/2021
5.0.21 582 8/29/2021
5.0.20 601 8/9/2021
5.0.19 654 7/21/2021
5.0.18 643 1/10/2021
5.0.17 647 12/30/2020
5.0.16 654 12/21/2020
5.0.15 695 12/19/2020
5.0.14 684 12/19/2020
5.0.13 722 12/18/2020
5.0.12 652 12/12/2020
5.0.11 637 12/10/2020
5.0.10 599 12/9/2020
5.0.9 611 12/9/2020
5.0.8 633 12/9/2020
5.0.7 636 12/9/2020
5.0.6 696 12/7/2020
5.0.5 574 12/7/2020
5.0.4 639 12/7/2020
5.0.3 668 11/24/2020
5.0.2 686 11/24/2020
5.0.1 659 11/18/2020
5.0.0 712 11/14/2020