Skip to main content
Version: 2.x

Dependency Injection

KafkaFlow Dependency Injection framework support is extensible.

Microsoft .NET DI and Unity 5 are natively supported. You can see here how to use them.

Add support for a new Dependency Injection container

Other DI frameworks can be supported by implementing a set of interfaces:

  • IDependencyConfigurator
  • IDependencyResolver
  • IDependencyResolverScope

You can find an example here.

Once the interfaces are implemented, use them the same way you use Unity (see here).