We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd28c75 commit a18a74dCopy full SHA for a18a74d
Src/HackerNews/ViewModels/Base/BaseViewModel.cs
@@ -14,11 +14,14 @@ namespace HackerNews
14
abstract class BaseViewModel : INotifyPropertyChanged
15
{
16
static readonly JsonSerializer _serializer = new();
17
- static readonly HttpClient _client = new();
+ static readonly HttpClient _client = new()
18
+ {
19
+ Timeout = TimeSpan.FromMinutes(1)
20
+ };
21
22
readonly AsyncAwaitBestPractices.WeakEventManager _propertyChangedEventManager = new();
23
- static int _networkIndicatorCount;
24
+ static volatile int _networkIndicatorCount;
25
26
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
27
0 commit comments