Ejemplo n.º 1
0
 public TerminalsHub() //ILifetimeScope lifetimeScope
 {
     // Create a lifetime scope for the hub.
     //_hubLifetimeScope = lifetimeScope.BeginLifetimeScope();
     mainService = Program.Container.Resolve <IMainService>();
     terminal    = Program.Container.Resolve <ITerminalEvents>();
 }
Ejemplo n.º 2
0
        public TerminalVm(IStateService stateService, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
        {
            this.terminalTasks = terminalTasks.notNull();
            this.stateService = stateService.notNull();
            this.terminalEvents = terminalEvents.notNull();

            currentState = stateService.CurrentState;
            terminalEvents.EndOfService += (s, e) => terminalEvents_EndOfTask_handling();
            terminalEvents.OnTouchNumber += (s, e) => terminalEvents_OnTouchNumber_handling();
        }
Ejemplo n.º 3
0
        protected ABoardVm(BoardDto board, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
        {
            board.notNull();
            terminalEvents.OnTouchNumber += (s, e) => terminalEvents_OnTouchNumber_handling(e.Value);
            this.terminalTasks = terminalTasks.notNull();

            Position = board.Position;
            Numbers = new GuessKeyboardVm(board, terminalTasks);
            Keyboard = new BoardKeyboardVm(Position, terminalTasks);
        }
Ejemplo n.º 4
0
 public ServerSignalsHandler()
 {
     xtrade    = MainService.thisGlobal; //.Resolve<IMainService>();
     terminals = MainService.thisGlobal.Container.Resolve <ITerminalEvents>();
     log       = MainService.thisGlobal.Container.Resolve <IWebLog>();
 }
Ejemplo n.º 5
0
 public TemplateRVm(TemplateDto template, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
     : base(template, terminalTasks)
 {
     boards = template.Boards.Select(board => new BoardRVm(board, terminalEvents, terminalTasks));
 }
Ejemplo n.º 6
0
 public BoardCVm(BoardDto board, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
     : base(board, terminalEvents, terminalTasks)
 {
     Description = board.Combo + " of 49";
     Combo = new ComboSelector(board, terminalTasks);
 }
Ejemplo n.º 7
0
 public BoardRVm(BoardDto board, ITerminalEvents terminalEvents, ITerminalTasks terminalTasks)
     : base(board, terminalEvents, terminalTasks)
 {
 }