Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Question about IoC in Epi

$
0
0

Okay, this might be a softball question, but this is my first jump into the IoC in Epi, so I thought I would just ask.

Say I have a service def like this:

[ServiceConfiguration(typeof(IDocumentManagementService), Lifecycle = ServiceInstanceScope.Singleton)]
public class QbankService : IDocumentManagementService

But now I am ready to reuse that interface to define another concrete class. In the places that I use that Interface, how will I tell the code to distigush WHICH implementation I want?

Do I have to have 2 seperate interfaces? Or is there a way when I'm about to either construct or service locate something concrete that I can tell it which one I want?


Viewing all articles
Browse latest Browse all 9076

Trending Articles