Pipoburgos.SharedKernel.Infrastructure 7.0.2

.NET 6.0 .NET Standard 2.1
dotnet add package Pipoburgos.SharedKernel.Infrastructure --version 7.0.2
NuGet\Install-Package Pipoburgos.SharedKernel.Infrastructure -Version 7.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.Infrastructure" Version="7.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pipoburgos.SharedKernel.Infrastructure --version 7.0.2
#r "nuget: Pipoburgos.SharedKernel.Infrastructure, 7.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pipoburgos.SharedKernel.Infrastructure as a Cake Addin
#addin nuget:?package=Pipoburgos.SharedKernel.Infrastructure&version=7.0.2

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

The following code demonstrates basic usage of Shared Kernel Infastructure.

appsettings.json for mongo connection

{
  "MongoSettings": {
    "ConnectionString": "mongodb://localhost:27017",
    "Database": "XXX"
  }
}
namespace XXX.Infrastructure
{
    public static class XXXModule
    {
        public static IServiceCollection AddXXXModule(this IServiceCollection services,
            IConfiguration configuration, string connectionStringName)
        {
            return services
                .AddAutoMapper(new XXXAutoMapperProfile(), typeof(ApplicationCommandHandler).Assembly,
                    typeof(UserRegistered).Assembly,
                    typeof(XXXDbContext).Assembly)
                .AddDomainEvents(typeof(XXXEvent))
                .AddDomainEventsSubscribers(typeof(XXXEventSusbcriber))
                .AddCommandsHandlers(typeof(ApplicationCommandHandler))
                .AddQueriesHandlers(typeof(InfrastructureQueryHandler))
                .AddDapperSqlServer<XXXDbContext>(configuration, connectionStringName)
                .AddEntityFrameworkCoreSqlServer<XXXDbContext>(configuration, connectionStringName)
                .AddMongo(configuration)
                .AddApplicationServices()
                .AddDomainServices()
                .AddRepositories();
        }

        private static IServiceCollection AddApplicationServices(this IServiceCollection services)
        {
            return services
                .AddTransient<SampleApplicationService>();
        }
        
        private static IServiceCollection AddDomainServices(this IServiceCollection services)
        {
            return services
                .AddTransient<SampleDomainService>();
        }

        private static IServiceCollection AddRepositories(this IServiceCollection services)
        {
            return services
                .AddTransient<IXXXRepository, XXXMongoRepository>();
                .AddTransient<IXXXRepository, XXXEntityFrameworkCoreRepository>();
        }
    }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pipoburgos.SharedKernel.Infrastructure:

Package Downloads
Pipoburgos.SharedKernel.Api

C# DDD Distributed Services Layer

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.2 38 2/2/2023
7.0.1 130 12/19/2022
7.0.0 253 11/14/2022
6.0.54 335 10/21/2022
6.0.53 350 10/20/2022
6.0.52 328 10/6/2022
6.0.51 335 10/5/2022
6.0.50 373 9/30/2022
6.0.49 420 9/27/2022
6.0.48 416 9/22/2022
6.0.47 427 9/20/2022
6.0.46 452 8/27/2022
6.0.45 456 8/26/2022
6.0.44 429 8/26/2022
6.0.43 453 8/23/2022
6.0.42 421 8/23/2022
6.0.41 458 8/16/2022
6.0.40 468 8/16/2022
6.0.39 472 8/4/2022
6.0.38 448 8/4/2022
6.0.37 427 8/4/2022
6.0.36 444 8/4/2022
6.0.35 430 8/4/2022
6.0.34 460 8/3/2022
6.0.33 446 8/3/2022
6.0.32 461 8/3/2022
6.0.31 447 8/3/2022
6.0.29 507 7/22/2022
6.0.28 488 7/14/2022
6.0.27 490 7/12/2022
6.0.26 496 7/12/2022
6.0.25 505 6/23/2022
6.0.24 515 6/23/2022
6.0.23 479 6/22/2022
6.0.22 479 6/22/2022
6.0.21 473 6/21/2022
6.0.20 519 5/26/2022
6.0.19 515 5/13/2022
6.0.17 554 5/10/2022
6.0.16 551 4/27/2022
6.0.15 617 3/18/2022
6.0.14 575 3/16/2022
6.0.13 674 2/25/2022
6.0.12 624 2/25/2022
6.0.11 682 2/2/2022
6.0.10 641 1/24/2022
6.0.9 646 1/24/2022
6.0.8 619 1/24/2022
6.0.7 639 1/24/2022
6.0.6 632 1/20/2022
6.0.5 675 1/19/2022
6.0.4 552 12/30/2021
6.0.3 590 12/14/2021
6.0.2 563 12/14/2021
6.0.1 583 11/30/2021
6.0.0 2,227 11/26/2021
6.0.0-rc3 121 11/16/2021
6.0.0-rc2 108 11/15/2021
6.0.0-rc1 229 11/10/2021
5.0.41 639 10/31/2021
5.0.40 565 10/20/2021
5.0.39 597 10/8/2021
5.0.35 629 10/6/2021
5.0.34 611 10/6/2021
5.0.33 571 10/5/2021
5.0.32 538 10/5/2021
5.0.31 587 10/4/2021
5.0.30 474 10/4/2021
5.0.29 629 10/2/2021
5.0.28 581 10/2/2021
5.0.27 569 10/2/2021
5.0.26 511 10/2/2021
5.0.25 528 9/28/2021
5.0.24 518 9/22/2021
5.0.23 632 9/11/2021
5.0.22 597 9/10/2021
5.0.21 577 8/29/2021
5.0.20 572 8/9/2021
5.0.19 643 7/21/2021
5.0.18 662 1/10/2021
5.0.17 591 12/30/2020
5.0.16 622 12/21/2020
5.0.15 655 12/19/2020
5.0.14 652 12/19/2020
5.0.13 662 12/18/2020
5.0.12 600 12/12/2020
5.0.11 590 12/10/2020
5.0.10 578 12/9/2020
5.0.9 532 12/9/2020
5.0.8 515 12/9/2020
5.0.7 565 12/9/2020
5.0.6 626 12/7/2020
5.0.5 561 12/7/2020
5.0.4 590 12/7/2020
5.0.3 617 11/24/2020
5.0.2 611 11/24/2020
5.0.1 581 11/18/2020
5.0.0 600 11/14/2020