Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
C# 8 and .NET Core 3 Projects Using Azure

You're reading from   C# 8 and .NET Core 3 Projects Using Azure Build professional desktop, mobile, and web applications that meet modern software requirements

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher
ISBN-13 9781789612080
Length 528 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Jas Rademeyer Jas Rademeyer
Author Profile Icon Jas Rademeyer
Jas Rademeyer
Dirk Strauss Dirk Strauss
Author Profile Icon Dirk Strauss
Dirk Strauss
Paul Michaels Paul Michaels
Author Profile Icon Paul Michaels
Paul Michaels
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Ebook Manager and Catalogue App - .NET Core for Desktop FREE CHAPTER 2. Task Bug Logging ASP.NET Core MVC App Using Cosmos DB 3. ASP.NET Azure SignalR Chat Application 4. Web Research Tool with Entity Framework Core 5. Building a Twitter Automated Campaign Manager Using Azure Logic Apps and Functions 6. Stock Checker Using Identity Server and OAuth 2 7. Building a Photo Storage App Using a Windows Service and Azure Storage 8. A Load-Balanced Order Processing Microservice Using Docker and Azure Kubernetes Service 9. Emotion Detector Mobile App - Using Xamarin Forms and Azure Cognitive Services 10. Eliza for the 21st Century - UWP and the MS Bot Framework 11. WebAssembly 12. Other Books You May Enjoy

Stock checker application API

To start with, we'll create our stock checker application with all its functionality enabled for everyone, we'll use IdentityServer to lock down the application to only users that are authenticated, and finally, we'll enable only the correct functionality for the user.

Setup

The first stage will be to create our API. In .NET Core, the concept of an ApiController is replaced with a simple Controller; that is, there is no distinction between a controller method serving data and one serving a web page other than the return type.

Let's create our new project:

We'll create an empty application and add the API manually (targeting .NET Core 3.0):

This should give you a bare...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image