Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Enterprise Application Development with C# 9 and .NET 5
  • Toc
  • feedback
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

By : Ravindra Akella, Verma, Arun Kumar Tamirisa , Kumar Kunani, Bhupesh Guptha Muthiyalu
3.9 (10)
close
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

3.9 (10)
By: Ravindra Akella, Verma, Arun Kumar Tamirisa , Kumar Kunani, Bhupesh Guptha Muthiyalu

Overview of this book

.NET Core is one of the most popular programming platforms in the world for an increasingly large community of developers thanks to its excellent cross-platform support. This book will show you how to confidently use the features of .NET 5 with C# 9 to build robust enterprise applications. Throughout the book, you'll work on creating an enterprise app and adding a key component to the app with each chapter, before ?nally getting it ready for testing and deployment. You'll learn concepts relating to advanced data structures, the Entity Framework Core, parallel programming, and dependency injection. As you progress, you'll cover various authentication and authorization schemes provided by .NET Core to make your apps and APIs secure. Next, you'll build web apps using ASP.NET Core 5 and deploy them on the cloud while working with various cloud components using Azure. The book then shows you how to use the latest Microsoft Visual Studio 2019 and C# 9 to simplify developer tasks, and also explores tips and tricks in Visual Studio 2019 to improve your productivity. Later, you'll discover various testing techniques such as unit testing and performance testing as well as di?erent methods to deploy enterprise apps. By the end of this book, you’ll be able to create enterprise apps using the powerful features of .NET 5 and deploy them on the cloud.
Table of Contents (24 chapters)
close
1
Section 1: Architecting an Enterprise Application and its Fundamentals
5
Section 2: Cross-Cutting Concerns
11
Section 3: Developing Your Enterprise Application
15
Section 4: Security
18
Section 5: Health Checks, Unit Testing, Deployment, and Diagnostics

Designing a cache abstraction layer using distributed caching

In enterprise applications, it's always good to have a wrapper class on top of an underlying cache implementation as it abstracts the core logic of caching and can also be used as one single class that holds application-wide default cache entry options.

We will be implementing a cache wrapper class with an underlying store as Azure Cache for Redis using the IDistributedCache implementation. It's a .NET Standard 2.1 class library; the source code for this library is available in the Packt.Ecommerce.Caching project. Any class that wants to cache data should inject IDistributedCacheService using constructor injection and can call the following various methods:

  • AddOrUpdateCacheAsync<T>: Adds or updates cache entries of type T asynchronously
  • AddOrUpdateCacheStringAsync: Adds or updates cache entries of the string type asynchronously
  • GetCacheAsync<T>: Gets cache entries of type T asynchronously...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete