Pipoburgos.SharedKernel.Api 6.0.48

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

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

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 net5.0 is compatible.  net5.0-windows was computed.  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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
8.0.7.3 113 7/27/2024
8.0.7.2 117 7/15/2024
8.0.6.2 146 6/5/2024
8.0.6.1 151 5/30/2024
8.0.5.1 167 5/14/2024
8.0.4.8 133 5/11/2024
8.0.4.7 123 5/1/2024
8.0.4.6 118 4/29/2024
8.0.4.5 129 4/27/2024
8.0.4.4 123 4/27/2024
8.0.4.3 129 4/26/2024
8.0.4.2 103 4/26/2024
8.0.4.1 163 4/20/2024
8.0.3.5 211 3/25/2024
8.0.3.4 164 3/14/2024
8.0.3.3 121 3/14/2024
8.0.3.2 118 3/13/2024
8.0.3.1 124 3/13/2024
8.0.2.6 139 2/15/2024
8.0.2.5 128 2/15/2024
8.0.2.4 127 2/15/2024
8.0.2.3 123 2/14/2024
8.0.2.2 113 2/14/2024
8.0.2.1 121 2/14/2024
8.0.0.8 222 1/29/2024
8.0.0.7 125 1/26/2024
8.0.0.6 119 1/26/2024
8.0.0.5 186 1/16/2024
8.0.0.4 161 12/29/2023
8.0.0.3 156 12/21/2023
8.0.0.2 138 12/13/2023
8.0.0.2-rc.3 123 10/25/2023
8.0.0.2-rc.2 64 10/5/2023
8.0.0.1 110 11/19/2023
8.0.0.1-rc.1 61 9/25/2023
8.0.0 117 11/15/2023
7.3.13.1 94 10/25/2023
7.3.11.4 106 10/9/2023
7.3.11.3 96 10/5/2023
7.3.11.2 109 9/21/2023
7.3.11.1 104 9/13/2023
7.3.10.1 94 9/11/2023
7.2.10.3 118 9/6/2023
7.2.10.2 109 9/1/2023
7.2.10.1 135 8/29/2023
7.1.10.5 95 8/24/2023
7.1.10.4 91 8/23/2023
7.1.10.3 99 8/20/2023
7.1.10.2 91 8/20/2023
7.1.10.1 96 8/20/2023
7.0.10.4 103 8/18/2023
7.0.10.3 92 8/17/2023
7.0.10.2 99 8/16/2023
7.0.10.1 112 8/9/2023
7.0.9.3 106 8/2/2023
7.0.9.2 101 8/2/2023
7.0.9.1 100 8/2/2023
7.0.8.2 113 7/11/2023
7.0.8.1 206 6/27/2023
7.0.7.3 193 6/21/2023
7.0.7.2 193 6/19/2023
7.0.7.1 204 6/14/2023
7.0.5.11 214 6/13/2023
7.0.5.10 198 6/12/2023
7.0.5.9 187 6/12/2023
7.0.5.8 186 5/26/2023
7.0.5.7 184 5/26/2023
7.0.5.6 189 5/22/2023
7.0.5.5 204 5/18/2023
7.0.5.4 202 5/18/2023
7.0.5.3 264 4/22/2023
7.0.5.2 247 4/13/2023
7.0.5.1 238 4/13/2023
7.0.5 220 4/13/2023
7.0.4 281 3/30/2023
7.0.3 302 3/6/2023
7.0.2 381 2/2/2023
7.0.1 384 12/19/2022
7.0.0 491 11/14/2022
6.0.54 468 10/21/2022
6.0.53 451 10/20/2022
6.0.52 442 10/6/2022
6.0.51 443 10/5/2022
6.0.50 455 9/30/2022
6.0.49 524 9/27/2022
6.0.48 504 9/22/2022
6.0.47 518 9/20/2022
6.0.46 522 8/27/2022
6.0.45 556 8/26/2022
6.0.44 498 8/26/2022
6.0.43 539 8/23/2022
6.0.42 493 8/23/2022
6.0.41 516 8/16/2022
6.0.40 504 8/16/2022
6.0.39 536 8/4/2022
6.0.38 538 8/4/2022
6.0.37 545 8/4/2022
6.0.36 512 8/4/2022
6.0.35 503 8/4/2022
6.0.34 538 8/3/2022
6.0.33 516 8/3/2022
6.0.32 566 8/3/2022
6.0.31 530 8/3/2022
6.0.29 586 7/22/2022
6.0.28 566 7/14/2022
6.0.27 595 7/12/2022
6.0.26 589 7/12/2022
6.0.25 586 6/23/2022
6.0.24 588 6/23/2022
6.0.23 543 6/22/2022
6.0.22 561 6/22/2022
6.0.21 565 6/21/2022
6.0.20 590 5/26/2022
6.0.19 557 5/13/2022
6.0.17 616 5/10/2022
6.0.16 607 4/27/2022
6.0.15 652 3/18/2022
6.0.14 590 3/16/2022
6.0.13 664 2/25/2022
6.0.12 638 2/25/2022
6.0.11 656 2/2/2022
6.0.10 663 1/24/2022
6.0.9 655 1/24/2022
6.0.8 640 1/24/2022
6.0.7 678 1/24/2022
6.0.6 648 1/20/2022
6.0.5 667 1/19/2022
6.0.4 401 12/30/2021
6.0.3 539 12/14/2021
6.0.2 433 12/14/2021
6.0.1 645 11/30/2021
6.0.0 2,331 11/26/2021
6.0.0-rc3 249 11/16/2021
6.0.0-rc2 242 11/15/2021
6.0.0-rc1 300 11/10/2021
5.0.41 571 10/31/2021
5.0.40 587 10/20/2021
5.0.39 613 10/8/2021
5.0.35 579 10/6/2021
5.0.34 553 10/6/2021
5.0.33 545 10/5/2021
5.0.32 500 10/5/2021
5.0.31 589 10/4/2021
5.0.30 474 10/4/2021
5.0.29 659 10/2/2021
5.0.28 598 10/2/2021
5.0.27 539 10/2/2021
5.0.26 483 10/2/2021
5.0.25 526 9/28/2021
5.0.24 554 9/22/2021
5.0.23 633 9/11/2021
5.0.22 587 9/10/2021
5.0.21 552 8/29/2021
5.0.20 567 8/9/2021
5.0.19 623 7/21/2021
5.0.18 612 1/10/2021
5.0.17 613 12/30/2020
5.0.16 622 12/21/2020
5.0.15 663 12/19/2020
5.0.14 653 12/19/2020
5.0.13 690 12/18/2020
5.0.12 614 12/12/2020
5.0.11 605 12/10/2020
5.0.10 567 12/9/2020
5.0.9 579 12/9/2020
5.0.8 602 12/9/2020
5.0.7 606 12/9/2020
5.0.6 659 12/7/2020
5.0.5 543 12/7/2020
5.0.4 600 12/7/2020
5.0.3 638 11/24/2020
5.0.2 658 11/24/2020
5.0.1 626 11/18/2020
5.0.0 679 11/14/2020