protected override async Task SetupJobManager() { manager = ctx.Resolve <BitcoinJobManager <TJob, TBlockTemplate> >(); manager.Configure(poolConfig, clusterConfig); await manager.StartAsync(); disposables.Add(manager.Jobs.Subscribe(OnNewJob)); // we need work before opening the gates await manager.Jobs.Take(1).ToTask(); }
protected override async Task SetupJobManager() { manager = CreateJobManager(); manager.Configure(poolConfig, clusterConfig); await manager.StartAsync(); disposables.Add(manager.Jobs.Subscribe(OnNewJob)); // we need work before opening the gates await manager.Jobs.Take(1).ToTask(); }
protected override async Task SetupJobManager(CancellationToken ct) { manager = CreateJobManager(); manager.Configure(poolConfig, clusterConfig); await manager.StartAsync(ct); if (poolConfig.EnableInternalStratum == true) { disposables.Add(manager.Jobs.Subscribe(OnNewJob)); // we need work before opening the gates await manager.Jobs.Take(1).ToTask(ct); } }