Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

WebHost as a IHostedService #1369

@dbones

Description

@dbones

Is it possible to make the Webhost, a HostedService, maybe by removing the HostedServiceExecutor (from its internals), or providing another easy to use mechanism setup and host Http/WebApi/Mvc.

So I can create a IHost, and choose to host WebApi/Mvc as a background service.

the reasoning for this is if we consider the WebApi is an Adaptor (as in Ports/Adaptors) this would be one of possibly others (typically I would also have AMQP consumers for a bus, using something like EasyNetQ or MassTransit) all (consistantly) hosted via IHostedService.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions