src/Miles.MassTransit/RecordMessageDispatch/RecordMessageDispatchExtensions.cs
/// <summary>
/// Registers a filter on send pipes to attempt to record the dispatch of any message.
/// </summary>
/// <typeparam name="TConfigurator">The type of the configurator.</typeparam>
/// <param name="configurator">The configurator.</param>
/// <param name="dispatchRecorder">The dispatch recorder.</param>
Registers a filter on send pipes to attempt to record the dispatch of any message.
Registers a filter on send pipes to attempt to record the dispatch of any message .
public static void ConnectRecordMessageDispatchObserver(this ISendObserverConnector connector, IDispatchRecorder dispatchRecorder)
        {
            if (dispatchRecorder == null)
                new ArgumentNullException(nameof(dispatchRecorder));
            var observer = new RecordMessageDispatchObserver(dispatchRecorder);
            connector.ConnectSendObserver(observer);
        }
public static void ConnectRecordMessageDispatchObserver ( this ISendObserverConnector connector , IDispatchRecorder dispatchRecorder ) { if ( dispatchRecorder == null ) new ArgumentNullException ( nameof ( dispatchRecorder ) ) ; var observer = new RecordMessageDispatchObserver ( dispatchRecorder ) ; connector . ConnectSendObserver ( observer ) ; }
Registers a filter on send pipes to attempt to record the dispatch of any message.
Registers a filter on send pipes to attempt to record the dispatch of any message .
ISendObserverConnector
this
dispatchRecorder
IDispatchRecorder
The dispatch recorder.
The dispatch recorder .
configurator
None
typeparam
The type of the configurator.
The type of the configurator .