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"); }
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 }