Pipoburgos.SharedKernel.Api 8.0.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pipoburgos.SharedKernel.Api --version 8.0.5.1
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 8.0.5.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="8.0.5.1" />
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.5.1
#r "nuget: Pipoburgos.SharedKernel.Api, 8.0.5.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.
// Install Pipoburgos.SharedKernel.Api as a Cake Addin
#addin nuget:?package=Pipoburgos.SharedKernel.Api&version=8.0.5.1

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

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 106 6/5/2024
8.0.6.1 112 5/30/2024
8.0.5.1 136 5/14/2024
8.0.4.8 100 5/11/2024
8.0.4.7 91 5/1/2024
8.0.4.6 84 4/29/2024
8.0.4.5 97 4/27/2024
8.0.4.4 93 4/27/2024
8.0.4.3 96 4/26/2024
8.0.4.2 69 4/26/2024
8.0.4.1 134 4/20/2024
8.0.3.5 175 3/25/2024
8.0.3.4 125 3/14/2024
8.0.3.3 93 3/14/2024
8.0.3.2 91 3/13/2024
8.0.3.1 92 3/13/2024
8.0.2.6 108 2/15/2024
8.0.2.5 93 2/15/2024
8.0.2.4 97 2/15/2024
8.0.2.3 95 2/14/2024
8.0.2.2 84 2/14/2024
8.0.2.1 89 2/14/2024
8.0.0.8 196 1/29/2024
8.0.0.7 88 1/26/2024
8.0.0.6 90 1/26/2024
8.0.0.5 116 1/16/2024
8.0.0.4 137 12/29/2023
8.0.0.3 127 12/21/2023
8.0.0.2 110 12/13/2023
8.0.0.2-rc.3 115 10/25/2023
8.0.0.2-rc.2 57 10/5/2023
8.0.0.1 104 11/19/2023
8.0.0.1-rc.1 54 9/25/2023
8.0.0 86 11/15/2023
7.3.13.1 85 10/25/2023
7.3.11.4 98 10/9/2023
7.3.11.3 82 10/5/2023
7.3.11.2 97 9/21/2023
7.3.11.1 95 9/13/2023
7.3.10.1 87 9/11/2023
7.2.10.3 105 9/6/2023
7.2.10.2 103 9/1/2023
7.2.10.1 120 8/29/2023
7.1.10.5 87 8/24/2023
7.1.10.4 87 8/23/2023
7.1.10.3 94 8/20/2023
7.1.10.2 85 8/20/2023
7.1.10.1 85 8/20/2023
7.0.10.4 97 8/18/2023
7.0.10.3 87 8/17/2023
7.0.10.2 88 8/16/2023
7.0.10.1 107 8/9/2023
7.0.9.3 104 8/2/2023
7.0.9.2 92 8/2/2023
7.0.9.1 98 8/2/2023
7.0.8.2 108 7/11/2023
7.0.8.1 182 6/27/2023
7.0.7.3 172 6/21/2023
7.0.7.2 169 6/19/2023
7.0.7.1 171 6/14/2023
7.0.5.11 192 6/13/2023
7.0.5.10 170 6/12/2023
7.0.5.9 167 6/12/2023
7.0.5.8 170 5/26/2023
7.0.5.7 166 5/26/2023
7.0.5.6 162 5/22/2023
7.0.5.5 177 5/18/2023
7.0.5.4 181 5/18/2023
7.0.5.3 231 4/22/2023
7.0.5.2 224 4/13/2023
7.0.5.1 213 4/13/2023
7.0.5 202 4/13/2023
7.0.4 258 3/30/2023
7.0.3 281 3/6/2023
7.0.2 341 2/2/2023
7.0.1 357 12/19/2022
7.0.0 458 11/14/2022
6.0.54 441 10/21/2022
6.0.53 432 10/20/2022
6.0.52 412 10/6/2022
6.0.51 423 10/5/2022
6.0.50 433 9/30/2022
6.0.49 505 9/27/2022
6.0.48 482 9/22/2022
6.0.47 495 9/20/2022
6.0.46 494 8/27/2022
6.0.45 529 8/26/2022
6.0.44 477 8/26/2022
6.0.43 507 8/23/2022
6.0.42 471 8/23/2022
6.0.41 498 8/16/2022
6.0.40 484 8/16/2022
6.0.39 510 8/4/2022
6.0.38 510 8/4/2022
6.0.37 519 8/4/2022
6.0.36 483 8/4/2022
6.0.35 476 8/4/2022
6.0.34 517 8/3/2022
6.0.33 497 8/3/2022
6.0.32 543 8/3/2022
6.0.31 504 8/3/2022
6.0.29 566 7/22/2022
6.0.28 546 7/14/2022
6.0.27 552 7/12/2022
6.0.26 567 7/12/2022
6.0.25 560 6/23/2022
6.0.24 560 6/23/2022
6.0.23 517 6/22/2022
6.0.22 530 6/22/2022
6.0.21 513 6/21/2022
6.0.20 565 5/26/2022
6.0.19 539 5/13/2022
6.0.17 595 5/10/2022
6.0.16 587 4/27/2022
6.0.15 630 3/18/2022
6.0.14 571 3/16/2022
6.0.13 641 2/25/2022
6.0.12 619 2/25/2022
6.0.11 635 2/2/2022
6.0.10 645 1/24/2022
6.0.9 635 1/24/2022
6.0.8 609 1/24/2022
6.0.7 650 1/24/2022
6.0.6 622 1/20/2022
6.0.5 646 1/19/2022
6.0.4 378 12/30/2021
6.0.3 517 12/14/2021
6.0.2 409 12/14/2021
6.0.1 618 11/30/2021
6.0.0 2,298 11/26/2021
6.0.0-rc3 234 11/16/2021
6.0.0-rc2 213 11/15/2021
6.0.0-rc1 277 11/10/2021
5.0.41 552 10/31/2021
5.0.40 561 10/20/2021
5.0.39 593 10/8/2021
5.0.35 558 10/6/2021
5.0.34 534 10/6/2021
5.0.33 525 10/5/2021
5.0.32 475 10/5/2021
5.0.31 563 10/4/2021
5.0.30 454 10/4/2021
5.0.29 630 10/2/2021
5.0.28 572 10/2/2021
5.0.27 515 10/2/2021
5.0.26 459 10/2/2021
5.0.25 501 9/28/2021
5.0.24 529 9/22/2021
5.0.23 607 9/11/2021
5.0.22 566 9/10/2021
5.0.21 533 8/29/2021
5.0.20 548 8/9/2021
5.0.19 602 7/21/2021
5.0.18 589 1/10/2021
5.0.17 579 12/30/2020
5.0.16 604 12/21/2020
5.0.15 641 12/19/2020
5.0.14 632 12/19/2020
5.0.13 666 12/18/2020
5.0.12 594 12/12/2020
5.0.11 586 12/10/2020
5.0.10 547 12/9/2020
5.0.9 550 12/9/2020
5.0.8 572 12/9/2020
5.0.7 578 12/9/2020
5.0.6 638 12/7/2020
5.0.5 517 12/7/2020
5.0.4 580 12/7/2020
5.0.3 610 11/24/2020
5.0.2 629 11/24/2020
5.0.1 598 11/18/2020
5.0.0 654 11/14/2020