Beispiel #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);
        }
Beispiel #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;
        }