Created
July 17, 2020 11:38
-
-
Save GeradeDev/49f4eba7908a75379f3db3e93dc4bdd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RabbitMqExtensionConfigProvider : IExtensionConfigProvider | |
{ | |
private ILogger _logger; | |
public RabbitMqExtensionConfigProvider(ILogger logger) | |
{ | |
_logger = logger; | |
} | |
public void Initialize(ExtensionConfigContext context) | |
{ | |
var rule = context.AddBindingRule<RabbitMqTriggerAttribute>(); | |
rule.BindToTrigger<BasicDeliverEventArgs>(new RabbitMqTriggerBindingProvider(_logger)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment