コード例 #1
0
 public InteractionProcessor(IMessageSender sender, LifelineViewport viewport, NuclearStorage storage)
 {
     _sender        = sender;
     _viewport      = viewport;
     _storage       = storage;
     CurrentStoryId = new StoryId(Guid.Empty);
 }
コード例 #2
0
 public InteractionProcessor(IMessageSender sender, LifelineViewport viewport, NuclearStorage storage)
 {
     _sender = sender;
     _viewport = viewport;
     _storage = storage;
     CurrentStoryId = new StoryId(Guid.Empty);
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: vishal-h/Farleyfile
        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;
        }
コード例 #4
0
 public InteractionResponse(LifelineViewport viewport, Action <StoryId, string> action, IMessageSender sender)
 {
     _viewport = viewport;
     _action   = action;
     _sender   = sender;
 }