.NET Core Microservices - Configure ProductService and HttpClient in Startup

.NET Core Microservices - Configure ProductService and HttpClient in Startup

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

In this video, the process of configuring an HTTP client factory within the startup class of the Mango Web project is explained. The video details how to set up the base path for the Product API using a configuration object and static details. Finally, it covers adding the Product Service to dependency injection as a scoped service, preparing for CRUD operations in the next video.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in configuring the HTTP client factory in the Mango Web project?

Open the settings.json file

Open the startup class file

Create a new HTTP client

Add a new service

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where do you retrieve the base path for the product API?

From the main project file

From the database

From the static details

From the service class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the product API URL in the configuration?

By using a hardcoded string

By reading from a text file

By accessing the configuration object

By calling a function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of service is the product service added as in dependency injection?

Scoped service

Session service

Singleton service

Transient service

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the next step after configuring the HTTP client and adding the product service?

Test the HTTP client

Deploy the application

Write unit tests

Start creating the controller for CRUD operations