Azure service fabric actor dependency injection

前端 未结 6 950
予麋鹿
予麋鹿 2021-01-01 14:17

Is there any way to inject dependencies in to the Azure Service Fabric Actor\'s constructor?

6条回答
  •  暖寄归人
    2021-01-01 15:05

    @abatishchev I think you are referring to the Service-Locator antipattern. Both Dependency Injection and Service-Locator are variations of Inversion of Control.

    https://www.martinfowler.com/articles/injection.html

提交回复
热议问题