<commit_before>﻿using Autofac;
using Chassis.Features;
using Chassis.Types;

namespace Chassis.Startup
{
    public class StartupFeature : Feature
    {
        public override void RegisterComponents(ContainerBuilder builder, TypePool pool)
        {
            builder.RegisterType<StartupBootstrapper>()
                .SingleInstance()
                .AsSelf();

            var actions = pool.FindImplementorsOf<IStartupStep>();

            foreach (var action in actions)
            {
                builder.RegisterType(action)
                    .As<IStartupStep>()
                    .AsSelf();
            }

            var webActions = pool.FindImplementorsOf<IWebStartupStep>();

            foreach (var action in webActions)
            {
                builder.RegisterType(action)
                    .As<IWebStartupStep>()
                    .AsSelf();<commit_msg>Change Scope to support multi-tenant scenarios<commit_after>﻿using Autofac;
using Chassis.Features;
using Chassis.Types;

namespace Chassis.Startup
{
    public class StartupFeature : Feature
    {
        public override void RegisterComponents(ContainerBuilder builder, TypePool pool)
        {
            builder.RegisterType<StartupBootstrapper>()
                .InstancePerLifetimeScope()
                .AsSelf();

            var actions = pool.FindImplementorsOf<IStartupStep>();

            foreach (var action in actions)
            {
                builder.RegisterType(action)
                    .As<IStartupStep>()
                    .AsSelf();
            }

            var webActions = pool.FindImplementorsOf<IWebStartupStep>();

            foreach (var action in webActions)
            {
                builder.RegisterType(action)
                    .As<IWebStartupStep>()
                    .AsSelf();
{'fraction_non_alphanumeric': 0.0815544608648057, 'fraction_numerical': 0.0, 'mean_word_length': 1.7001477104874445, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1771212', 'n_tokens_mistral': 460, 'n_tokens_neox': 434, 'n_words': 92}