Exemplo n.º 1
0
        private static void StudentDetails()
        {
            Singleton fromStud = Singleton.GetInstance;

            fromStud.PrintMessage("Called from Student class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }
Exemplo n.º 2
0
        private static void EmployeeDetails()
        {
            Singleton fromEmp = Singleton.GetInstance;

            fromEmp.PrintMessage("Called from Employee class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }
Exemplo n.º 3
0
        private static void ManagerDetails()
        {
            Singleton fromMgr = Singleton.GetInstance;

            fromMgr.PrintMessage("Called from Manager class");

            TestLogger testLogger = new TestLogger();

            testLogger.LogInfo("Called from Professor Details method()");
        }