Skip to content

Binding Attributes

Mathew Charles edited this page Jun 19, 2015 · 6 revisions

The WebJobs SDK uses an declarative model for describing job function bindings. Consider the following job function:

public static void ProcessOrders(
    [QueueTrigger("order")] Order order, 
    [Blob("orders/{OrderId}")] out string orderBlob)
{
    ...
}

This function uses the QueueTrigger and Blob bindings, to trigger when a new message arrives in the order queue, and binds to an output blob container to archive the order.

The QueueTriggerAttribute and BlobAttribute types define the programming model for the bindings. One of the first steps in designing a new binding is to define this programming model for your domain.

  • What does the user need to provide/configure for the binding?
  • What parameter types should the binding support (e.g. the above sample shows how QueueTrigger supports binding a message to a POCO object)?

The goal is to address customer requirements as simply and concisely as possible, following the WebJobs SDK easy to use declarative attribute model.

Clone this wiki locally