public FormConfigDispatch(MessageDispatchConfig cfg) { _config = cfg; InitializeComponent(); InitComboxTable(); LoadSetting(); }
private static MessageDispatcher SetupDispatcher( Action <MessageDispatchConfig> config, IEnumerable <IMessageEnricher> enrichers, IEnumerable <IMessagePublisher> publishers) { var dispatchModule = new Mock <IMessageDispatchModule>(); var dispatchConfig = new MessageDispatchConfig(); config(dispatchConfig); dispatchModule.Setup(m => m.DispatchConfig).Returns(dispatchConfig); return(new MessageDispatcher( new Mock <ILogger <MessageDispatcher> >().Object, dispatchModule.Object, enrichers, publishers)); }
public override void Initialize() { MessagingConfig = Context.Plugin.GetConfig <MessageDispatchConfig>(); }