public Bus(IMessageTransport busTransport, IDependencyResolver dependencyResolver, MessageScanRules rules, Func <MessageHandlingExceptionRaisedEventArgs, Task> messageHandlingExceptionHandler = null) { this.busTransport = busTransport; this.dependencyResolver = dependencyResolver; this.busMessages = new BusMessages(rules); this.messageHandlingExceptionHandler = messageHandlingExceptionHandler; }
void given_message_scan_rules() { _messageScanRules = new MessageScanRules() .DefineEventScanRuleWith(t => t.Namespace == "RockyBus.DemoMessages.Events") .DefineCommandScanRuleWith(t => t.Namespace == "RockyBus.DemoMessages.Commands"); }