Beispiel #1
0
 protected ConsoleInteractionHandlerBase(IInteractivityOptions options)
 {
     Options             = options;
     GenLog.DebugEnabled = options.Debug;
     if (!string.IsNullOrWhiteSpace(options.Log))
     {
         GenLog.LogFile = options.Log;
     }
 }
Beispiel #2
0
        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)
 {
 }