C# 클래스 console_application.AgentController

In an MVC web application, this class would derive from a standard MVC Controller, This is a simplified console application, but I have tried to use the same names as MVC does, to make it easier to map these concepts to the MVC world.
파일 보기 프로젝트 열기: stephanhoekstra/clean-architecture 1 사용 예제들

공개 메소드들

메소드 설명
AgentController ( ContactAgentInteractor interactor, ContactAgentResponsePresenter presenter ) : console_application.Presentation
Contact ( ContactAgentRequestMessage requestMessage ) : void

메소드 상세

AgentController() 공개 메소드

public AgentController ( ContactAgentInteractor interactor, ContactAgentResponsePresenter presenter ) : console_application.Presentation
interactor ContactAgentInteractor
presenter console_application.Presentation.ContactAgentResponsePresenter
리턴 console_application.Presentation

Contact() 공개 메소드

public Contact ( ContactAgentRequestMessage requestMessage ) : void
requestMessage ContactAgentRequestMessage /// In an MVC application, the requestMessage object would be constructed based on user input. /// You could use a ModelBinder pattern to achieve this with a minimum ammount of code. ///
리턴 void