示例#1
0
        public SlackMessageBuilder(SlackConfiguration configuration, Exception exception,
                                   NotifierOptions notifierOptions, HttpRequest request) : base(exception, notifierOptions, request)
        {
            if (!Uri.IsWellFormedUriString(configuration.WebhookUri, UriKind.Absolute))
            {
                throw new MalformedUriException("SlackMessageBuilder failure: Slack's webhook URI is invalid.");
            }

            _configuration = configuration;
        }
示例#2
0
 public SlackNotifier(SlackConfiguration configuration)
 {
     _configuration = configuration;
 }