public InteractionProcessor(IMessageSender sender, LifelineViewport viewport, NuclearStorage storage) { _sender = sender; _viewport = viewport; _storage = storage; CurrentStoryId = new StoryId(Guid.Empty); }
public Form1(CqrsEngineHost host, IObservable<ISystemEvent> observable) { _host = host; _observable = observable; InitializeComponent(); var sender = _host.Resolve<IMessageSender>(); var storage = _host.Resolve<NuclearStorage>(); _viewport = new LifelineViewport(_rich, _status); _processor = new InteractionProcessor(sender, _viewport, storage); _panel.BackColor = Solarized.Base3; _rich.BackColor = Solarized.Base3; _rich.ForeColor = Solarized.Base00; _input.BackColor = Solarized.Base03; _input.ForeColor = Solarized.Base0; _status.BackColor = Solarized.Base03; _status.ForeColor = Solarized.Base01; }
public InteractionResponse(LifelineViewport viewport, Action <StoryId, string> action, IMessageSender sender) { _viewport = viewport; _action = action; _sender = sender; }