3
を使用して、異なるimplimentationを解決するために、私はISomeService
どのようにウィンザー城
public class FirstController
{
public FirstController(ISomeService someService)
{
}
}
public class SecondController
{
public SecondController(ISomeService someService)
{
}
}
ISomeService
に依存2つのコントローラを持っていることはIRepository
に依存1つの実装を、持っていますおよびSecondRepository
。
FirstRepository
とSecondController
とSecondRepository
を使用して解決するためにコンテナを設定するにはどうすればよいですか。