public ObsController(ILogger <ObsController> logger, IReplayContext context, AppSettings settings, OBSWebsocket obs, CancellationTokenProvider tokenProvider) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.context = context ?? throw new ArgumentNullException(nameof(context)); this.settings = settings ?? throw new ArgumentNullException(nameof(settings)); this.obs = obs ?? throw new ArgumentNullException(nameof(obs)); this.tokenProvider = tokenProvider ?? throw new ArgumentNullException(nameof(tokenProvider)); }
public GameController(ILogger <GameController> logger, IReplayContext context, AppSettings settings, CaptureStrategy captureStrategy, OcrEngine engine, CancellationTokenProvider tokenProvider) { this.logger = logger ?? throw new ArgumentNullException(nameof(settings)); this.context = context ?? throw new ArgumentNullException(nameof(context)); this.settings = settings ?? throw new ArgumentNullException(nameof(settings)); this.captureStrategy = captureStrategy ?? throw new ArgumentNullException(nameof(settings)); this.ocrEngine = engine ?? throw new ArgumentNullException(nameof(settings));; this.tokenProvider = tokenProvider ?? throw new ArgumentNullException(nameof(settings)); }
public Spectator( ILogger <Spectator> logger, AppSettings settings, IReplayContext sessionHolder, IGameController controller, ITalentNotifier talentsNotifier, CancellationTokenProvider tokenProvider) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.settings = settings ?? throw new ArgumentNullException(nameof(settings)); this.context = sessionHolder ?? throw new ArgumentNullException(nameof(sessionHolder)); this.controller = controller ?? throw new ArgumentNullException(nameof(controller)); this.talentsNotifier = talentsNotifier ?? throw new ArgumentNullException(nameof(talentsNotifier)); consoleTokenProvider = tokenProvider ?? throw new ArgumentNullException(nameof(tokenProvider)); panelTimes = new() { { Panel.Talents, settings.PanelTimes.Talents }, { Panel.DeathDamageRole, settings.PanelTimes.DeathDamageRole },
public TalentNotifier(ILogger <TalentNotifier> logger, IReplayContext context, ITwitchExtensionService extensionService) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.context = context ?? throw new ArgumentNullException(nameof(context)); this.extensionService = extensionService ?? throw new ArgumentNullException(nameof(extensionService)); }