AkkaOfEmpires.ConsoleUI.Program.GetDependencyContainer C# (CSharp) Method

GetDependencyContainer() static private method

static private GetDependencyContainer ( ActorSystem actorSystem ) : IContainer
actorSystem ActorSystem
return IContainer
        static IContainer GetDependencyContainer(ActorSystem actorSystem)
        {
            var container = new Container(c =>
            {
                c.For<ISubroutinesFactory>().Use<ConsoleSubroutinesFactory>();
                c.ForSingletonOf<ISupervisorsFactory>()
                    .Use<ConsoleSupervisorsFactory>()
                    .Ctor<ActorSystem>()
                    .Is(actorSystem);
            });
            return container;
        }