static AsqConnectedFunction()
        {
            endpoint = new FunctionsAwareStorageQueueEndpoint(endpointName);

            endpoint.Routing.RouteToEndpoint(typeof(SomeRoutedMessage), endpointName); // route to our self just to demo

            //use NSB for poison message handling to not have failed messages go into {input-queue}-poison
            endpoint.UseNServiceBusPoisonMessageHandling("error");
        }
        static FunctionsAwareStorageQueueEndpoint Initialize()
        {
            var endpoint = new FunctionsAwareStorageQueueEndpoint(endpointName);

            endpoint.Routing.RouteToEndpoint(typeof(PlaceOrder), endpointName);
            endpoint.Routing.RouteToEndpoint(typeof(BookOrder), "booking");
            endpoint.Routing.RouteToEndpoint(typeof(BillOrder), "billing");

            endpoint.UseNServiceBusPoisonMessageHandling("error");

            return(endpoint);
        }
        static FunctionsAwareStorageQueueEndpoint Initialize()
        {
            var endpoint = new FunctionsAwareStorageQueueEndpoint(endpointName);


            endpoint.Routing.RegisterPublisher(typeof(OrderBooked), "booking");
            endpoint.Routing.RegisterPublisher(typeof(OrderBilled), "billing");

            endpoint.UseNServiceBusPoisonMessageHandling("error");

            return(endpoint);
        }
Exemplo n.º 4
0
        static BillingFunctionsHost()
        {
            endpoint = new FunctionsAwareStorageQueueEndpoint(endpointName);

            endpoint.UseNServiceBusPoisonMessageHandling("error");
        }
        static HttpEmittingMessagesToAsq()
        {
            endpoint = new FunctionsAwareStorageQueueEndpoint(endpointName);

            endpoint.Routing.RouteToEndpoint(typeof(PlaceOrder), endpointName); //route to our self just to demo
        }