Esempio n. 1
0
        public CommLogic(MailClient mClient,
                         DoodleClient dClient,
                         TwilioClient tClient,
                         ResponseCallback callback)
        {
            mailClient = mClient;
            doodleClient = dClient;
            twilioClient = tClient;
            callbackFn = callback;

            // Start reading email from the appropriate IMap provider.
            // This creates its own long-running thread.
            imapReader = new ImapReader(mailClient.Imap, "INBOX", MessageCallback);
        }
Esempio n. 2
0
 private void StartTwilioClient(string twiMLCallbackUrl)
 {
     TwilioClient = new TwilioClient(twiMLCallbackUrl);
 }