예제 #1
0
 public MessagingMiddleware(IRabbitMqClient rabbitMqClient, RouteMatcher routeMatcher,
     ICorrelationContextBuilder correlationContextBuilder, CorrelationIdFactory correlationIdFactory,
     IOptions<MessagingOptions> messagingOptions)
 {
     _rabbitMqClient = rabbitMqClient;
     _routeMatcher = routeMatcher;
     _correlationContextBuilder = correlationContextBuilder;
     _correlationIdFactory = correlationIdFactory;
     _endpoints = messagingOptions.Value.Endpoints?.Any() is true
         ? messagingOptions.Value.Endpoints.GroupBy(e => e.Method.ToUpperInvariant())
             .ToDictionary(e => e.Key, e => e.ToList())
         : new Dictionary<string, List<MessagingOptions.EndpointOptions>>();
 }
예제 #2
0
 public LogContextMiddleware(CorrelationIdFactory correlationIdFactory)
 {
     _correlationIdFactory = correlationIdFactory;
 }
예제 #3
0
 public CustomHttpMessageInvoker(CorrelationIdFactory correlationIdFactory, HttpMessageHandler handler,
                                 bool disposeHandler) : base(handler, disposeHandler)
 {
     _correlationIdFactory = correlationIdFactory;
 }
예제 #4
0
 public CustomProxyHttpClientFactory(CorrelationIdFactory correlationIdFactory)
 {
     _correlationIdFactory = correlationIdFactory;
 }