コード例 #1
0
 public MessagesController(IMessageMatcherProcessor messageMatcherProcesor,
                           IChatRepository chatRepository,
                           ITextAnalyzerService textAnalyzerService)
 {
     _messageMatcherProcessor = messageMatcherProcesor;
     _chatRepository          = chatRepository;
     _textAnalyzerService     = textAnalyzerService;
 }
コード例 #2
0
 //В конструкторе контроллера происходит инъекция сервисов через их интерфейсы
 public TextAnalyzerController(ITextAnalyzerService textAnalyzerService)
 {
     _textAnalyzerService = textAnalyzerService;
 }
コード例 #3
0
 public TwitterAnalyzer(ITextAnalyzerService textAnalyzerService,
                        ITwitterRepository twitterRepository)
 {
     _textAnalyzerService = textAnalyzerService;
     _twitterRepository   = twitterRepository;
 }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: bpugh/TextTest
 public HomeController(ITextAnalyzerService textAnalyzer)
 {
     _textAnalyzer = textAnalyzer;
 }