Pipoburgos.SharedKernel.Infrastructure 7.0.0

.NET 5.0 .NET Core 3.1 .NET Standard 2.1 .NET Framework 4.6.1
dotnet add package Pipoburgos.SharedKernel.Infrastructure --version 7.0.0
NuGet\Install-Package Pipoburgos.SharedKernel.Infrastructure -Version 7.0.0
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.0" />
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.0
#r "nuget: Pipoburgos.SharedKernel.Infrastructure, 7.0.0"
#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.0

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

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
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
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.0 117 11/14/2022
6.0.54 195 10/21/2022
6.0.53 198 10/20/2022
6.0.52 209 10/6/2022
6.0.51 211 10/5/2022
6.0.50 250 9/30/2022
6.0.49 294 9/27/2022
6.0.48 283 9/22/2022
6.0.47 301 9/20/2022
6.0.46 333 8/27/2022
6.0.45 332 8/26/2022
6.0.44 309 8/26/2022
6.0.43 333 8/23/2022
6.0.42 306 8/23/2022
6.0.41 340 8/16/2022
6.0.40 338 8/16/2022
6.0.39 340 8/4/2022
6.0.38 323 8/4/2022
6.0.37 307 8/4/2022
6.0.36 321 8/4/2022
6.0.35 307 8/4/2022
6.0.34 331 8/3/2022
6.0.33 329 8/3/2022
6.0.32 338 8/3/2022
6.0.31 333 8/3/2022
6.0.29 384 7/22/2022
6.0.28 368 7/14/2022
6.0.27 367 7/12/2022
6.0.26 370 7/12/2022
6.0.25 389 6/23/2022
6.0.24 401 6/23/2022
6.0.23 363 6/22/2022
6.0.22 359 6/22/2022
6.0.21 353 6/21/2022
6.0.20 410 5/26/2022
6.0.19 387 5/13/2022
6.0.17 425 5/10/2022
6.0.16 427 4/27/2022
6.0.15 491 3/18/2022
6.0.14 460 3/16/2022
6.0.13 557 2/25/2022
6.0.12 504 2/25/2022
6.0.11 555 2/2/2022
6.0.10 519 1/24/2022
6.0.9 522 1/24/2022
6.0.8 503 1/24/2022
6.0.7 514 1/24/2022
6.0.6 520 1/20/2022
6.0.5 557 1/19/2022
6.0.4 528 12/30/2021
6.0.3 507 12/14/2021
6.0.2 480 12/14/2021
6.0.1 463 11/30/2021
6.0.0 2,099 11/26/2021
6.0.0-rc3 115 11/16/2021
6.0.0-rc2 103 11/15/2021
6.0.0-rc1 225 11/10/2021
5.0.41 603 10/31/2021
5.0.40 524 10/20/2021
5.0.39 565 10/8/2021
5.0.35 592 10/6/2021
5.0.34 569 10/6/2021
5.0.33 532 10/5/2021
5.0.32 513 10/5/2021
5.0.31 558 10/4/2021
5.0.30 446 10/4/2021
5.0.29 603 10/2/2021
5.0.28 555 10/2/2021
5.0.27 542 10/2/2021
5.0.26 485 10/2/2021
5.0.25 500 9/28/2021
5.0.24 494 9/22/2021
5.0.23 603 9/11/2021
5.0.22 565 9/10/2021
5.0.21 551 8/29/2021
5.0.20 545 8/9/2021
5.0.19 610 7/21/2021
5.0.18 629 1/10/2021
5.0.17 556 12/30/2020
5.0.16 579 12/21/2020
5.0.15 622 12/19/2020
5.0.14 617 12/19/2020
5.0.13 629 12/18/2020
5.0.12 567 12/12/2020
5.0.11 563 12/10/2020
5.0.10 550 12/9/2020
5.0.9 510 12/9/2020
5.0.8 489 12/9/2020
5.0.7 532 12/9/2020
5.0.6 588 12/7/2020
5.0.5 534 12/7/2020
5.0.4 564 12/7/2020
5.0.3 586 11/24/2020
5.0.2 584 11/24/2020
5.0.1 550 11/18/2020
5.0.0 562 11/14/2020