private static void HandleEvent(WarnEvent warnEvent, ISession session) { Logger.Write(warnEvent.ToString(), LogLevel.Warning); // If the event requires no input return. if (!warnEvent.RequireInput) return; // Otherwise require input. Logger.Write(session.Translation.GetTranslation(TranslationString.RequireInputText)); Console.ReadKey(); }
public void HandleEvent(WarnEvent evt, ISession session) { Logger.Write(evt.ToString(), LogLevel.Warning); if (evt.RequireInput) { Logger.Write(session.Translation.GetTranslation(TranslationString.RequireInputText)); Console.ReadKey(); } }
public void HandleEvent(WarnEvent evt, ISession session) { }
public void HandleEvent(WarnEvent evt, Context ctx) { }
public void HandleEvent(WarnEvent evt, Context ctx) { Logger.Write(evt.ToString(), LogLevel.Warning); }
public void HandleEvent(WarnEvent evt, Session session) { Logger.Write(evt.ToString(), LogLevel.Warning); }