I inherited some code in dotnet that I am trying to refactor to use dependency injection. In Spring I have used the @PostConstruct annotation to set up services after Dependency Injection is finished. Is there an equivalent in dotnet?
Spring calls methods annotated with @PostConstruct only once, just after the initialization of the class.