Pipoburgos.SharedKernel.Api 8.0.6.2

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

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

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 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. 
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.6.2 112 6/5/2024
8.0.6.1 114 5/30/2024
8.0.5.1 137 5/14/2024
8.0.4.8 101 5/11/2024
8.0.4.7 97 5/1/2024
8.0.4.6 85 4/29/2024
8.0.4.5 98 4/27/2024
8.0.4.4 94 4/27/2024
8.0.4.3 97 4/26/2024
8.0.4.2 70 4/26/2024
8.0.4.1 135 4/20/2024
8.0.3.5 176 3/25/2024
8.0.3.4 126 3/14/2024
8.0.3.3 94 3/14/2024
8.0.3.2 92 3/13/2024
8.0.3.1 93 3/13/2024
8.0.2.6 109 2/15/2024
8.0.2.5 94 2/15/2024
8.0.2.4 98 2/15/2024
8.0.2.3 96 2/14/2024
8.0.2.2 85 2/14/2024
8.0.2.1 90 2/14/2024
8.0.0.8 197 1/29/2024
8.0.0.7 89 1/26/2024
8.0.0.6 91 1/26/2024
8.0.0.5 117 1/16/2024
8.0.0.4 138 12/29/2023
8.0.0.3 128 12/21/2023
8.0.0.2 111 12/13/2023
8.0.0.2-rc.3 116 10/25/2023
8.0.0.2-rc.2 58 10/5/2023
8.0.0.1 105 11/19/2023
8.0.0.1-rc.1 55 9/25/2023
8.0.0 87 11/15/2023
7.3.13.1 86 10/25/2023
7.3.11.4 99 10/9/2023
7.3.11.3 88 10/5/2023
7.3.11.2 98 9/21/2023
7.3.11.1 96 9/13/2023
7.3.10.1 88 9/11/2023
7.2.10.3 106 9/6/2023
7.2.10.2 104 9/1/2023
7.2.10.1 121 8/29/2023
7.1.10.5 88 8/24/2023
7.1.10.4 88 8/23/2023
7.1.10.3 95 8/20/2023
7.1.10.2 86 8/20/2023
7.1.10.1 92 8/20/2023
7.0.10.4 98 8/18/2023
7.0.10.3 88 8/17/2023
7.0.10.2 89 8/16/2023
7.0.10.1 108 8/9/2023
7.0.9.3 105 8/2/2023
7.0.9.2 99 8/2/2023
7.0.9.1 99 8/2/2023
7.0.8.2 109 7/11/2023
7.0.8.1 183 6/27/2023
7.0.7.3 173 6/21/2023
7.0.7.2 170 6/19/2023
7.0.7.1 172 6/14/2023
7.0.5.11 193 6/13/2023
7.0.5.10 171 6/12/2023
7.0.5.9 168 6/12/2023
7.0.5.8 171 5/26/2023
7.0.5.7 167 5/26/2023
7.0.5.6 163 5/22/2023
7.0.5.5 178 5/18/2023
7.0.5.4 183 5/18/2023
7.0.5.3 232 4/22/2023
7.0.5.2 225 4/13/2023
7.0.5.1 214 4/13/2023
7.0.5 203 4/13/2023
7.0.4 259 3/30/2023
7.0.3 282 3/6/2023
7.0.2 342 2/2/2023
7.0.1 358 12/19/2022
7.0.0 459 11/14/2022
6.0.54 442 10/21/2022
6.0.53 433 10/20/2022
6.0.52 413 10/6/2022
6.0.51 424 10/5/2022
6.0.50 434 9/30/2022
6.0.49 506 9/27/2022
6.0.48 483 9/22/2022
6.0.47 497 9/20/2022
6.0.46 495 8/27/2022
6.0.45 530 8/26/2022
6.0.44 478 8/26/2022
6.0.43 508 8/23/2022
6.0.42 472 8/23/2022
6.0.41 499 8/16/2022
6.0.40 485 8/16/2022
6.0.39 511 8/4/2022
6.0.38 511 8/4/2022
6.0.37 520 8/4/2022
6.0.36 484 8/4/2022
6.0.35 477 8/4/2022
6.0.34 518 8/3/2022
6.0.33 498 8/3/2022
6.0.32 544 8/3/2022
6.0.31 505 8/3/2022
6.0.29 567 7/22/2022
6.0.28 547 7/14/2022
6.0.27 553 7/12/2022
6.0.26 568 7/12/2022
6.0.25 561 6/23/2022
6.0.24 561 6/23/2022
6.0.23 518 6/22/2022
6.0.22 532 6/22/2022
6.0.21 514 6/21/2022
6.0.20 566 5/26/2022
6.0.19 540 5/13/2022
6.0.17 596 5/10/2022
6.0.16 588 4/27/2022
6.0.15 631 3/18/2022
6.0.14 572 3/16/2022
6.0.13 642 2/25/2022
6.0.12 620 2/25/2022
6.0.11 636 2/2/2022
6.0.10 646 1/24/2022
6.0.9 636 1/24/2022
6.0.8 610 1/24/2022
6.0.7 651 1/24/2022
6.0.6 623 1/20/2022
6.0.5 647 1/19/2022
6.0.4 379 12/30/2021
6.0.3 518 12/14/2021
6.0.2 410 12/14/2021
6.0.1 619 11/30/2021
6.0.0 2,299 11/26/2021
6.0.0-rc3 235 11/16/2021
6.0.0-rc2 214 11/15/2021
6.0.0-rc1 278 11/10/2021
5.0.41 553 10/31/2021
5.0.40 562 10/20/2021
5.0.39 594 10/8/2021
5.0.35 559 10/6/2021
5.0.34 535 10/6/2021
5.0.33 526 10/5/2021
5.0.32 476 10/5/2021
5.0.31 564 10/4/2021
5.0.30 455 10/4/2021
5.0.29 631 10/2/2021
5.0.28 573 10/2/2021
5.0.27 516 10/2/2021
5.0.26 460 10/2/2021
5.0.25 502 9/28/2021
5.0.24 530 9/22/2021
5.0.23 608 9/11/2021
5.0.22 567 9/10/2021
5.0.21 534 8/29/2021
5.0.20 549 8/9/2021
5.0.19 603 7/21/2021
5.0.18 590 1/10/2021
5.0.17 580 12/30/2020
5.0.16 605 12/21/2020
5.0.15 642 12/19/2020
5.0.14 633 12/19/2020
5.0.13 667 12/18/2020
5.0.12 595 12/12/2020
5.0.11 587 12/10/2020
5.0.10 548 12/9/2020
5.0.9 551 12/9/2020
5.0.8 573 12/9/2020
5.0.7 579 12/9/2020
5.0.6 639 12/7/2020
5.0.5 518 12/7/2020
5.0.4 581 12/7/2020
5.0.3 611 11/24/2020
5.0.2 630 11/24/2020
5.0.1 599 11/18/2020
5.0.0 655 11/14/2020