private static void ConfigureIoc()
        {
            var collection = new ServiceCollection();

            collection.AddSingleton <IDummyService, DummyService>();
            var serviceProvider = collection.BuildServiceProvider();

            HttpRuntime.WebObjectActivator = IocFactory.CreateServiceProvider(ContainerType, serviceProvider);
        }
        private static void ConfigureIoc()
        {
            var builder = new ContainerBuilder();

            builder.RegisterSource(new AutofacRegistrationSource());
            builder.RegisterType <DummyService>().As <IDummyService>().SingleInstance();
            var container = builder.Build();

            HttpRuntime.WebObjectActivator = IocFactory.CreateServiceProvider(ContainerType, container);
        }