Ejemplo n.º 1
0
        public WebHookEngine(RoomieEngine roomieController, string computerName, string apiBaseUrl, string accessKey, string encryptionKey)
        {
            this.roomieController = roomieController;
            this.computerName     = computerName;
            string threadPoolName = "Web Hook (to " + apiBaseUrl + ")";

            this.threadPool = roomieController.CreateThreadPool(threadPoolName);

            this.running = false;

            apiClient = new RoomieApiClient(apiBaseUrl, accessKey);
        }
Ejemplo n.º 2
0
 public SpeechResponder(RoomieEngine engine)
 {
     RegisteredCommands = new Dictionary <string, ScriptCommandList>();
     _speechRecognizer  = new NamedSpeechRecognizer(TimeSpan.FromSeconds(10), "Roomie");
     ThreadPool         = engine.CreateThreadPool("Speech Recognizer");
 }