Exemplo n.º 1
0
        public ILogEntry GetLogEntry(Person person)
        {
            var result = new BasicLogEntry();     // can use a ThreadSafeLogEntry if application is multi-threaded

            result.Values["age"]     = person.Age.ToString();
            result.Values["surname"] = person.LastName;
            return(result);
        }
Exemplo n.º 2
0
        public ILogEntry GetLogEntry(Car car)
        {
            var result = new BasicLogEntry();     // can use a ThreadSafeLogEntry if application is multi-threaded

            result.Values["make"] = car.Make;
            result.Values["reg"]  = car.Registration;
            return(result);
        }