コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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);
            }
        }