Esempio n. 1
0
        private SlackNotificationAgent InitializeSlackAgent(string token)
        {
            var agent = new SlackNotificationAgentReconnectable(token);

            if (agent.Initialize() == false)
            {
                throw new Exception("Slack connection failed. Please check token is valid");
            }

            return(agent);
        }
Esempio n. 2
0
        private SlackNotificationAgent InitializeSlackAgent(string token)
        {
            var agent = new SlackNotificationAgentReconnectable(token);
              if (agent.Initialize() == false)
              {
            throw new Exception("Slack connection failed. Please check token is valid");
              }

              return agent;
        }