Apps and Services with .NET 8 - Second Edition


Book Description

Covering the most up-to-date topics and developments, this book will provide you with new skills to tackle real-world challenges.




Apps and Services with .NET 8


Book Description

Bestselling author Mark Price is back to guide you through the latest and most common technologies a .NET developer should know: Blazor Full Stack, ASP.NET Core MVC, ASP.NET Core Minimal APIs, .NET MAUI, gRPC, GraphQL, SQL Server, Cosmos DB, SignalR, Azure Functions, and more! Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features Use specialized libraries to improve all aspects of your apps, including performance, security, and localization Harness the full potential of .NET using cloud-native data stores like Cosmos DB, and unlock scalability, performance, and resilience in your service implementations Unleash the capabilities of Blazor Full Stack and.NET MAUI to develop stunning, truly cross-platform apps for web and mobile Book DescriptionElevate your practical C# and .NET skills to the next level with this new edition of Apps and Services with .NET 8. With chapters that put a variety of technologies into practice, including Web API, gRPC, GraphQL, and SignalR, this book will give you a broader scope of knowledge than other books that often focus on only a handful of .NET technologies. You’ll dive into the new unified model for Blazor Full Stack and leverage .NET MAUI to develop mobile and desktop apps. This new edition introduces the latest enhancements, including the seamless implementation of web services with ADO.NET SqlClient's native Ahead-of-Time (AOT) support. Popular library coverage now includes Humanizer and Noda Time. There’s also a brand-new chapter that delves into service architecture, caching, queuing, and robust background services. By the end of this book, you’ll have a wide range of best practices and deep insights under your belt to help you build rich apps and efficient services.What you will learn Familiarize yourself with a variety of technologies to implement services, such as gRPC and GraphQL Store and manage data locally and cloud-natively with SQL Server and Cosmos DB Use ADO.NET SqlClient to implement web services with native AOT publish support Leverage Dapper for improved performance over EF Core Implement popular third-party libraries such as Serilog, FluentValidation, Humanizer, and Noda Time Explore the new unified hosting model of Blazor Full Stack Who this book is forThis book is for .NET developers interested in exploring more specialized libraries and implementation fundamentals behind building services and apps. You’ll need to know your way around .NET and C# quite well before you can dive in, so if you want to work your way up to this book, you can pick up Mark’s other .NET book, C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals, first.




C# 7 and .NET Core: Modern Cross-Platform Development


Book Description

Modern Cross-Platform Development About This Book Build modern, cross-platform applications with .NET Core Get up to speed with C#, and up to date with all the latest features of C# 7 Start creating professional web applications with ASP.NET Core Who This Book Is For This book is targeted towards readers who have some prior programming experience or have a science, technology, engineering, or mathematics (STEM) background, and want to gain a solid foundation with C# and to be introduced to the types of applications they could build and will work cross-platform on Windows, Linux, and macOS. What You Will Learn Build cross-platform applications using C# 7 and .NET Core Explore ASP.NET Core and learn how to create professional web applications Improve your application's performance using multitasking Use Entity Framework Core and find out how to build code-first databases Master object-oriented programming with C# to increase code reuse and efficiency Familiarize yourself with cross-device app development using the Universal Windows Platform and XAML Query and manipulate data using LINQ Protect your data by using encryption and hashing In Detail If you want to build powerful cross-platform applications with C# 7 and .NET Core, then this book is for you. First, we'll run you through the basics of C#, as well as object-oriented programming, before taking a quick tour through the latest features of C# 7 such as tuples, pattern matching, out variables, and so on. After quickly taking you through C# and how .NET works, we'll dive into the .NET Standard 1.6 class libraries, covering topics such as performance, monitoring, debugging, serialization and encryption. The final section will demonstrate the major types of application that you can build and deploy cross-device and cross-platform. In this section, we'll cover Universal Windows Platform (UWP) apps, web applications, mobile apps, and web services. Lastly, we'll look at how you can package and deploy your applications so that they can be hosted on all of today's most popular platforms, including Linux and Docker. By the end of the book, you'll be armed with all the knowledge you need to build modern, cross-platform applications using C# and .NET Core. Style and approach This book takes a step-by-step approach and is filled with exciting projects and fascinating theory. It uses three high-impact sections to equip you with all the tools you'll need to build modern, cross-platform applications using C# and .NET Core.




Software Architecture with C# 12 and .NET 8


Book Description

A book for the aspiring .NET software architect – design scalable and high-performance enterprise solutions using the latest features of C# 12 and .NET 8 Purchase of the print or Kindle book includes a free PDF eBook Key Features Get introduced to software architecture fundamentals and begin applying them in .NET Explore the main technologies used by software architects and choose the best ones for your needs Master new developments in .NET with the help of a practical case study that looks at software architecture for a travel agency Book DescriptionSoftware Architecture with C# 12 and .NET 8 puts high-level design theory to work in a .NET context, teaching you the key skills, technologies, and best practices required to become an effective .NET software architect. This fourth edition puts emphasis on a case study that will bring your skills to life. You’ll learn how to choose between different architectures and technologies at each level of the stack. You’ll take an even closer look at Blazor and explore OpenTelemetry for observability, as well as a more practical dive into preparing .NET microservices for Kubernetes integration. Divided into three parts, this book starts with the fundamentals of software architecture, covering C# best practices, software domains, design patterns, DevOps principles for CI/CD, and more. The second part focuses on the technologies, from choosing data storage in the cloud to implementing frontend microservices and working with Serverless. You’ll learn about the main communication technologies used in microservices, such as REST API, gRPC, Azure Service Bus, and RabbitMQ. The final part takes you through a real-world case study where you’ll create software architecture for a travel agency. By the end of this book, you will be able to transform user requirements into technical needs and deliver highly scalable enterprise software architectures.What you will learn Program and maintain Azure DevOps and explore GitHub Projects Manage software requirements to design functional and non-functional needs Apply architectural approaches such as layered architecture and domain-driven design Make effective choices between cloud-based and data storage solutions Implement resilient frontend microservices, worker microservices, and distributed transactions Understand when to use test-driven development (TDD) and alternative approaches Choose the best option for cloud development, from IaaS to Serverless Who this book is for This book is for engineers and senior software developers aspiring to become architects or looking to build enterprise applications with the .NET stack. Basic familiarity with C# and .NET is required to get the most out of this software architecture book.




ASP.NET Core in Action, Second Edition


Book Description

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




Tools and Skills for .NET 8


Book Description

Elevate your career by mastering key .NET tools and skills, including debugging, source code management, testing, cloud-native development, intelligent apps and more. Purchase of the print or Kindle book includes a free PDF eBook. Key Features Coverage of key .NET tools and skills including refactoring, source code management, debugging, memory troubleshooting, and more Practical guidance on using code editors effectively, implementing best practices, and protecting data Explore cutting-edge techniques like building intelligent apps, cloud native development with .NET Aspire, and Docker containerization Book DescriptionUnlock the full potential of .NET development with Tools and Skills for .NET 8. Dive into source code management using Git and learn how to navigate projects while ensuring version control. Discover advanced debugging techniques and troubleshooting strategies to identify and resolve issues, and gain practical insights on documenting your code, APIs, and services, fostering project clarity and maintainability. Delve into the world of cryptography, ensuring confidentiality and integrity throughout your development lifecycle. Elevate your skills as you explore cutting-edge topics such as building intelligent apps using custom LLM-based chat services, mastering dependency injection, optimizing performance through testing, and Docker containerization. Harness the power of cloud-native development with .NET Aspire, unlocking the benefits of modern cloud platforms. With guidance on software architecture best practices, this book empowers you to build robust, scalable and maintainable applications. Advance your career with invaluable insights on job readiness and interview preparation, positioning yourself as a top-tier candidate in today's competitive job market. Whether you're a seasoned .NET professional or an aspiring developer looking to enhance your skills, this book is your ultimate companion on the journey to .NET mastery.What you will learn Make the most of code editor tools for efficient development Learn advanced debugging techniques and troubleshooting strategies Understand how to protect data and applications using cryptography Build a custom LLM-based chat service Discover how to master dependency injection Optimize performance through benchmarking and testing Delve into cloud-native development using .NET Aspire Advance your career with advice on job readiness and interviews Who this book is for .NET professionals seeking to enhance their expertise, as well as aspiring developers aiming to advance their careers in the field. This book caters to individuals eager to master essential .NET tools, refine their development practices, explore advanced techniques and cutting-edge tools, and prepare themselves for job opportunities and interviews in the competitive landscape of .NET development




Apps and Services with .NET 7


Book Description

Bestselling author Mark Price is back to guide you through the coolest and most common technologies a .NET developer should know: Blazor, .NET MAUI, gRPC, GraphQL, SQL Server, Cosmos DB, OData, SignalR, Azure Functions, and more! Purchase of the print or Kindle book includes a free eBook in PDF format. Key FeaturesBuild services using a variety of technologies including Web API, OData, gRPC, GraphQL, SignalR, and Azure FunctionsLearn how to use specialized libraries to improve all aspects of your applications, including performance and localizationLeverage .NET MAUI to develop cross-platform desktop and mobile apps with easeBook Description Apps and Services with .NET 7 is for .NET 6 and .NET 7 developers who want to kick their C# and .NET understanding up a gear by learning the practical skills and knowledge they need to build real-world applications and services. It covers specialized libraries that will help you monitor and improve performance, secure your data and applications, and internationalize your code and apps. With chapters that put a variety of technologies into practice, including Web API, OData, gRPC, GraphQL, SignalR, and Azure Functions, this book will give you a broader scope of knowledge than other books that often focus on only a handful of .NET technologies. It covers the latest developments, libraries, and technologies that will help keep you up to date. You'll also leverage .NET MAUI to develop mobile apps for iOS and Android as well as desktop apps for Windows and macOS. What you will learnLearn how to build more efficient, secure, and scalable apps and servicesLeverage specialized .NET libraries to improve your applicationsImplement popular third-party libraries like Serilog and FluentValidationBuild cross-platform apps with .NET MAUI and integrate with native mobile featuresGet familiar with a variety of technologies for implementing services like gRPC and GraphQLExplore Blazor WebAssembly and use open-source Blazor component librariesStore and manage data locally and in the cloud with SQL Server and Cosmos DBWho this book is for This book is for .NET developers interested in exploring more specialized libraries and implementation fundamentals behind building services and apps. You'll need to know your way around .NET and C# quite well before you can dive in, so if you want to work your way up to this book, pick up Mark's other .NET book, C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals, first.




C# 8 and .NET Core 3 Projects Using Azure


Book Description

Get up to speed with using C# 8 and .NET Core 3.0 features to build real-world .NET Core applications Key FeaturesLearn the core concepts of web applications, serverless computing, and microservicesCreate an ASP.NET Core MVC application using controllers, routing, middleware and authenticationBuild modern applications using cutting-edge services from Microsoft AzureBook Description .NET Core is a general-purpose, modular, cross-platform, and opensource implementation of .NET. The latest release of .NET Core 3 comes with improved performance and security features, along with support for desktop applications. .NET Core 3 is not only useful for new developers looking to start learning the framework, but also for legacy developers interested in migrating their apps. Updated with the latest features and enhancements, this updated second edition is a step-by-step, project-based guide. The book starts with a brief introduction to the key features of C# 8 and .NET Core 3. You'll learn to work with relational data using Entity Framework Core 3, before understanding how to use ASP.NET Core. As you progress, you’ll discover how you can use .NET Core to create cross-platform applications. Later, the book will show you how to upgrade your old WinForms apps to .NET Core 3. The concluding chapters will then help you use SignalR effectively to add real-time functionality to your applications, before demonstrating how to implement MongoDB in your apps. Finally, you'll delve into serverless computing and how to build microservices using Docker and Kubernetes. By the end of this book, you'll be proficient in developing applications using .NET Core 3. What you will learnUnderstand how to incorporate the Entity Framework Core 3 to build ASP.NET Core MVC applicationsCreate a real-time chat application using Azure’s SignalR serviceGain hands-on experience of working with Cosmos DBDevelop an Azure Function and interface it with an Azure Logic AppExplore user authentication with Identity Server and OAuth2Understand how to use Azure Cognitive Services to add advanced functionalities with minimal codeGet to grips with running a .NET Core application with KubernetesWho this book is for This book is for developers and programmers of all levels who want to build real-world projects and explore the new features of .NET Core 3. Developers working on legacy desktop software who are looking to migrate to .NET Core 3 will also find this book useful. Basic knowledge of .NET Core and C# is assumed.




.NET in Action, Second Edition


Book Description

Learn to build standout line-of-business applications using Microsoft’s .NET Framework, the premier platform for enterprise business development. Based on the bestselling .NET Core in Action, the new .NET in Action, Second Edition has been completely rewritten and updated by original author Dustin Metzgar—an industry veteran who helped develop both the original .NET Framework and .NET Core. .NET in Action, Second Edition presents the big picture of .NET application development, introducing core concepts like: Designing applications to take full advantage of .NET 8 Integrating the latest C# and .NET features Building web services and applications with ASP.NET Core Working with data in files and remote services, and databases via Entity Framework Core Verifying code with unit and integration tests Make applications ready for internationalization Benchmarking and analyzing application performance .NET in Action, Second Edition offers a clear-headed introduction to implementing full-featured, cross-platform professional applications on the Microsoft .NET platform. It compiles the must-know skills of .NET into a format that’s clear and easy to follow. In each chapter, you’ll build new applications, pick up essential .NET skills, and test your knowledge against handy exercises. Foreword by Scott Hanselman. About the technology The Microsoft .NET platform is a godsend for application developers. .NET provides a comprehensive framework, with consistent tooling for web, mobile, and line-of-business applications, high-performance games, and massive distributed systems. A perfect blend of power and flexibility, its just-in-time compiler runs multiple languages, including C#, Visual Basic, and F#. About the book .NET in Action, Second Edition teaches you to build cross-platform applications and services on the .NET platform. It gives you the big picture, systematically presenting the features you need to ship high-quality apps, without bogging you down in low-level details. You’ll learn to benchmark and analyze performance issues, secure your sites and products, and explore modern architectures like microservices. This totally-revised new edition now covers .NET 8 and new C# language features, along with updates to ASP.NET Core and Entity Framework Core. What's inside Take advantage of the latest C# and .NET features Secure your applications Performance analysis and tuning Modern application design techniques About the reader For beginning-to-intermediate developers on any platform. No .NET experience required. About the author Dustin Metzgar is a seasoned developer and architect. At Microsoft, Dustin contributed to the .NET Framework, .NET Core, and the open sourcing of .NET. The technical editor on this book was Gerald Versluis. Table of Contents PART 1 1 Why.NET? 2 Building a console application 3 Creating web ser vices and applications with ASP.NET Core PART 2 4 File and network I/O 5 Using Entity Framework Core with relational databases PART 3 6 Unit-testing fundamentals 7 Substituting dependencies in tests 8 Integration testing PART 4 9 Security 10 Performance and profiling 11 Handling failures 12 Building world-ready applications 13 Working with containers




.NET MAUI Cross-Platform Application Development


Book Description

Build apps using .NET MAUI and Blazor with this comprehensive, revised guide for .NET 8. Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features Handle data effectively with expanded coverage on the MVVM model and data binding Integrate platform-specific code using plugins and custom controls Migrate from Xamarin.Forms to .NET MAUI for the latest hybrid app development capabilities Book DescriptionAn evolution of Xamarin.Forms, .NET MAUI is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that’ll run on Android, iOS, macOS, and Windows from a single shared codebase. In this revised edition of .NET MAUI Cross-Platform Application Development you will be introduced to .NET 8 and get up to speed with app development in no time. The book begins by showing you how to develop a cross-platform application using .NET MAUI, including guidance for migrating from Xamarin.Forms. You’ll gain all the knowledge needed to create a cross-platform application for Android, iOS, macOS, and Windows following an example project step by step. As you advance, you’ll integrate the latest frontend technology into your app using Blazor components, including the new Blazor Bindings feature. After this, you’ll learn how to test and deploy your apps. With new coverage on creating mock .NET MAUI components, you can develop unit tests for your application. You will additionally learn how to perform Razor component testing using bUnit. By the end of this book, you’ll have learned how to develop your own cross-platform applications using .NET MAUI.What you will learn Develop high-performance apps with logical user interfaces Improve the maintainability of apps using the MVVM design pattern Understand the progression from Xamarin.Forms and how to migrate to .NET Delve into templated components and Razor class libraries for crafting Blazor UI elements Publish your creations to major app stores with guidance on preparation and processes Extend your testing repertoire with bUnit for Razor components for reliable unit testing Who this book is for This book is for mobile developers interested in cross-platform application development with working experience of the .NET Core framework, as well as junior engineers who’ve just begun their career in mobile app development. Native app developers (desktop) or Xamarin developers who want to migrate to .NET MAUI will also benefit from this book. Basic knowledge of modern object-oriented programming languages, such as C#, Java or Kotlin, is assumed.