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