Azure WebJobs Walkthrough with Visual Studio


  1. Create an ASP.NET WebApp
  2. At project node, Add “New Azure WebJob Project”
  3. Choose project type: Continuous/OnDemand/Schedule
    1. Continuous:
      1. A JobHost.RunAndBlock(); in void Main().
      2. A method for [QueueTrigger/BlobTrigger(queuename)] to dequeue message from queue
    2. On Demand/Schedule:
      1. A JobHost.Call(methodname, value) in void Main().
      2. A method for [Queue/Blog(queuename)] to enqueue  message to the queue
  4. Publish WebApp and/or WebJob projects to Azure. And you will find the WebJob deployed under the WebApp App_Data folder
  5. Configuration: Add Azure Storage Connection String to Live Azure Web Site.
    1. Go to Server Explorer –> Storage to get Storage Connection String
      • image
      • image
    2. Go to  Websites –> Settings, create 2 entries AzureWebJobsStorage & AzureWebJobsDashboard. And select Custom from the Database Type column.
      • image
  6. Debug Contiuous WebJob: In Server Explorer, goto your WebJob and make sure it is started.
    1. Attach Debugger. Set your breakpoints.
      1. image
    2. View static Logs.
  7. Run OnDemand WebJob to send message to the queue which will in turn trigger any breakpoints in the continuous WebJob.
    1. image



Azure WebJobs

Update 11/30/2014:




Silverlight Async Programming – Best Practices

Silverlight client runtime does not allow synchronous operations and requires network-based operations to be asynchronous. While asynchronous and event-based programming models have been a part of the .NET Framework since the earliest versions, orchestrating sequential and parallel asynchronous workflows can be problematic.

Form Validation using jQuery Validation plugin


In the example above, we only used three validation methods (required, email and url). There are several other methods that can be used here. Here are a few of them:

  • remote: requests a resource to check the element for validity.
  • min: makes the element require a given minimum.
  • date: makes the element require a date.
  • creditcard: makes the element require a credit card number.
  • equalTo: requires the element to be the same as another one.

You can find an exhaustive list of built-in validation methods at

But I can’t find a suitable built-in method for my situation. Can I write my own method?” Yes you can! And its really easy.

Writing Your Own Validation Method

Calling the jQuery.validator.addMethod() method. It takes three parameters:

  • name: The name of the method, used to identify and referencing it, must be a valid javascript identifier.
  • method: the actual method implementation, returning true if an element is valid.
  • message: The default message to display for this method.

In the validate function, we specify that the ‘sport’ field should be validated using the selectNone method.


Make sure to look at the source code behind these demos

Via Form Validation using jQuery

Another tutorial here