Dependency Injection, HttpClient, and Tracing and Exception Handling

API    |    Intermediate
  • 16 Videos | 1h 1m 21s
  • Earns a Badge
ASP.NET Web API is a framework created by Microsoft that allows developers use their existing skills to create HTTP services using the .NET Framework. In this course, you'll be introduced to fundamental concepts for building HTTP services with ASP.NET Web API, beginning with the principles of SOLID, inversion of control (IoC) and dependency injection, abstraction of business logic, and how to create API clients with the .NET framework. Then you’ll learn how to make requests with HttpClient, the role of the client-side pipeline, how to add message handlers to HttpClient, and the role of exception filters, loggers, and handlers. Finally, you’ll discover how to use the IncludeErrorDetailPolicy, how to use tracing, and how to create ITraceWriters to implement custom tracers. This course was originally created by Global Knowledge (GK). 

WHAT YOU WILL LEARN

  • define the design principles of SOLID
    describe the principles inversion of control (IoC) and dependency injection
    discuss how to create business logic abstractions with interfaces
    describe how to integrate Autofac for dependency injection
    discuss considerations for creating API clients with the .NET framework
    describe how to make requests with HttpClient
    discuss the role of the client-side pipeline and injecting message handlers
    describe how to add message handlers to HttpClient
  • discuss how to use retry handlers for when a service has become unavailable
    describe the role of exception filters, exception loggers, and exception handlers
    discuss how to create an exception logger in Web API using IExceptionLogger
    describe how to create custom exception handlers in ASP.NET Web API using IExceptionHandler
    discuss how to use the IncludeErrorDetailPolicy enumeration to control how much error information is returned to a client
    describe how to use tracing to follow the execution of code and view information flow
    discuss how to enable tracing in a Web API
    describe how to create ITraceWriters to implement custom tracers

IN THIS COURSE

  • Playable
    1. 
    SOLID Principles
    2m 35s
    UP NEXT
  • Playable
    2. 
    Understanding IoC and Dependency Injection
    2m 54s
  • Locked
    3. 
    Abstracting Business Logic with Interfaces
    5m 52s
  • Locked
    4. 
    Integrating Autofac
    9m 1s
  • Locked
    5. 
    Creating API Clients
    2m 22s
  • Locked
    6. 
    Making Requests with HttpClient
    8m 40s
  • Locked
    7. 
    Client-Side Pipeline
    1m 35s
  • Locked
    8. 
    Adding Message Handlers to HttpClient
    6m 4s
  • Locked
    9. 
    Retrying Request
    4m 29s
  • Locked
    10. 
    Global Exception Handling
    2m 51s
  • Locked
    11. 
    Creating an IExceptionLogger
    2m 47s
  • Locked
    12. 
    Creating an IExceptionHandler
    2m 13s
  • Locked
    13. 
    Customize Error Detail Policy
    1m 18s
  • Locked
    14. 
    Tracing Your Web API
    1m 47s
  • Locked
    15. 
    Enabling Tracing
    2m 38s
  • Locked
    16. 
    Implementing a Custom Tracer
    4m 15s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE