public PlanningPokerHub( IPlanningPokerEngine pokerEngine, IPlanningPokerEventBroadcaster eventBroadcaster) { _pokerEngine = pokerEngine; _eventBroadcaster = eventBroadcaster; }
public PlanningPokerEventBroadcaster( IHubContext <PlanningPokerHub> hubContext, IPlanningPokerEngine pokerEngine, IDateTimeProvider dateTimeProvider) { _hubContext = hubContext; _dateTimeProvider = dateTimeProvider; pokerEngine.LogUpdated += OnLogUpdated; pokerEngine.PlayerKicked += OnPlayerKicked; pokerEngine.RoomCleared += OnRoomCleared; pokerEngine.RoomUpdated += OnRoomUpdated; }