public static ILastNameRouteBuilder <THandler, TData> ToListenPublishSubscribeChannel <THandler, TData>(this ILastListenerRouteBuilder <THandler, TData> builder, string path, string subscription, string connectionstring) { if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullException(nameof(path)); } if (string.IsNullOrWhiteSpace(connectionstring)) { throw new ArgumentNullException(nameof(connectionstring)); } if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } Func <IValueSettingFinder, string> extractor = x => connectionstring; return(builder.ToListenPublishSubscribeChannel <THandler, TData, NullValueSettingFinder>(path, subscription, extractor)); }
public static ILastNameRouteBuilder <THandler, TData> ToListenTopic <THandler, TData>(this ILastListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, string subscription, string connectionstring) { return(listenerroutebuilder.ToListenPublishSubscribeChannel(path, subscription, connectionstring)); }
public static ILastNameRouteBuilder <THandler, TData> ToListenTopic <THandler, TData, TExtractorConectionString>(this ILastListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, string subscription, Func <IValueSettingFinder, string> connectionstringextractor) where TExtractorConectionString : IValueSettingFinder { return(listenerroutebuilder.ToListenPublishSubscribeChannel <THandler, TData, TExtractorConectionString>(path, subscription, connectionstringextractor)); }