Esempio n. 1
0
        static AsbConnectedFunction()
        {
            endpoint = new FunctionsAwareServiceBusEndpoint(endpointName);

            endpoint.Routing.RouteToEndpoint(typeof(SomeRoutedMessage), "sales-atomic-2"); //route to our self just to demo

            //use NSB for poison message handling to not have failed messages go into the DLQ
            endpoint.UseNServiceBusPoisonMessageHandling("error");

            endpoint.UseNServiceBusAuditQueue("audit");
        }
Esempio n. 2
0
        static MyApi()
        {
            endpoint = new FunctionsAwareServiceBusEndpoint(endpointName);

            endpoint.EnablePassThroughRoutingForUnknownMessages(messageType =>
            {
                //route everything to a backend function
                return("my-api-backend");
            });

            endpoint.UseNServiceBusPoisonMessageHandling("error");
        }
        static HttpEmittingMessagesToAsb()
        {
            endpoint = new FunctionsAwareServiceBusEndpoint(endpointName);

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