Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ExceptionLogEntry exlogEntry = new ExceptionLogEntry();
            SimpleLogEntry simpleLogEntry = new SimpleLogEntry();

            var dbsaver = new DatabaseLogSaver();
            dbsaver.SaveLogEntry(simpleLogEntry);
            dbsaver.SaveLogEntry(exlogEntry);
            Console.ReadLine();
        }
Ejemplo n.º 2
0
 private void SaveSimpleLogEntry(SimpleLogEntry logEntry)
 {
     Console.WriteLine("Simple log was saved");
 }
Ejemplo n.º 3
0
 void ILogEntryVisitor.Visit(SimpleLogEntry simpleLogEntry)
 {
     SaveSimpleLogEntry(simpleLogEntry);
 }