2012-05-13 9 views
3

を使用して、異なるimplimentationを解決するために、私はISomeServiceどのようにウィンザー城

public class FirstController 
{ 
    public FirstController(ISomeService someService) 
    { 
    } 
} 

public class SecondController 
{ 
    public SecondController(ISomeService someService) 
    { 
    } 
} 

ISomeServiceに依存2つのコントローラを持っていることはIRepositoryに依存1つの実装を、持っていますおよびSecondRepository

FirstRepositorySecondControllerSecondRepositoryを使用して解決するためにコンテナを設定するにはどうすればよいですか。

答えて

関連する問題