src/Stratis.FederatedSidechains.AdminDashboard/Services/FetchingBackgroundService.cs
/// <summary>
/// Start the Fetching Background Service to Populate Dashboard Datas
/// </summary>
Start the Fetching Background Service to Populate Dashboard Datas
Start the Fetching Background Service to Populate Dashboard Datas
public async Task StartAsync(CancellationToken cancellationToken)
        {
            DoWorkAsync(null);
            this.dataRetrieverTimer = new Timer(DoWorkAsync, null, TimeSpan.Zero, TimeSpan.FromSeconds(5));
            await Task.CompletedTask;
        }
public async Task StartAsync ( CancellationToken cancellationToken ) { DoWorkAsync ( null ) ; this . dataRetrieverTimer = new Timer ( DoWorkAsync , null , TimeSpan . Zero , TimeSpan . FromSeconds ( 5 ) ) ; await Task . CompletedTask ; }
Start the Fetching Background Service to Populate Dashboard Datas
Start the Fetching Background Service to Populate Dashboard Datas
//TODO: Add timer setting in configuration file
cancellationToken
CancellationToken