public SlackListener(DocumentStore store, CoachKeys keys, List<User> users)
 {
     _store = store;
     _users = users;
     _httpListener = new HttpListener();
     _httpListener.Prefixes.Add(keys.SlackOutgoingWebhookUrl);
     _httpListener.Start();
 }
 public SlackClient(CoachKeys keys)
 {
     _channel = keys.SlackChannelName;
     _webhookUrl = keys.SlackIncomingWebhookUri;
     _client = new HttpClient { BaseAddress = new Uri("https://hooks.slack.com") };
 }
 public MailGunClient(CoachKeys keys)
 {
     _mailGunEndpoint = keys.MailGunDomainName;
     _client = new HttpClient { BaseAddress = new Uri("https://api.mailgun.net") };
     _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes(keys.MailGunApiKey)));
 }