Esempio n. 1
0
        static void Main(string[] args)
        {
            Logger logger = Logger.GetInstance();

            logger.log("main", "Starting.....");

            MainSystem system = new MainSystem();

            system.DoSomeMainWork();
            logger.log("main", "finished!!");

            Console.Read();
        }
Esempio n. 2
0
        private void Start()
        {
            Logger.Instance.Log("main", "starting");

            MainSystem mainSystem = new MainSystem(); //This could be a one-liner
            SubSystem  subSystem  = new SubSystem();

            mainSystem.DoSomeMainWork(); //                     ^^
            subSystem.DoSomeWork();
            subSystem.DoSomeWork();

            Logger.Instance.Log("main", "finishing");
        }