コード例 #1
0
 public RabbitMqGateway(ISendEndpointProvider sendEndpointProvider,
                        IPublishEndpoint publishEndpoint, IRouteRegistry routeRegistry)
 {
     _sendEndpointProvider = sendEndpointProvider;
     _publishEndpoint      = publishEndpoint;
     _routeRegistry        = routeRegistry;
 }
コード例 #2
0
ファイル: WOLF_RouteMonitor.cs プロジェクト: suma-ksp/MKS
        public WOLF_RouteMonitor(IRegistryCollection routeRegistry)
        {
            _routeRegistry = routeRegistry;

            InitStyles();

            ManageTransfersGui = new WOLF_GuiManageTransfers(routeRegistry);
        }
コード例 #3
0
 public RoutingMiddleware(
     RequestDelegate next,
     IRouteRegistry <TRequest, TResponse> routeRegistry,
     MapContextToRequest <TRequest> mapContextToRequest,
     ApplyResponseToContext <TResponse> applyResponseToContext)
 {
     _routeRegistry          = routeRegistry;
     _mapContextToRequest    = mapContextToRequest;
     _applyResponseToContext = applyResponseToContext;
 }
コード例 #4
0
 public SightingInvestigationConsumer(
     ISightingRepository <T> sightingRepository,
     IProtocolTranslator protocolTranslator,
     ISightingAnalyzerRepertoire analyzerRepertoire,
     IRouteRegistry routeRegistry)
 {
     _sightingRepository = sightingRepository;
     _protocolTranslator = protocolTranslator;
     _analyzerRepertoire = analyzerRepertoire;
     _routeRegistry      = routeRegistry;
 }
コード例 #5
0
 public static IApplicationBuilder UseRouting <TRequest, TResponse>(
     this IApplicationBuilder applicationBuilder,
     IRouteRegistry <TRequest, TResponse> routeRegistry,
     MapContextToRequest <TRequest> mapContextToRequest,
     ApplyResponseToContext <TResponse> applyResponseToContext)
 {
     return(applicationBuilder.UseMiddleware <RoutingMiddleware <TRequest, TResponse> >(
                routeRegistry,
                mapContextToRequest,
                applyResponseToContext));
 }
コード例 #6
0
 public RabbitMqConfigurationAgent WithRegistry(IRouteRegistry routeRegistry)
 {
     _routeRegistry = routeRegistry;
     return(this);
 }
コード例 #7
0
 public RabbitModule(IRouteRegistry routeRegistry)
 {
     _routeRegistry = routeRegistry;
 }
コード例 #8
0
 private static void RegisterErrorRoute(IRouteRegistry <HttpContext, string> routeRegistry)
 {
     routeRegistry.Register(
         new Endpoint(HttpMethod.Get, ErrorRoute),
         (context, parameters) => throw new CustomException());
 }
コード例 #9
0
 public VokabelToSirenAsJsonMapper(IRouteRegistry routeRegistry)
 {
     _routeRegistry = routeRegistry;
 }