/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerService"/> class. /// </summary> /// <param name="planningPoker">The planning poker controller.</param> public PlanningPokerService(D.IPlanningPoker planningPoker) { if (planningPoker == null) { throw new ArgumentNullException("planningPoker"); } this.PlanningPoker = planningPoker; }
/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerHub"/> class. /// </summary> /// <param name="planningPoker">The planning poker controller.</param> /// <param name="clientContext">Interface to send messages to client.</param> /// <param name="logger">Logger instance to log events.</param> public PlanningPokerHub(D.IPlanningPoker planningPoker, IHubContext <PlanningPokerHub, IPlanningPokerClient> clientContext, ILogger <PlanningPokerHub> logger) { PlanningPoker = planningPoker ?? throw new ArgumentNullException(nameof(planningPoker)); _clientContext = clientContext ?? throw new ArgumentNullException(nameof(clientContext)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance of the <see cref="GetMessagesTask"/> class. /// </summary> /// <param name="planningPoker">The planning poker controller.</param> public GetMessagesTask(D.IPlanningPoker planningPoker) { this.PlanningPoker = planningPoker; }
/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerService"/> class. /// </summary> /// <param name="planningPoker">The planning poker controller.</param> public PlanningPokerService(D.IPlanningPoker planningPoker) { PlanningPoker = planningPoker ?? throw new ArgumentNullException(nameof(planningPoker)); }