コード例 #1
0
        public static Infrastructure.IContainer Bootstrap()
        {
            var container = new AutofacContainer(
                builder =>
                {
                    builder.RegisterModule<ScramblerModule>();
                });

            container.Add((Infrastructure.IContainer)container);

            //ServiceLocator.SetContainer(container);

            return container;
        }