Tutorial by Examples

The Azure Webjobs SDK is a framework distributed as a Nuget package aimed at helping you define Functions that are run by Triggers and use Bindings to other Azure services (like Azure Storage and Service Bus) in a declarative fashion. The SDK uses a JobHost to coordinate your coded Functions. In a ...
A simple example defining a Function that gets triggered by a Queue message: public static void StringMessage([QueueTrigger("my_queue")] string plainText) { //... } It also supports POCO serialization: public static void POCOMessage([QueueTrigger("my_queue")] MyPO...
A simple example of a Function that gets triggered when a Azure Storage Blob is modified: public static async Task BlobTrigger( [BlobTrigger("my_container/{name}.{ext}")] Stream input, string name, string ext) { //Blob with name {name} and extension {ext} using (StreamRead...
The SDK supports time triggered based on CRON expressions with 6 fields ({second} {minute} {hour} {day} {month} {day of the week}). It requires an extra setting on the JobHostConfiguration: config.UseTimers(); Your time triggered functions respond to this syntax: // Runs once every 5 minutes p...
Error handling is extremely important, we can define functions to be triggered when an execution error happens in one of your triggered functions: //Fires when 10 errors occur in the last 30 minutes (sliding) public static void ErrorMonitor([ErrorTrigger("0:30:00", 10)] TraceFilter filte...
Azure Webjobs run on an Azure App Service. If we scale our App Service horizontally (add new instances), each instance will have its own JobHost. Note that this only applies to WebJobs running in Continuous mode. On-demand and scheduled WebJobs are not affected by horizontal scaling, they always ru...
Use the packet manager to install Microsoft.Owin.SelfHost install-packet Microsoft.Owin.SelfHost Code for a bare minimum HelloWorld web application running from a console window: namespace HelloOwin { using System; using Owin; class Program { static readonly stri...
extern crate serde; extern crate serde_json; #[macro_use] extern crate serde_derive; #[derive(Serialize)] struct Person { #[serde(rename="firstName")] first_name: String, #[serde(rename="lastName")] last_name: String, } fn main() { let person = ...
If you created an empty project, or you still don't have mvc configured in your application, you can add dependency: "Microsoft.AspNetCore.Mvc": "1.0.1" To your project.json file under "dependencies". And register MVC middleware in your Startup class: public void ...
Sometimes builds take longer than expected. There are a few environment variables you can set to better understand what's happening during the build process. METEOR_DEBUG_BUILD=1 (logs progress) METEOR_PROFILE=<n> (logs time spent) METEOR_DEBUG_SPRINGBOARD=1 (?) METEOR_DEBUG_...
Meteor Tool To check the installed version of the Meteor tool, just run the following command outside of any Meteor projects: meteor --version To get a list of all official (recommended) Meteor releases, run: meteor show METEOR Meteor Projects If you want to check the project version of Me...
The Meteor Tool will notify you when a newer release is available. To update Meteor projects to the latest release, execute the following command inside a Meteor project: meteor update In case you want to update your Meteor project to a specific Meteor release, run the following command inside ...
<!DOCTYPE html> <html> <head> <title>My Leaflet Map</title> <link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" /> <style type="text/css"> #map { height: 500px; ...
Three things are usually important when starting to learn to use MPI. First, you must initialize the library when you are ready to use it (you also need to finalize it when you are done). Second, you will want to know the size of your communicator (the thing you use to send messages to other process...
CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(context, 5.0); CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); CGContextMoveToPoint(context, 200, 400); CGContextAddLineToPoint(context, 100, 100); CGContextStrokePath(context); CGColorSpaceRelease(colors...
Draw To requires Core Text framework to be added in the Build Phase [NSString* textToDraw = @"Welcome to the world Of IOS"; CFStringRef stringRef = (__bridge CFStringRef)textToDraw; CFAttributedStringRef currentText = CFAttributedStringCreate(NULL, stringRef, NULL); ...
Using escaped brackets, you can define a capturing group in a pattern that can be backreferenced in the substitution string with \1: $ echo Hello world! | sed 's/\(Hello\) world!/\1 sed/' Hello sed With multiple groups: $ echo one two three | sed 's/\(one\) \(two\) \(three\)/\3 \2 \1/' three ...
What? : A fully supported and extensible framework for building HTTP based endpoints. In the world of HTML5, mobile devices, and modern development techniques HTTP have become the default option for building rich, scalable services. The ASP.NET Web API provides an easy to use set of default options...
<form asp-action="create" asp-controller="Home"> <!--Your form elements goes here--> </form>
<form asp-action="create" asp-controller="Home" asp-route-returnurl="dashboard" asp-route-from="google"> <!--Your form elements goes here--> </form> This will generate the below markup <form action=&qu...

Page 336 of 1336