internal FeaturePartition(IPartitionSchemaRegister schemaRegister, IServiceExtensionProvider serviceExtensionProvider, ILogger logger) { SchemaRegister = schemaRegister; this.ServiceExtensionProvider = serviceExtensionProvider; Logger = logger.ForContext("FeatureName", schemaRegister.PartitionName); _aggregates = new Lazy <AggregateConfig>(() => WriteThrough(new AggregateConfig(this))); _processors = new Lazy <ProcessorsConfig>(() => WriteThrough(new ProcessorsConfig(this))); _projections = new Lazy <ProjectionsConfig>(() => WriteThrough(new ProjectionsConfig(this))); _commands = new Lazy <CommandsConfig>(() => WriteThrough(new CommandsConfig(this))); _queries = new Lazy <QueryConfig>(() => WriteThrough(new QueryConfig(this))); _events = new Lazy <EventsConfig>(() => WriteThrough(new EventsConfig(this))); Configs = new List <IStageConfig>(); }
public void Register(IServiceExtensionProvider services) { services.AddExtension <CarterModuleFactory>(_factory); }