Exemplo n.º 1
0
        public static IFirstNameRouteBuilder <THandler, TData> ToListenPublishSubscribeChannel <THandler, TData>(this IFirstListenerRouteBuilder <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));
        }
Exemplo n.º 2
0
 public static IFirstNameRouteBuilder <THandler, TData> ToListenPublishSubscribeChannel <THandler, TData, TExtractorConectionString>(this IFirstListenerRouteBuilder <THandler, TData> builder, string path, string subscription, Func <IValueSettingFinder, string> connectionstringextractor)
     where TExtractorConectionString : IValueSettingFinder
 {
     return(builder.ToListen(x => x.AddPublishSubscribeChannel <TExtractorConectionString>(path, subscription, connectionstringextractor)));
 }
Exemplo n.º 3
0
 public static IFirstNameRouteBuilder <THandler, TData> ToListenQueue <THandler, TData>(this IFirstListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, string connectionstring)
 {
     return(listenerroutebuilder.ToListenPointToPointChannel(path, connectionstring));
 }
Exemplo n.º 4
0
 public static IFirstNameRouteBuilder <THandler, TData> ToListenTopic <THandler, TData>(this IFirstListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, string subscription, string connectionstring)
 {
     return(listenerroutebuilder.ToListenPublishSubscribeChannel(path, subscription, connectionstring));
 }
Exemplo n.º 5
0
 public static IFirstNameRouteBuilder <THandler, TData> ToListenQueue <THandler, TData, TExtractorConectionString>(this IFirstListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, Func <IValueSettingFinder, string> connectionstringextractor)
     where TExtractorConectionString : IValueSettingFinder
 {
     return(listenerroutebuilder.ToListenPointToPointChannel <THandler, TData, TExtractorConectionString>(path, connectionstringextractor));
 }