mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
// ==========================================================================
|
|
// WriteModule.cs
|
|
// PinkParrot Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) PinkParrot Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using Autofac;
|
|
using PinkParrot.Infrastructure.CQRS.Commands;
|
|
using PinkParrot.Pipeline.CommandHandlers;
|
|
using PinkParrot.Write.Apps;
|
|
using PinkParrot.Write.Schemas;
|
|
|
|
namespace PinkParrot.Configurations
|
|
{
|
|
public class WriteModule : Module
|
|
{
|
|
protected override void Load(ContainerBuilder builder)
|
|
{
|
|
builder.RegisterType<EnrichWithAggregateIdHandler>()
|
|
.As<ICommandHandler>()
|
|
.SingleInstance();
|
|
|
|
builder.RegisterType<EnrichWithAppIdHandler>()
|
|
.As<ICommandHandler>()
|
|
.SingleInstance();
|
|
|
|
builder.RegisterType<AppCommandHandler>()
|
|
.As<ICommandHandler>()
|
|
.SingleInstance();
|
|
|
|
builder.RegisterType<AppDomainObject>()
|
|
.AsSelf()
|
|
.InstancePerDependency();
|
|
|
|
builder.RegisterType<SchemaCommandHandler>()
|
|
.As<ICommandHandler>()
|
|
.SingleInstance();
|
|
|
|
builder.RegisterType<SchemaDomainObject>()
|
|
.AsSelf()
|
|
.InstancePerDependency();
|
|
}
|
|
}
|
|
}
|
|
|