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