public static void AddPublishSubscribeChannel(this IListenerChannelBuilder builder, string path, string subscription, string connectionstring) { if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullException(nameof(path)); } if (connectionstring == null) { throw new ArgumentNullException(nameof(connectionstring)); } if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } Func <IValueSettingFinder, string> extractor = x => connectionstring; builder.AddPublishSubscribeChannel <NullValueSettingFinder>(path, subscription, extractor); }
public static void AddTopic <TExtractorConectionString>(this IListenerChannelBuilder builder, string path, string subscription, Func <IValueSettingFinder, string> connectionstringextractor) where TExtractorConectionString : IValueSettingFinder { builder.AddPublishSubscribeChannel <TExtractorConectionString>(path, subscription, connectionstringextractor); }
public static void AddTopic(this IListenerChannelBuilder builder, string path, string subscription, string connectionstring) { builder.AddPublishSubscribeChannel(path, subscription, connectionstring); }