- First, let's create an interface named IOperation with a getter on a Guid type, and four interfaces that represent a task for each life cycle available:
- We will now implement these interfaces in an Operation class:
- In the ConfigurationServices method of the Startup.cs class, we manage the lifetime for each interface:
- Now, let's create an OperationService class that we will use in an MVC controller and execute in several ...