1
0
Форкнуть 0
This sample showcases how to create Azure Functions through the Azure portal and Visual Studio 2017, and how to call the function from a Xamarin.Forms client app.
Перейти к файлу
lbugnion 9cd25fd771 Uploading sample code and documentation 2018-01-20 17:52:58 +01:00
.github Initial commit 2018-01-14 15:01:52 -08:00
Doc Uploading sample code and documentation 2018-01-20 17:52:58 +01:00
LbCalculator Uploading sample code and documentation 2018-01-20 17:52:58 +01:00
XamCalculator Uploading sample code and documentation 2018-01-20 17:52:58 +01:00
XamCalculator - Start Uploading sample code and documentation 2018-01-20 17:52:58 +01:00
.gitignore Initial commit 2018-01-14 15:01:45 -08:00
CHANGELOG.md Initial commit 2018-01-14 15:01:48 -08:00
CONTRIBUTING.md Initial commit 2018-01-14 15:01:49 -08:00
LICENSE.md Initial commit 2018-01-14 15:01:50 -08:00
README.md Uploading sample code and documentation 2018-01-20 17:52:58 +01:00

README.md

Implementing a simple Azure Function with a Xamarin.Forms client

Azure Functions logo

Azure Functions are a great way to implement an API in an easy manner, without any deployment or maintenance headaches. You can implement the code in the Azure Web Portal directly (or in Visual Studio if you prefer, of course). Functions are also running at a very interesting cost, since they are only billed when they are actually executed. If your business is just starting and you have only a few users, the costs will be very low. Later when the business expands, you have the possibility to switch to a different plan making it easier to budget your costs.

Because they are very easy to implement and maintain, and accessible through HTTP, Azure Functions are a great way to implement an API for a mobile application. Microsoft offers great cross-platform tools for iOS, Android and Windows with Xamarin. As such, Xamarin and Azure Functions are working great together. This article will show how to implement a very simple Azure Function in the Azure Web Portal or in Visual Studio at first, and build a cross-platform client with Xamarin.Forms, running on Android, iOS and Windows.

Later we will refine this application by using the JavaScript Object Notation JSON as a communication medium between the server and the mobile clients.

Table of content

Modifying the application to use JavaScript Object Notation JSON instead

In this section, we will modify the function application interface to use JSON instead of normal text to pass the result to the client.