<commit_before>﻿using System.Diagnostics;
using Microsoft.Azure.WebJobs;
using SFA.DAS.EAS.Account.Worker.Infrastructure;
using SFA.DAS.EAS.Account.Worker.Infrastructure.Interfaces;
using SFA.DAS.EAS.Application.DependencyResolution;
using SFA.DAS.EAS.Application.Hashing;
using SFA.DAS.EAS.Application.Validation;
using SFA.DAS.EAS.Domain.Configuration;
using SFA.DAS.EAS.Domain.Interfaces;
using SFA.DAS.EAS.Infrastructure.Caching;
using SFA.DAS.EAS.Infrastructure.DependencyResolution;
using SFA.DAS.NLog.Logger;
using StructureMap;

namespace SFA.DAS.EAS.Account.Worker.DependencyResolution
{
    public static class IoC
    {
        private const string ServiceName = "SFA.DAS.EmployerApprenticeshipsService";

        public static IContainer Initialize()
        {
            return new Container(c =>
            {
                c.AddRegistry<DefaultRegistry>();
                c.AddRegistry<ConfigurationRegistry>();
                c.AddRegistry<LoggerRegistry>();
                c.AddRegistry<HashingRegistry>();
                c.AddRegistry<CachesRegistry>();
                c.AddRegistry<MapperRegistry>();
                c.AddRegistry<MediatorRegistry>();
                c.AddRegistry<ValidationRegistry>();

                c.ForConcreteType<DasWebJobTraceWriter>().Configure.Ctor<TraceLevel>().Is(TraceLevel.Verbose);
            });
        }
    }
}<commit_msg>Fixed a bug where messages couldnt be published from the account worker<commit_after>﻿using System.Diagnostics;
using SFA.DAS.EAS.Account.Worker.Infrastructure;
using SFA.DAS.EAS.Application.DependencyResolution;
using StructureMap;

namespace SFA.DAS.EAS.Account.Worker.DependencyResolution
{
    public static class IoC
    {
        public static IContainer Initialize()
        {
            return new Container(c =>
            {
                c.AddRegistry<DefaultRegistry>();
                c.AddRegistry<ConfigurationRegistry>();
                c.AddRegistry<LoggerRegistry>();
                c.AddRegistry<HashingRegistry>();
                c.AddRegistry<CachesRegistry>();
                c.AddRegistry<MapperRegistry>();
                c.AddRegistry<MediatorRegistry>();
                c.AddRegistry<MessagePublisherRegistry>();
                c.AddRegistry<ValidationRegistry>();
                c.ForConcreteType<DasWebJobTraceWriter>().Configure.Ctor<TraceLevel>().Is(TraceLevel.Verbose);
            });
        }
    }
}
{'fraction_non_alphanumeric': 0.10677618069815195, 'fraction_numerical': 0.0, 'mean_word_length': 2.652173913043478, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 26, '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': '3137178', 'n_tokens_mistral': 691, 'n_tokens_neox': 660, 'n_words': 95}