Custom Middleware This sample demonstrates how to create and register a custom middleware that is injected into the invocation pipeline.