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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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