D
D
Denis Bredun2020-08-09 00:19:44
ASP.NET
Denis Bredun, 2020-08-09 00:19:44

Are the service and the request handler pipeline component, that is, the middlewire component, the same thing?

Are the service and the request handler pipeline component, i.e. the middlewire component, the same thing? If not, please explain the difference.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-08-09
@yarosroman

A service is an auxiliary component designed for auxiliary work, such as requesting and processing data, working with the file system, etc., middleware is directly designed to process a request and generate a server response. Services are usually used in controllers, this is as an abstraction layer, usually a service implements some kind of interface so that it can be mocked during unit testing. In short, they are completely different things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question