Why do asp.net developers want to know about azure action services?

Source: Internet
Author: User
Keywords Azure asp.net azure Action Services

Azure Action Services provides a cloud platform based backend solution for action application developers, which now supports the use of the ASP.net Web API in addition to the use of JavaScript (node.js) to access the backend platform Technology, the operational logic of the backend platform, so the Azure Action Service is attractive to asp.net developers who want to develop the API for the Action device application:

Full back-end platform and SDK solution for all action platforms. With Azure Ops, you can quickly add a rich backend platform to your IOS, Android, Windows, Windows Phone or HTML app, even if you're using a Xamarin, Sencha or PhoneGap The Development toolkit for these cross action device platforms also applies. We also provide the SDK for each of these platforms, allowing you to be more convenient in the development of integration.

The best managed platform for your Mobile API. While the Azure Action Service itself provides a Web API for the action application interface, you can still deploy the Web API controller to the Azure Operations service, and in contrast to other managed services, Azure action Services can help you monitor and manage your own deployed Web API controllers. If there is any problem with the execution environment of the Web API, we will patch or update ourselves, unless there is a problem with your controller program, we will contact you.

High quality and versatile back-end platform. The Azure Action Service offers many immediately available features that you can easily combine with Web APIs, such as using SIGNALR to emit tweets (push notification), using social networking mechanisms for authentication, synchronizing offline data, and so on.

Combined with enterprise systems. If you are a developer in an enterprise, the Azure Action Service also allows you to use Active Directory for authentication, access to SharePoint or Office 365 data through the API. In addition, we offer a seamless integration mechanism (connectivity to on-premises assets) that you can link to Azure action services even if the system or database within the enterprise is not directly exposed to the Internet.

Consolidate with Visual Studio. Now you can directly manipulate and develop Azure action services-related projects direct in your favorite IDE, and Visual Studio is also the best development, debugging, and publishing tool for Azure action services.

Full back-end platform for all action platforms and SDK Solutions

It is easy to start using Azure Action Service, as long as the azure admin on the back stage creates a new action service and in the first picture remember to select in the backend field. net". Once the Action Service is established, you can go to the Quickstart page and download a starter project based on the action platform you want to develop.

If you prefer to start with Visual Studio, you can also choose to add the Azure Mobile Service project template to the new ASP.net project and publish it directly to Azure later. Please note: This feature was added after Visual Studio 2013 Update 2.

Either way, you'll get a Mobile Service. NET project template, and you'll find that it's actually a simple Web API project (plus some NuGet kits).

You can open the TodoItemController.cs file and set breakpoints at Getalltodoitems (), and the controller's program code also shows how to manipulate the data on the Azure Action Service:

public class Todoitemcontroller:tablecontroller

{

protected override void Initialize (Httpcontrollercontext controllercontext)

{

Base. Initialize (ControllerContext);

Csharp_testcontext context = new Csharp_testcontext ();

Domainmanager = new Entitydomainmanager (context, Request, Services);

}

Get Tables/todoitem

Public IQueryable Getalltodoitems ()

{

return Query ();

}

Get tables/todoitem/48d68c86-6ea6-4c25-aa33-223fc9a27959

Public Singleresult Gettodoitem (string id)

{

return Lookup (ID);

}

PATCH tables/todoitem/48d68c86-6ea6-4c25-aa33-223fc9a27959

Public Task Patchtodoitem (string id, Delta patch)

{

return Updateasync (ID, patch);

}

POST tables/todoitem/48d68c86-6ea6-4c25-aa33-223fc9a27959

Public async Task Posttodoitem (Todoitem Item)

{

Todoitem current = await insertasync (item);

Return Createdatroute ("Tables"), new {id = current. Id}, current);

}

DELETE tables/todoitem/48d68c86-6ea6-4c25-aa33-223fc9a27959

Public Task Deletetodoitem (string id)

{

return Deleteasync (ID);

}

}

You can see here we have all the CRUD methods to handle Todoitem, and this controller uses Entitydomainmanager, which wraps a layer for the Entity Framework model, allowing you to easily select different data sources, such as:

MongoDB: Mongodomainmanager can be installed using the NuGet Suite management tool.

Azure Table Storage: Storagedomainmanager can be installed using the NuGet Suite management tool.

Now Azure Action Services support you can debug on the local side (press F5), and the pages you start will help you understand the correctness of the data sent out by the Web API. You can start the test by pressing the Get Tables/todoitem on the page, pressing the link in the "try this out" and pressing send, triggering the Getalltodoitems () method in the program, which can be used in the IDE .

When you have completed the development of the API, you can immediately publish items from Visual Studio to Azure without having to open the Azure management interface separately.

Once the release is complete, the Azure Action Service immediately launches the WEB API you develop and monitors it.

The best managed platform for your Mobile API

If you're an experienced Web API developer, you might want to know what the benefits of putting WEB API services on Azure action services are. Here are some benefits:

Monitoring (monitoring) and diagnostics (diagnostics). The Azure Operations Service provides SLA 99.9 service levels and ensures the stability of your services through built-in monitoring mechanisms. If you are a paid user, we will closely monitor the HTTP traffic and SQL links, and contact you if there is a problem. In addition, we also provide a number of self-help monitoring mechanisms, such as service endpoint monitoring and alerting function.

Automatic Updates. We update or patch our server platform on average every week, and the update process does not let you stop the service or need to redeploy the application. Of course, we will ensure that the updated compatibility, all updates will be backward compatible (backward-compatible).

Automatically deploy cloud services. When you set up an Azure action Service, we also automatically set up the SQL database and the notification hub (notification hub, in order to make a push notification), and properly link well. In the same way, you can easily set up a link with the existing room on the back stage of the management to achieve the mixed cloud usage situation. Azure Services provide the convenience of your public cloud, as well as the flexibility of linking to existing rooms.

High quality and multifunctional back-end platform

When you use the Azure Action Service to build your application, you will find that Azure action Services offers many useful features that can save you several weeks of development time.

The authentication scheme for the turnkey package. Many mobile appliance applications will have an authenticated usage scenario, and azure action Services has done a good job of AAD authentication, such as Microsoft account, Facebook, Twitter, Google, and Enterprise, and you only need to use the Azure OPS service SDK/API calls can complete the work of authentication without actually becoming a OAuth expert. Please refer to this teaching document for details.

Extendable push notification. There are some action device applications that use a push notification scenario, and Azure action services is already a push mechanism for Windows, IOS, Android, and the Kindle, and you can complete a platform-wide push notification mechanism through a suite of Azure action APIs, Of course, you can also fully customized the content of the push notification, which gives you an idea of how to use the Twitter notification feature of the Azure Action Service.

Synchronizes offline data. Many users want to continue to use the mobile device while it is offline, and the Azure Action Service SDK also provides an offline database mechanism similar to the SQLite, which synchronizes after the device is connected again. Please refer to this document for details.

Real-time。 Push notification is a good tool for contacting customers, but this allows you to provide a scalable and low-latency network environment, and Azure action Services supports real-time two-way communications based on WebSocket, SIGNALR, enabling your applications to deliver or receive messages more in real time. And it all builds on an infrastructure that can be seamlessly extended on Azure, and can be easily authenticated. For more information please refer to this article.

Integration with Enterprise systems

In the development of enterprise systems,. NET is a common development platform, so there is more opportunity to integrate with enterprise systems after the Azure Action Service supports the. NET programming language, and you can refer to the information on this page to see more presentations.

Active Directory consolidation. In enterprise applications, Active Directory is often used as an authentication mechanism, and the Azure Operations Service, which supports the login mechanism for AD, can also access SharePoint and Office 365, which was originally authenticated with AD, and is more suitable for enterprise action application development. For more information on AD consolidation please refer to this teaching document, which shows how to set the on-behalf-of mechanism.

Connect with the existing room. Sometimes the enterprise's system or database is not exposed to the Internet environment, Azure Action Service still supports the establishment of a link with the existing computer room mechanism to create a "hybrid link" architecture. You can refer to this film and the teaching document to set it up.

Xamarin SDK. Many companies choose to use Xamarin technology to develop multi-platform mobile applications, and azure operations Services also provide the Xamarin SDK so that developers who develop applications in Xamarin can easily use the Azure Action Service.

Accelerator。 The Azure Action Services team has developed a number of examples for specific industry applications to accelerate action application development for specific industries. These accelerators can be downloaded here.

Consolidating with Visual Studio

In addition to the above features, integration with the Visual Studio development tools is also important, in addition to direct development, debugging, and distribution, you can create program templates in Visual Studio such as tabular controllers, custom controllers, or scheduling jobs.

At the same time, we have integrated remote debugging capabilities by connecting to the corresponding Azure Action Service on Server Explorer and right-clicking to select "Link debugger (Attach Debugger)" so that you can directly To debug the program code that has been issued to the Azure Operations Service (if you compile it).

Another great feature is that you can use the View Logs feature on Server Explorer to see all the logs on the Azure Action Service, including the error message stack.

We sincerely hope that these new features will attract you to the next project to try Azure Action Service.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.