🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

Pipoburgos.SharedKernel.Infrastructure

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Pipoburgos.SharedKernel.Infrastructure

C# DDD Infrastructure Layer

9.0.6.1
NuGet
Version published
Maintainers
1
Created
Source

The following code demonstrates basic usage of Shared Kernel Infastructure.

namespace XXX.Infrastructure;

public static class XXXModule
{
    public static IServiceCollection AddSharedKernelXXXModule(this IServiceCollection services,
        IConfiguration configuration, string connectionStringName)
    {
        return services
            .AddSharedKernel()
            .AddInMemoryCache()
            .AddDomainEventsSubscribers(typeof(InfrastructureAssembly), typeof(DomainAssembly)
            .AddCommandsHandlers(typeof(ApplicationAssembly))
            .AddInMemoryCommandBus()
            .AddQueriesHandlers(typeof(InfrastructureAssembly))
            .AddInMemoryQueryBus()
            .AddActiveDirectory()
            .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>();
    }
}

Keywords

C#

FAQs

Package last updated on 16 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts