Exemple #1
0
        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);
        }
Exemple #2
0
 public static void AddQueue(this IListenerChannelBuilder builder, string path, string connectionstring)
 {
     builder.AddPointToPointChannel(path, connectionstring);
 }
Exemple #3
0
 public static void AddQueue <TExtractorConectionString>(this IListenerChannelBuilder builder, string path, Func <IValueSettingFinder, string> connectionstringextractor) where TExtractorConectionString : IValueSettingFinder
 {
     builder.AddPointToPointChannel <TExtractorConectionString>(path, connectionstringextractor);
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 public static void AddTopic(this IListenerChannelBuilder builder, string path, string subscription, string connectionstring)
 {
     builder.AddPublishSubscribeChannel(path, subscription, connectionstring);
 }