Pipoburgos.SharedKernel.Api 9.0.0.2

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

// Install Pipoburgos.SharedKernel.Api as a Cake Tool
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=9.0.0.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 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. 
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.0.2 75 11/17/2024
9.0.0.1 75 11/16/2024
8.0.10.3 89 11/5/2024
8.0.10.2 92 11/1/2024
8.0.10.1 98 10/16/2024
8.0.7.3 121 7/27/2024
8.0.7.2 120 7/15/2024
8.0.6.2 151 6/5/2024
8.0.6.1 164 5/30/2024
8.0.5.1 169 5/14/2024
8.0.4.8 136 5/11/2024
8.0.4.7 126 5/1/2024
8.0.4.6 121 4/29/2024
8.0.4.5 133 4/27/2024
8.0.4.4 129 4/27/2024
8.0.4.3 132 4/26/2024
8.0.4.2 105 4/26/2024
8.0.4.1 168 4/20/2024
8.0.3.5 213 3/25/2024
8.0.3.4 166 3/14/2024
8.0.3.3 123 3/14/2024
8.0.3.2 121 3/13/2024
8.0.3.1 126 3/13/2024
8.0.2.6 140 2/15/2024
8.0.2.5 135 2/15/2024
8.0.2.4 129 2/15/2024
8.0.2.3 125 2/14/2024
8.0.2.2 116 2/14/2024
8.0.2.1 134 2/14/2024
8.0.0.8 227 1/29/2024
8.0.0.7 127 1/26/2024
8.0.0.6 121 1/26/2024
8.0.0.5 188 1/16/2024
8.0.0.4 170 12/29/2023
8.0.0.3 161 12/21/2023
8.0.0.2 142 12/13/2023
8.0.0.2-rc.3 132 10/25/2023
8.0.0.2-rc.2 69 10/5/2023
8.0.0.1 120 11/19/2023
8.0.0.1-rc.1 65 9/25/2023
8.0.0 118 11/15/2023
7.3.13.1 99 10/25/2023
7.3.11.4 112 10/9/2023
7.3.11.3 100 10/5/2023
7.3.11.2 115 9/21/2023
7.3.11.1 108 9/13/2023
7.3.10.1 101 9/11/2023
7.2.10.3 125 9/6/2023
7.2.10.2 116 9/1/2023
7.2.10.1 139 8/29/2023
7.1.10.5 99 8/24/2023
7.1.10.4 99 8/23/2023
7.1.10.3 106 8/20/2023
7.1.10.2 95 8/20/2023
7.1.10.1 103 8/20/2023
7.0.10.4 108 8/18/2023
7.0.10.3 99 8/17/2023
7.0.10.2 105 8/16/2023
7.0.10.1 116 8/9/2023
7.0.9.3 112 8/2/2023
7.0.9.2 105 8/2/2023
7.0.9.1 106 8/2/2023
7.0.8.2 118 7/11/2023
7.0.8.1 209 6/27/2023
7.0.7.3 196 6/21/2023
7.0.7.2 195 6/19/2023
7.0.7.1 208 6/14/2023
7.0.5.11 218 6/13/2023
7.0.5.10 204 6/12/2023
7.0.5.9 195 6/12/2023
7.0.5.8 190 5/26/2023
7.0.5.7 187 5/26/2023
7.0.5.6 193 5/22/2023
7.0.5.5 207 5/18/2023
7.0.5.4 207 5/18/2023
7.0.5.3 267 4/22/2023
7.0.5.2 250 4/13/2023
7.0.5.1 242 4/13/2023
7.0.5 230 4/13/2023
7.0.4 284 3/30/2023
7.0.3 304 3/6/2023
7.0.2 390 2/2/2023
7.0.1 388 12/19/2022
7.0.0 497 11/14/2022
6.0.54 473 10/21/2022
6.0.53 460 10/20/2022
6.0.52 445 10/6/2022
6.0.51 447 10/5/2022
6.0.50 458 9/30/2022
6.0.49 533 9/27/2022
6.0.48 508 9/22/2022
6.0.47 521 9/20/2022
6.0.46 525 8/27/2022
6.0.45 559 8/26/2022
6.0.44 502 8/26/2022
6.0.43 544 8/23/2022
6.0.42 498 8/23/2022
6.0.41 520 8/16/2022
6.0.40 507 8/16/2022
6.0.39 538 8/4/2022
6.0.38 544 8/4/2022
6.0.37 550 8/4/2022
6.0.36 516 8/4/2022
6.0.35 505 8/4/2022
6.0.34 540 8/3/2022
6.0.33 526 8/3/2022
6.0.32 573 8/3/2022
6.0.31 533 8/3/2022
6.0.29 592 7/22/2022
6.0.28 570 7/14/2022
6.0.27 598 7/12/2022
6.0.26 592 7/12/2022
6.0.25 590 6/23/2022
6.0.24 592 6/23/2022
6.0.23 546 6/22/2022
6.0.22 565 6/22/2022
6.0.21 570 6/21/2022
6.0.20 594 5/26/2022
6.0.19 566 5/13/2022
6.0.17 621 5/10/2022
6.0.16 612 4/27/2022
6.0.15 655 3/18/2022
6.0.14 594 3/16/2022
6.0.13 670 2/25/2022
6.0.12 641 2/25/2022
6.0.11 659 2/2/2022
6.0.10 667 1/24/2022
6.0.9 658 1/24/2022
6.0.8 645 1/24/2022
6.0.7 682 1/24/2022
6.0.6 654 1/20/2022
6.0.5 677 1/19/2022
6.0.4 413 12/30/2021
6.0.3 542 12/14/2021
6.0.2 438 12/14/2021
6.0.1 652 11/30/2021
6.0.0 2,335 11/26/2021
6.0.0-rc3 256 11/16/2021
6.0.0-rc2 247 11/15/2021
6.0.0-rc1 305 11/10/2021
5.0.41 576 10/31/2021
5.0.40 593 10/20/2021
5.0.39 615 10/8/2021
5.0.35 584 10/6/2021
5.0.34 556 10/6/2021
5.0.33 549 10/5/2021
5.0.32 506 10/5/2021
5.0.31 593 10/4/2021
5.0.30 477 10/4/2021
5.0.29 663 10/2/2021
5.0.28 603 10/2/2021
5.0.27 542 10/2/2021
5.0.26 487 10/2/2021
5.0.25 531 9/28/2021
5.0.24 563 9/22/2021
5.0.23 636 9/11/2021
5.0.22 590 9/10/2021
5.0.21 558 8/29/2021
5.0.20 578 8/9/2021
5.0.19 630 7/21/2021
5.0.18 616 1/10/2021
5.0.17 618 12/30/2020
5.0.16 625 12/21/2020
5.0.15 668 12/19/2020
5.0.14 657 12/19/2020
5.0.13 695 12/18/2020
5.0.12 623 12/12/2020
5.0.11 609 12/10/2020
5.0.10 573 12/9/2020
5.0.9 585 12/9/2020
5.0.8 607 12/9/2020
5.0.7 609 12/9/2020
5.0.6 670 12/7/2020
5.0.5 547 12/7/2020
5.0.4 612 12/7/2020
5.0.3 641 11/24/2020
5.0.2 660 11/24/2020
5.0.1 629 11/18/2020
5.0.0 682 11/14/2020