Custom bindings

While Azure Functions offer a variety of different bindings for many different scenarios, sometimes, you want a custom functionality that is not available. In such cases, it is possible to create a custom binding, which I mentioned earlier in this chapter. To generate it, you need the following things:

  • An attribute decorated with the [Binding] attribute
  • An implementation of the IBindingProvider interface
  • An implementation of the IBinding interface
  • An implementation of the IExtensionConfigProvider interface

By providing all of the preceding implementations, your binding will be automatically fetched by the runtime and enabled. If everything is set correctly, you will be notified of this during runtime start:

In the preceding ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.