Ejemplo n.º 1
0
 protected SwitchRoutineExecutor(IConsoleBotManaged <IConsoleConnection, IConsoleConnectionAsync> cfg) : base(cfg)
 {
     UseCRLF = cfg.GetInnerConfig() is ISwitchConnectionConfig {
         UseCRLF : true
     };
     if (Connection is not ISwitchConnectionAsync connect)
     {
         throw new System.Exception("Not a valid switch connection");
     }
     SwitchConnection = connect;
 }
Ejemplo n.º 2
0
 protected RoutineExecutor(IConsoleBotManaged <IConsoleConnection, IConsoleConnectionAsync> cfg)
 {
     Config     = (T)cfg;
     Connection = cfg.CreateAsynchronous();
 }
Ejemplo n.º 3
0
 protected SwitchRoutineExecutor(IConsoleBotManaged <IConsoleConnection, IConsoleConnectionAsync> cfg) : base(cfg)
 {
     UseCRLF = cfg.GetInnerConfig() is ISwitchConnectionConfig {
         UseCRLF : true
     };
 }
Ejemplo n.º 4
0
 protected PokeRoutineExecutor(IConsoleBotManaged <IConsoleConnection, IConsoleConnectionAsync> cfg) : base(cfg)
 {
 }