protected ConsoleInteractionHandlerBase(IInteractivityOptions options) { Options = options; GenLog.DebugEnabled = options.Debug; if (!string.IsNullOrWhiteSpace(options.Log)) { GenLog.LogFile = options.Log; } }
public static IInteractionHandler GetHandler(IInteractivityOptions options) { if (options.Pause) { GenLog.Debug("Using TemporaryConsoleInteractionHandler"); return(new TemporaryConsoleInteractionHandler(options)); } GenLog.Debug("Using ConsoleInteractionHandler"); return(new ConsoleInteractionHandler(options)); }
internal TemporaryConsoleInteractionHandler(IInteractivityOptions options) : base(options) { }