Customizing ASP.NET Core 5.0

Customizing ASP.NET Core 5.0

Author: Jürgen Gutsch

Publisher: Packt Publishing Ltd

Published: 2021-01-28

Total Pages: 161

ISBN-13: 1801079307

DOWNLOAD EBOOK

A guide to discovering the hidden behaviors of ASP.NET Core that can be customized to optimize your .NET 5 applications Key FeaturesCustomize the default behavior of ASP.NET Core to get the most out of the frameworkEnhance the app configuration, change the default dependency injection, and build your own tag helpersDiscover best practices for configuring ASP.NET Core, from user interface design to hosting it on platformsBook Description ASP.NET Core is the most powerful Microsoft web framework. Although it’s full of rich features, sometimes the default configurations can be a bottleneck and need to be customized to suit the nature and scale of your app. If you’re an intermediate-level .NET developer who wants to extend .NET Core to multiple use cases, it's important to customize these features so that the framework works for you effectively. Customizing ASP.NET Core 5.0 covers core features that can be customized for developing optimized apps. The customization techniques are also updated to work with the latest .NET 5 framework. You’ll learn essential concepts relating to optimizing the framework such as configuration, dependency injection, routing, action filters, and more. As you progress, you’ll be able to create custom solutions that meet the needs of your use case with ASP.NET Core. Later chapters will cover expert techniques and best practices for using the framework for your app development needs, from UI design to hosting. Finally, you’ll focus on the new endpoint routing in ASP.NET Core to build custom endpoints and add third-party endpoints to your web apps for processing requests faster. By the end of this application development book, you’ll have the skills you need to be able to customize ASP.NET Core to develop robust optimized apps. What you will learnExplore various application configurations and providers in ASP.NET Core 5Understand dependency injection in .NET and learn how to add third-party DI containersDiscover the concept of middleware and write your own middleware for ASP.NET Core appsCreate various API output formats in your API-driven projectsGet familiar with different hosting models for your ASP.NET Core appDevelop custom routing endpoints and add third-party endpointsConfigure WebHostBuilder effectively for your web applicationsWho this book is for This .NET 5 book is for .NET developers who need to change the default behaviors of the framework to help improve the performance of their applications. Intermediate-level knowledge of ASP.NET Core and C# is required before getting started with the book.


Customizing ASP.NET Core 6.0

Customizing ASP.NET Core 6.0

Author: Jürgen Gutsch

Publisher: Packt Publishing Ltd

Published: 2021-12-31

Total Pages: 204

ISBN-13: 1803243813

DOWNLOAD EBOOK

Explore hidden behaviors and customization techniques to help you get the most out of ASP.NET Core for building web applications Key FeaturesSecond edition updated and enhanced to cover the latest .NET 6 features and changesLearn expert techniques to implement authentication and authorization for securing your web appsDiscover best practices for configuring ASP.NET Core, from user interface design to hosting it on platformsBook Description ASP.NET Core comes packed full of hidden features for building sophisticated web applications. You’d be missing out on a lot of its capabilities by not customizing it to work for your applications. With Customizing ASP.NET Core 6.0, you’ll discover techniques to help you get the most out of the framework to deliver robust applications. In this updated second edition, you’ll cover the latest features and changes in the .NET 6 LTS version. You’ll find new insights and customization techniques for important topics such as authentication and authorization. The book will also show you how to work with caches and change the default behavior of ASP.NET Core apps. You'll learn essential concepts relating to optimizing the framework, such as configuration, dependency injection, routing, action filters, and more. As you progress, you'll be able to create custom solutions that meet the needs of your use case with ASP.NET Core. Later chapters will cover expert techniques and best practices for using the framework for your app development needs, from UI design to hosting. Finally, you'll focus on the new endpoint routing in ASP.NET Core to build custom endpoints and add third-party endpoints to your web apps for processing requests faster. By the end of this book, you'll be able to customize ASP.NET Core to develop robust optimized apps. What you will learnExplore various application configurations and providers in ASP.NET Core 6Enable and work with caches to improve the performance of your applicationUnderstand dependency injection in .NET and learn how to add third-party DI containersDiscover the concept of middleware and write your middleware for ASP.NET Core appsCreate various API output formats in your API-driven projectsGet familiar with different hosting models for your ASP.NET Core appWho this book is for This .NET 6 book is for .NET developers who need to change the default behaviors of the framework to help improve the performance of their applications. Intermediate-level knowledge of ASP.NET Core and C# is required before getting started with the book.


Customizing ASP.NET Core 5.0

Customizing ASP.NET Core 5.0

Author: Jurgen Gutsch

Publisher:

Published: 2021

Total Pages: 0

ISBN-13:

DOWNLOAD EBOOK

A guide to discovering the hidden behaviors of ASP.NET Core that can be customized to optimize your .NET 5 applications Key Features Customize the default behavior of ASP.NET Core to get the most out of the framework Enhance the app configuration, change the default dependency injection, and build your own tag helpers Discover best practices for configuring ASP.NET Core, from user interface design to hosting it on platforms Book Description ASP.NET Core is the most powerful Microsoft web framework. Although it's full of rich features, sometimes the default configurations can be a bottleneck and need to be customized to suit the nature and scale of your app. If you're an intermediate-level .NET developer who wants to extend .NET Core to multiple use cases, it's important to customize these features so that the framework works for you effectively. Customizing ASP.NET Core 5.0 covers core features that can be customized for developing optimized apps. The customization techniques are also updated to work with the latest .NET 5 framework. You'll learn essential concepts relating to optimizing the framework such as configuration, dependency injection, routing, action filters, and more. As you progress, you'll be able to create custom solutions that meet the needs of your use case with ASP.NET Core. Later chapters will cover expert techniques and best practices for using the framework for your app development needs, from UI design to hosting. Finally, you'll focus on the new endpoint routing in ASP.NET Core to build custom endpoints and add third-party endpoints to your web apps for processing requests faster. By the end of this application development book, you'll have the skills you need to be able to customize ASP.NET Core to develop robust optimized apps. What you will learn Explore various application configurations and providers in ASP.NET Core 5 Understand dependency injection in .NET and learn how to add third-party DI containers Discover the concept of middleware and write your own middleware for ASP.NET Core apps Create various API output formats in your API-driven projects Get familiar with different hosting models for your ASP.NET Core app Develop custom routing endpoints and add third-party endpoints Configure WebHostBuilder effectively for your web applications Who this book is for This .NET 5 book is for .NET developers who need to change the default behaviors of the framework to help improve the performance of their applications. Inte...


ASP.NET Core in Action, Second Edition

ASP.NET Core in Action, Second Edition

Author: Andrew Lock

Publisher: Simon and Schuster

Published: 2021-03-18

Total Pages: 1267

ISBN-13: 1638356459

DOWNLOAD EBOOK

ASP.NET Core in Action, Second Edition is a comprehensive guide to creating web applications with ASP.NET Core 5.0. Go from basic HTTP concepts to advanced framework customization. Summary Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to building cross-platform web applications with your C# and .NET skills. Even if you've never worked with ASP.NET you'll start creating productive cross-platform web apps fast. And don’t worry about late-breaking changes to ASP.NET Core. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the technology Build full-stack web applications that run anywhere. Developers love ASP.NET Core for its libraries and pre-built components that maximize productivity. Version 5.0 offers new features for server-side apps, as well as background services for cross-platform development. About the book ASP.NET Core in Action, Second Edition is a comprehensive guide to creating web applications with ASP.NET Core 5.0. Go from basic HTTP concepts to advanced framework customization. Illustrations and annotated code make learning visual and easy. Master logins, dependency injection, security, and more. This updated edition covers the latest features, including Razor Pages and the new hosting paradigm. What's inside Developing apps for Windows and non-Windows servers Configuring applications Building custom components Logging, testing, and security About the reader For intermediate C# developers. About the author Andrew Lock is a Microsoft MVP who has worked with ASP.NET Core since before its first release. Table of Contents PART 1 - GETTING STARTED WITH ASP.NET CORE 1 Getting started with ASP.NET Core 2 Your first application 3 Handling requests with the middleware pipeline 4 Creating a website with Razor Pages 5 Mapping URLs to Razor Pages using routing 6 The binding model: Retrieving and validating user input 7 Rendering HTML using Razor views 8 Building forms with Tag Helpers 9 Creating a Web API for mobile and client applications using MVC PART 2 - BUILDING COMPLETE APPLICATIONS 10 Service configuration with dependency injection 11 Configuring an ASP.NET Core application 12 Saving data with Entity Framework Core 13 The MVC and Razor Pages filter pipeline 14 Authentication: Adding users to your application with Identity 15 Authorization: Securing your application 16 Publishing and deploying your application PART 3 - EXTENDING YOUR APPLICATIONS 17 Monitoring and troubleshooting errors with logging 18 Improving your application’s security 19 Building custom components 20 Building custom MVC and Razor Pages components 21 Calling remote APIs with IHttpClientFactory 22 Building background tasks and services 23 Testing your application


ASP.NET Core in Action, Third Edition

ASP.NET Core in Action, Third Edition

Author: Andrew Lock

Publisher: Simon and Schuster

Published: 2023-11-14

Total Pages: 982

ISBN-13: 1638352585

DOWNLOAD EBOOK

Build professional-grade full-stack web applications using C# and ASP.NET Core. In ASP.NET Core in Action, Third Edition you’ll learn how to: Build minimal APIs for serving JSON to client-side applications Create dynamic, server-side rendered applications using Razor Pages User authentication and authorization Store data using Entity Framework Core Unit and integration tests for ASP.NET Core applications Write custom middleware and components Fully updated to ASP.NET Core 7.0! In ASP.NET Core in Action, Third Edition Microsoft MVP Andrew Lock teaches you how you can use your C# and .NET skills to build amazing cross-platform web applications. This revised bestseller reveals the latest .NET patterns, including minimal APIs and minimal hosting. Even if you've never worked with ASP.NET, you'll start creating productive cross-platform web apps fast. Illustrations and annotated code make learning visual and easy. About the technology The ASP.NET Core web framework delivers everything you need to build professional-quality web applications. With productivity-boosting libraries for server-side rendering, secure APIs, easy data access and more, you’ll spend your time implementing features instead of researching syntax and tracking down bugs. This book is your guide. About the book ASP.NET Core in Action, Third Edition shows you how to create production-grade web applications with ASP.NET Core 7.0. You’ll learn from hands-on examples, insightful illustrations, and nicely explained code. Updated coverage in this Third Edition includes creating minimal APIs, securing APIs with bearer tokens, WebApplicationBuilder, and more. About the reader For beginning to intermediate web developers. Examples are in C#. About the author Andrew Lock is a Microsoft MVP who has worked with ASP.NET Core since before its first release. Table of Contents 1 Getting started with ASP.NET Core 2 Understanding ASP.NET Core 3 Your first application 4 Handling requests with the middleware pipeline 5 Creating a JSON API with minimal APIs 6 Mapping URLs to endpoints using routing 7 Model binding and validation in minimal APIs 8 An introduction to dependency injection 9 Registering services with dependency injection 10 Configuring an ASP.NET Core application 11 Documenting APIs with OpenAPI 12 Saving data with Entity Framework Core 13 Creating a website with Razor Pages 14 Mapping URLs to Razor Pages using routing 15 Generating responses with page handlers in Razor Pages 16 Binding and validating requests with Razor Pages 17 Rendering HTML using Razor views 18 Building forms with Tag Helpers 19 Creating a website with MVC controllers 20 Creating an HTTP API using web API controllers 21 The MVC and Razor Pages filter pipeline 22 Creating custom MVC and Razor Page filters 23 Authentication: Adding users to your application with Identity 24 Authorization: Securing your application 25 Authentication and authorization for APIs 26 Monitoring and troubleshooting errors with logging 27 Publishing and deploying your application 28 Adding HTTPS to an application 29 Improving your application’s security 30 Building ASP.NET Core apps with the generic host and Startup 31 Advanced configuration of ASP.NET Core 32 Building custom MVC and Razor Pages components 33 Calling remote APIs with IHttpClientFactory 34 Building background tasks and services 35 Testing applications with xUnit 36 Testing ASP.NET Core applications


Pro ASP.NET Core Identity

Pro ASP.NET Core Identity

Author: Adam Freeman

Publisher:

Published: 2021

Total Pages: 0

ISBN-13: 9781484268599

DOWNLOAD EBOOK

Learn how to get the most out of ASP.NET Core Identity. ASP.NET Core Identity provides authentication and user management for ASP.NET Core applications. In the world of ASP.NET development, Identity is a complex framework in its own right, with support for a wide range of features, including authenticating users with services provided by Google, Facebook, and Twitter. Best-selling author Adam Freeman teaches developers common authentication and user management scenarios and explains how they are implemented in applications. Each topic, from configuring identity to authenticators and recovery codes, is clearly and concisely presented. And in true Freeman style, each chapter is packed with the essential details you need to be effective. The book takes a deep dive into ASP.NET Core Identity and explains how the most important and useful features work, from the built-in features that can be used for simple applications, through to deep customizations for advanced projects. Structured in two complementary parts, Part I covers how to apply ASP.NET Core Identity to an ASP.NET Core project. You will learn how to set up and configure Identity, how to use the built-in Identity UI package to manage user accounts, and how to use the API to create custom workflows. In Part II, you will learn how the features in Part I are implemented, customized, and more. What You Will Learn Gain a solid understanding of how Identity provides authentication and authorization for ASP.NET Core applications Configure ASP.NET Core Identity for common application scenarios, including self-service registration, user management, and authentication with services provided by popular social media platforms Create robust and reliable user management tools Understand how Identity works in detail and best practices for using it in your projects Construct custom implementations of the interfaces that meet the needs of advanced ASP.NET Core projects This book is for developers with advanced knowledge of ASP.NET Core who are introducing Identity into their projects. Prior experience and knowledge of C#, ASP.NET Core is required, along with a basic understanding of authentication and authorization concepts. Adam Freeman is an experienced IT professional who has held senior positions in a range of companies, most recently serving as chief technology officer and chief operating officer of a global bank. Now retired, he spends his time writing and long-distance running.


ASP.NET Core Recipes

ASP.NET Core Recipes

Author: John Ciliberti

Publisher: Apress

Published: 2017-09-12

Total Pages: 447

ISBN-13: 1484204271

DOWNLOAD EBOOK

Quickly find solutions to common web development problems. Content is presented in the popular problem-solution format. Look up the problem that you want to solve. Read the solution. Apply the solution directly in your own code. Problem solved! ASP.NET Core Recipes is a practical guide for developers creating modern web applications, cutting through the complexities of ASP.NET, jQuery, React, and HTML5 to provide straightforward solutions to common web development problems using proven methods based on best practices. The problem-solution approach gets you in, out, and back to work quickly while deepening your understanding of the underlying platform and how to develop with it. Author John Ciliberti guides you through the MVC framework and development tools, presenting typical challenges, along with code solutions and clear, concise explanations, to accelerate application development. Solve problems immediately by pasting in code from the recipes, or put multiple recipe solutions together to overcome challenging development obstacles. What You'll Learn Take advantage of MVC's streamlined syntax Discover how to take full control over HTML Develop a simple API for creating RESTful web services Understand test-driven development Migrate a project from ASP.NET web forms to Core MVC, including recipes for converting DataGrids, Forms, Web Parts, Master Pages, and navigation controls Use Core MVC in combination with popular JavaScript libraries, including jQuery, React, Bootstrap, and more Write unit tests for your MVC controllers, views, custom filters, and HTML helpers Utilize the latest features in Visual Studio 2017 to accelerate your Core MVC projects Identify performance bottlenecks in your MVC application Who This Book Is For Web developers of all skill levels who are looking for a programming reference for ASP.NET Core MVC and would like to gain an understanding of the inner workings of the platform. In addition, parts of this book provide guidance to developers familiar with ASP.NET Web Forms who would like to update their skill set to include Core MVC.


Practical Multiple-Page Apps with ASP.NET Core and Angular Elements

Practical Multiple-Page Apps with ASP.NET Core and Angular Elements

Author: Jack Xu

Publisher: UniCAD

Published: 2019-07-16

Total Pages: 422

ISBN-13: 1080437002

DOWNLOAD EBOOK

This book provides all the tools you need to develop ultra-modern multiple-page applications (MPAs) using ASP.NET Core Razor Pages, Angular elements, WebPack, RxJS, and mini-SPAs (Single-Page Applications). It will be useful for web programmers, business developers, and students of all skill levels who are interested in web-application developments.This book teaches you how to build a modern web site/application using a hybrid approach – the simplest being host one or more mini-SPAs within a larger multiple-page web application. It shows how to split a web application into functional parts, and convert each functional part into its own SPA. These mini-SPAs together form a complete multiple-page application. For each mini SPA, we use a simple JavaScript routing system to organize the states of the application and switch between different views by watching changes on the URL.The technical stack for backend consists of operating system, web server, database, and programming logic. This book chooses ASP.NET Core Razor Pages and SQL Server as the backend framework. A Razor page consists of a Razor view and a code behind file. Each Razor page is self-contained with its own view and code organized together, resulting in a simpler app, which makes coding page-focused scenarios easier and more productive. The front-end components enable the user's interaction with the web application. In this book, we choose TypeScript, npm, WebPack, RxJS, and Angular as our front-end technical stack. TypeScript is a modern JavaScript development language that provides optional static type checking, classes, and interfaces. It also offers advanced Intellisense, auto-completion, navigation, and refactoring, which makes code easier to read and understand. WebPack is a bundler and it comes in handy when you need to pack multiple assets together into a dependency graph. There is a rising tendency to use WebPack because it can fulfil nearly all tasks that you would perform through a task runner. RxJS is a library for reactive programming using observables, which make it easier to compose asynchronous or callback-based code. This book will explain how to use all of these technologies together to create a modern web application.Angular is a popular front-end JavaScript framework. Even though it is used for SPA development, we can still take advantage of this framework in building modern multiple-page web applications, i.e., we can use Angular in a non-SPA way via Angular elements. Angular elements are Angular components packaged as custom elements, a web standard for defining new HTML elements in a framework-agnostic way. This book shows how to embed Angular elements into our modern MPA project without having to migrate an entire application to Angular.This book also includes the other selected topics, including how to use Microsoft ML.NET to solve machine learning problems, such as classification, regression, and clustering; how to create various charts and graphics using ECharts; how to use SignalR to add real-time features to your web apps; how to use dependency injection, and how to create custom tag helpers and Razor Class Libraries in Razor Pages.


Entity Framework Core in Action

Entity Framework Core in Action

Author: Jon Smith

Publisher: Simon and Schuster

Published: 2018-07-15

Total Pages: 791

ISBN-13: 1638355940

DOWNLOAD EBOOK

Summary Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. Following the crystal-clear explanations, real-world examples, and around 100 diagrams, you'll discover time-saving patterns and best practices for security, performance tuning, and unit testing. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology There's a mismatch in the way OO programs and relational databases represent data. Entity Framework is an object-relational mapper (ORM) that bridges this gap, making it radically easier to query and write to databases from a .NET application. EF creates a data model that matches the structure of your OO code so you can query and write to your database using standard LINQ commands. It will even automatically generate the model from your database schema. About the Book Using crystal-clear explanations, real-world examples, and around 100 diagrams, Entity Framework Core in Action teaches you how to access and update relational data from .NET applications. You'l start with a clear breakdown of Entity Framework, long with the mental model behind ORM. Then you'll discover time-saving patterns and best practices for security, performance tuning, and even unit testing. As you go, you'll address common data access challenges and learn how to handle them with Entity Framework. What's Inside Querying a relational database with LINQ Using EF Core in business logic Integrating EF with existing C# applications Applying domain-driven design to EF Core Getting the best performance out of EF Core Covers EF Core 2.0 and 2.1 About the Reader For .NET developers with some awareness of how relational databases work. About the Author Jon P Smith is a full-stack developer with special focus on .NET Core and Azure. Table of Contents Part 1 - Getting started Introduction to Entity FrameworkCore Querying the database Changing the database content Using EF Core in business logic Using EF Core in ASP.NET Core web applications Part 2 - Entity Framework in depth Configuring nonrelational properties Configuring relationships Configuring advanced features and handling concurrency conflicts Going deeper into the DbContext Part 3 - Using Entity Framework Core in real-world applications Useful software patterns for EF Core applications Handling database migrations EF Core performance tuning A worked example of performance tuning Different database types and EF Core services Unit testing EF Core applications Appendix A - A brief introduction to LINQ Appendix B - Early information on EF Core version 2.1


ASP.NET Core: Cloud-ready, Enterprise Web Application Development

ASP.NET Core: Cloud-ready, Enterprise Web Application Development

Author: Mugilan T. S. Ragupathi

Publisher: Packt Publishing Ltd

Published: 2017-06-09

Total Pages: 1047

ISBN-13: 1788293207

DOWNLOAD EBOOK

Create fast, scalable, and high-performance applications with C# and ASP.NET Core About This Book Get first-principle coverage of the latest ASP.NET Core MVC Find out how to bring together the capabilities and features of both Angular 2 and ASP.NET Core Discover common areas you might encounter performance problems with and areas you don't need to worry about Who This Book Is For This book is for developers who want to learn to build web applications using ASP.NET Core, those who want to make a career building web applications using Microsoft technology, and those who are working on other web frameworks and want to learn ASP.NET Core. What You Will Learn Get to know the concepts of ASP.NET MVC Create a Controller with action methods Build a view using several features of the Razor View engine Construct a Model for ASP.NET Core MVC application Find out how the features of ASP.NET Core and Angular 2 perfectly complement each other Handle requests and actions using server-side and client-side Routing Create a Data Model using Entity Framework Core Learn how to use Angular 2 components and master directives Improve performance at the network level and I/O level, and how to optimize the application as a whole Monitor performance as part of Continuous Integration and regression testing In Detail ASP.NET Core is the new, open source, and cross-platform, web-application framework from Microsoft. ASP.NET Core MVC helps you build robust web applications using the Model-View-Controller design. This guide will help you in building applications that can be deployed on non-Windows platforms such as Linux. Starting with an overview of the MVC pattern, you will quickly dive into the aspects that you need to know to get started with ASP.NET. You will learn about the core architecture of model, view, and control. Integrating your application with Bootstrap, validating user input, interacting with databases, and deploying your application are some of the things that you will learn to execute with this fast-paced guide. You will test your knowledge as you build a fully working sample application using the skills you've learned throughout the book. Moving forward, this guide will teach you to combine the impressive capabilities of ASP.NET Core and Angular 2. Not only will you learn how Angular 2 can complement your .NET skills and toolkit, you'll also learn everything you need to build a complete, dynamic single-page application. Find out how to get your data model in place and manage an API, before styling and designing your frontend for an exceptional user experience. You will find out how to optimize your application for SEO, identify and secure vulnerabilities, and how to successfully deploy and maintain your application. From here, you will delve into the latest frameworks and software design patterns to improve your application performance. The course offers premium, highly practical content on the recently released ASP.NET Core, and includes material from the following Packt books: Learning ASP.NET Core MVC Programming, ASP.NET Core and Angular 2, and ASP.NET Core 1.0 High Performance. Style and approach This learning path takes a first-principles approach to help you understand and implement ASP.NET MVC solutions.