This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
// This piece of code shows that if you do not assign a variable to your Timer (like in Runner.ExecuteWithTimeout_NotWorking) | |
// your timer may be Garbage Collected before its action fires. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal interface IAppSettingsReader | |
{ | |
GasPeriodDto GetGasPeriodFromConfig(); | |
bool IsHourly(); | |
BalanceOverviewFilterDto GetFiltersFromConfig(); | |
} | |
class AppSettingsReader : IAppSettingsReader | |
{ | |
public GasPeriodDto GetGasPeriodFromConfig() |