public void AddConfigureEndpointsCallback(ConfigureEndpointsCallback callback) { if (callback == null) { throw new ArgumentNullException(nameof(callback)); } Registrar.RegisterSingleInstance <IConfigureReceiveEndpoint>(provider => new DelegateConfigureReceiveEndpoint(callback)); }
public DelegateConfigureReceiveEndpoint(ConfigureEndpointsCallback callback) { if (callback == null) { throw new ArgumentNullException(nameof(callback)); } _callback = callback; }