In short, mobile applications should not be designed to undertake long-running tasks on the user interaction tier, but rather user asynchronous mechanisms to execute these workflows. The UI, in this case, would just be responsible for keeping the user informed about the background execution status. While in the past, background tasks were handled through classic .NET threading model, nowadays, the TAP model provides a rich set of functionality, which releases the developers from the burden of creating, managing, and synchronizing the threads and thread pools. In this chapter, we have seen that there are various patterns that would allow for the creation of background tasks that would yield back to the UI thread so that the asynchronous process results can be propagated to the UI. We also discussed different strategies for synchronous mechanisms, together with Tasks, thus avoiding deadlocks and race conditions. Additionally, we have looked into the native background procedures on...
Hands-On Mobile Development with .NET Core
By :
Hands-On Mobile Development with .NET Core
By:
Overview of this book
.NET Core is the general umbrella term used for Microsoft’s cross-platform toolset. Xamarin, used for developing mobile applications, is one of the app model implementations for .NET Core infrastructure.
In this book, you'll learn how to design, architect, and develop attractive, maintainable, and robust mobile applications for multiple platforms, including iOS, Android, and UWP, with the toolset provided by Microsoft using Xamarin, .NET Core, and Azure Cloud Services. This book will take you through various phases of application development using Xamarin, from environment setup, design, and architecture to publishing, with the help of real-world scenarios. Throughout the book, you'll learn how to develop mobile apps using Xamarin, Xamarin.Forms, and .NET Standard. You'll even be able to implement a web-based backend composed of microservices with .NET Core using various Azure services including, but not limited to, Azure App Services, Azure Active Directory, Notification Hub, Logic Apps, Azure Functions, and Cognitive Services. The book then guides you in creating data stores using popular database technologies such as Cosmos DB, SQL, and Realm.
Finally, you will be able to set up an efficient and maintainable development pipeline to manage the application life cycle using Visual Studio App Center and Visual Studio Services.
Table of Contents (26 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Free Chapter
Getting Started with .NET Core
Xamarin, Mono, and .NET Standard
Universal Windows Platform
Developing Mobile Applications with Xamarin
UI Development with Xamarin
Customizing Xamarin.Forms
Azure Services for Mobile Applications
Creating a Datastore with Cosmos DB
Creating Microservices Azure App Services
Using .NET Core for Azure Serverless
Fluid Applications with Asynchronous Patterns
Managing Application Data
Engaging Users with Notifications and the Graph API
Introducing Cognitive Services
Azure DevOps and Visual Studio App Center
Application Telemetry with Application Insights
Automated Testing
Deploying Azure Modules
CI/CD with Azure DevOps
Other Books You May Enjoy
Index
Customer Reviews