Example #1
0
 internal TeamsBindingContext CreateTeamsBindingContext(TeamsAttribute attribute)
 {
     return(new TeamsBindingContext(_httpClientFactory, _logger)
     {
         ResolvedAttribute = attribute
     });
 }
Example #2
0
 internal void ValidateTeamsAttribute(TeamsAttribute attribute, Type pramType)
 {
     if (string.IsNullOrEmpty(attribute.WebhookUrl))
     {
         throw new ArgumentNullException(nameof(attribute.WebhookUrl));
     }
 }
        public IAsyncCollector <TeamsMessage> Convert(TeamsAttribute attribute)
        {
            var context = _configProvider.CreateTeamsBindingContext(attribute);

            return(new TeamsBindingAsyncCollector(context));
        }