Pipoburgos.SharedKernel.Api 8.0.10.2

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.10.2                
NuGet\Install-Package Pipoburgos.SharedKernel.Api -Version 8.0.10.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.10.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.10.2                
#r "nuget: Pipoburgos.SharedKernel.Api, 8.0.10.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.10.2

// Install Pipoburgos.SharedKernel.Api as a Cake Tool
#tool nuget:?package=Pipoburgos.SharedKernel.Api&version=8.0.10.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
9.0.0.3 37 11/27/2024
9.0.0.2 84 11/17/2024
9.0.0.1 81 11/16/2024
8.0.10.3 97 11/5/2024
8.0.10.2 100 11/1/2024
8.0.10.1 102 10/16/2024
8.0.7.3 127 7/27/2024
8.0.7.2 124 7/15/2024
8.0.6.2 155 6/5/2024
8.0.6.1 170 5/30/2024
8.0.5.1 175 5/14/2024
8.0.4.8 140 5/11/2024
8.0.4.7 130 5/1/2024
8.0.4.6 125 4/29/2024
8.0.4.5 137 4/27/2024
8.0.4.4 133 4/27/2024
8.0.4.3 136 4/26/2024
8.0.4.2 109 4/26/2024
8.0.4.1 172 4/20/2024
8.0.3.5 217 3/25/2024
8.0.3.4 170 3/14/2024
8.0.3.3 127 3/14/2024
8.0.3.2 125 3/13/2024
8.0.3.1 130 3/13/2024
8.0.2.6 144 2/15/2024
8.0.2.5 139 2/15/2024
8.0.2.4 133 2/15/2024
8.0.2.3 129 2/14/2024
8.0.2.2 120 2/14/2024
8.0.2.1 138 2/14/2024
8.0.0.8 231 1/29/2024
8.0.0.7 131 1/26/2024
8.0.0.6 125 1/26/2024
8.0.0.5 192 1/16/2024
8.0.0.4 174 12/29/2023
8.0.0.3 165 12/21/2023
8.0.0.2 146 12/13/2023
8.0.0.2-rc.3 134 10/25/2023
8.0.0.2-rc.2 71 10/5/2023
8.0.0.1 124 11/19/2023
8.0.0.1-rc.1 67 9/25/2023
8.0.0 122 11/15/2023
7.3.13.1 103 10/25/2023
7.3.11.4 116 10/9/2023
7.3.11.3 104 10/5/2023
7.3.11.2 119 9/21/2023
7.3.11.1 112 9/13/2023
7.3.10.1 105 9/11/2023
7.2.10.3 129 9/6/2023
7.2.10.2 120 9/1/2023
7.2.10.1 143 8/29/2023
7.1.10.5 103 8/24/2023
7.1.10.4 103 8/23/2023
7.1.10.3 110 8/20/2023
7.1.10.2 99 8/20/2023
7.1.10.1 107 8/20/2023
7.0.10.4 112 8/18/2023
7.0.10.3 103 8/17/2023
7.0.10.2 109 8/16/2023
7.0.10.1 120 8/9/2023
7.0.9.3 116 8/2/2023
7.0.9.2 109 8/2/2023
7.0.9.1 110 8/2/2023
7.0.8.2 122 7/11/2023
7.0.8.1 213 6/27/2023
7.0.7.3 200 6/21/2023
7.0.7.2 199 6/19/2023
7.0.7.1 212 6/14/2023
7.0.5.11 222 6/13/2023
7.0.5.10 208 6/12/2023
7.0.5.9 199 6/12/2023
7.0.5.8 194 5/26/2023
7.0.5.7 191 5/26/2023
7.0.5.6 197 5/22/2023
7.0.5.5 211 5/18/2023
7.0.5.4 211 5/18/2023
7.0.5.3 271 4/22/2023
7.0.5.2 254 4/13/2023
7.0.5.1 246 4/13/2023
7.0.5 234 4/13/2023
7.0.4 288 3/30/2023
7.0.3 308 3/6/2023
7.0.2 397 2/2/2023
7.0.1 392 12/19/2022
7.0.0 501 11/14/2022
6.0.54 477 10/21/2022
6.0.53 464 10/20/2022
6.0.52 449 10/6/2022
6.0.51 451 10/5/2022
6.0.50 462 9/30/2022
6.0.49 537 9/27/2022
6.0.48 512 9/22/2022
6.0.47 525 9/20/2022
6.0.46 529 8/27/2022
6.0.45 563 8/26/2022
6.0.44 506 8/26/2022
6.0.43 548 8/23/2022
6.0.42 502 8/23/2022
6.0.41 524 8/16/2022
6.0.40 511 8/16/2022
6.0.39 542 8/4/2022
6.0.38 548 8/4/2022
6.0.37 554 8/4/2022
6.0.36 520 8/4/2022
6.0.35 509 8/4/2022
6.0.34 544 8/3/2022
6.0.33 530 8/3/2022
6.0.32 577 8/3/2022
6.0.31 537 8/3/2022
6.0.29 596 7/22/2022
6.0.28 574 7/14/2022
6.0.27 602 7/12/2022
6.0.26 596 7/12/2022
6.0.25 594 6/23/2022
6.0.24 596 6/23/2022
6.0.23 550 6/22/2022
6.0.22 569 6/22/2022
6.0.21 574 6/21/2022
6.0.20 598 5/26/2022
6.0.19 570 5/13/2022
6.0.17 625 5/10/2022
6.0.16 616 4/27/2022
6.0.15 659 3/18/2022
6.0.14 598 3/16/2022
6.0.13 674 2/25/2022
6.0.12 645 2/25/2022
6.0.11 663 2/2/2022
6.0.10 671 1/24/2022
6.0.9 662 1/24/2022
6.0.8 649 1/24/2022
6.0.7 686 1/24/2022
6.0.6 658 1/20/2022
6.0.5 681 1/19/2022
6.0.4 417 12/30/2021
6.0.3 546 12/14/2021
6.0.2 442 12/14/2021
6.0.1 656 11/30/2021
6.0.0 2,341 11/26/2021
6.0.0-rc3 258 11/16/2021
6.0.0-rc2 249 11/15/2021
6.0.0-rc1 307 11/10/2021
5.0.41 580 10/31/2021
5.0.40 597 10/20/2021
5.0.39 619 10/8/2021
5.0.35 588 10/6/2021
5.0.34 560 10/6/2021
5.0.33 553 10/5/2021
5.0.32 510 10/5/2021
5.0.31 597 10/4/2021
5.0.30 481 10/4/2021
5.0.29 667 10/2/2021
5.0.28 607 10/2/2021
5.0.27 546 10/2/2021
5.0.26 491 10/2/2021
5.0.25 535 9/28/2021
5.0.24 567 9/22/2021
5.0.23 642 9/11/2021
5.0.22 594 9/10/2021
5.0.21 562 8/29/2021
5.0.20 582 8/9/2021
5.0.19 634 7/21/2021
5.0.18 620 1/10/2021
5.0.17 622 12/30/2020
5.0.16 631 12/21/2020
5.0.15 672 12/19/2020
5.0.14 661 12/19/2020
5.0.13 699 12/18/2020
5.0.12 627 12/12/2020
5.0.11 613 12/10/2020
5.0.10 577 12/9/2020
5.0.9 589 12/9/2020
5.0.8 611 12/9/2020
5.0.7 613 12/9/2020
5.0.6 674 12/7/2020
5.0.5 551 12/7/2020
5.0.4 616 12/7/2020
5.0.3 645 11/24/2020
5.0.2 664 11/24/2020
5.0.1 633 11/18/2020
5.0.0 688 11/14/2020