Book Image

Mastering Cloud Development using Microsoft Azure

Book Image

Mastering Cloud Development using Microsoft Azure

Overview of this book

Microsoft Azure is a cloud computing platform that supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems. This book starts by helping you set up a professional development environments in the cloud and integrating them with your local environment to achieve improved efficiency. You will move on to create front-end and back-end services, and then build cross-platform applications using Azure. Next you’ll get to grips with advanced techniques used to analyze usage data and automate billing operations. Following on from that, you will gain knowledge of how you can extend your on-premise solution to the cloud and move data in a pipeline. In a nutshell, this book will show you how to build high-quality, end-to-end services using Microsoft Azure. By the end of this book, you will have the skillset needed to successfully set up, develop, and manage a full-stack Azure infrastructure.
Table of Contents (15 chapters)
Mastering Cloud Development using Microsoft Azure
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Sending data to the service


The page is loaded and buttons are available to vote for the session. Pressing a Vote button is an invocation to the service to add a new row in the table, passed as a JSON object:

    function vote_session(url: string, session_id: string, vote: string): void {
        var mobileAppsClient = new WindowsAzure.MobileServiceClient(url);
        var sessionsVotesTable = mobileAppsClient.getTable("SessionsVotes");
        sessionsVotesTable.insert({
            session_id: session_id
            ,
            vote: vote
        });
    }

The function is referenced once per button; specifically, the Vote button refers to:

$(document).find("#vote_more").click(function () {
    var id: string =/\d+/.exec(/id=\d+/.exec(document.URL)[0])[0];
    vote_session("http://sqlsat495.azurewebsites.net", id, "more");
  });

During a community event it is important to create a lot of "noise:" posting on the Internet, messages, photos, tagging people, and sharing contacts and emotions...