Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine(Appconstant.WelcomeString);

            var componentContainer = AppFac.Setup();

            var controlCenter = componentContainer.GetInstance <IControlCenter>();

            while (true)
            {
                var instructions = GetUserInstruction().ToLower();

                if (instructions != Appconstant.AppExitCommandString)
                {
                    controlCenter.ExecuteCommand(instructions.Split());
                }
            }
        }
Example #2
0
 static AppBase()
 {
     Factory = new AppFac <T>();
 }