Exemplo n.º 1
0
        public static INameRouteBuilder <THandler> ToListenPointToPointChannel <THandler>(this IListenerRouteBuilder <THandler> 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, NullValueSettingFinder>(path, extractor));
        }
Exemplo n.º 2
0
 public static INameRouteBuilder <THandler> ToListenQueue <THandler, TExtractorConectionString>(this IListenerRouteBuilder <THandler> listenerroutebuilder, string path, Func <IValueSettingFinder, string> connectionstringextractor)
     where TExtractorConectionString : IValueSettingFinder
 {
     return(listenerroutebuilder.ToListenPointToPointChannel <THandler, TExtractorConectionString>(path, connectionstringextractor));
 }
Exemplo n.º 3
0
 public static INameRouteBuilder <THandler> ToListenQueue <THandler>(this IListenerRouteBuilder <THandler> listenerroutebuilder, string path, string connectionstring)
 {
     return(listenerroutebuilder.ToListenPointToPointChannel(path, connectionstring));
 }