public MulticastRequestMessagePump(MessagingFactory messagingFactory, IMulticastRequestBroker multicastRequestBroker, Type requestType, string applicationSharedSubscriptionName, ILogger logger, int batchSize) : base(logger, batchSize) { _messagingFactory = messagingFactory; _multicastRequestBroker = multicastRequestBroker; _requestType = requestType; _applicationSharedSubscriptionName = applicationSharedSubscriptionName; }
private static IEnumerable<object> InvokeGenericHandleMethod(IMulticastRequestBroker requestBroker, object request, TimeSpan timeout) { var handleMethod = ExtractHandleMulticastMethodInfo(request); var response = handleMethod.Invoke(requestBroker, new[] {request, timeout}); return (IEnumerable<object>) response; }
public static BusBuilderConfiguration WithMulticastRequestBroker(this BusBuilderConfiguration configuration, IMulticastRequestBroker requestBroker) { configuration.MulticastRequestBroker = requestBroker; return configuration; }