Exemplo n.º 1
0
        public static ILastNameRouteBuilder <THandler, TData> ToListenPointToPointChannel <THandler, TData>(this ILastListenerRouteBuilder <THandler, TData> builder, string path, string connectionstring)
        {
            if (string.IsNullOrWhiteSpace(path))
            {
                throw new ArgumentNullException(nameof(path));
            }
            if (string.IsNullOrWhiteSpace(connectionstring))
            {
                throw new ArgumentNullException(nameof(connectionstring));
            }

            Func <IValueSettingFinder, string> extractor = x => connectionstring;

            return(builder.ToListenPointToPointChannel <THandler, TData, NullValueSettingFinder>(path, extractor));
        }
Exemplo n.º 2
0
 public static ILastNameRouteBuilder <THandler, TData> ToListenQueue <THandler, TData>(this ILastListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, string connectionstring)
 {
     return(listenerroutebuilder.ToListenPointToPointChannel(path, connectionstring));
 }
Exemplo n.º 3
0
 public static ILastNameRouteBuilder <THandler, TData> ToListenQueue <THandler, TData, TExtractorConectionString>(this ILastListenerRouteBuilder <THandler, TData> listenerroutebuilder, string path, Func <IValueSettingFinder, string> connectionstringextractor)
     where TExtractorConectionString : IValueSettingFinder
 {
     return(listenerroutebuilder.ToListenPointToPointChannel <THandler, TData, TExtractorConectionString>(path, connectionstringextractor));
 }