Example #1
0
 protected abstract void EventOccured(StateEventSubscription s, StateEventArgs args);
 protected override void EventOccured(StateEventSubscription s, StateEventArgs args)
 {
     File.AppendAllText(_filePath, String.Format("{0} - {1}",
         s.Subscriber.GetEventOccured().ToShortTimeString(), args.Message) + Environment.NewLine);
 }
 protected override void EventOccured(StateEventSubscription s, StateEventArgs args)
 {
     Console.WriteLine(String.Format("{0} - {1}", s.Subscriber.GetEventOccured().ToShortTimeString(), args.Message));
 }
 protected abstract void EventOccured(StateEventSubscription s, StateEventArgs args);