File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 1515 <Deterministic >false</Deterministic >
1616 <Platforms >AnyCPU;x64;x86</Platforms >
1717 <Configurations >Debug;Release</Configurations >
18+ <!-- <GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>-->
1819 </PropertyGroup >
1920 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
2021 <DefineConstants >TRACE;DEBUG</DefineConstants >
6263 <PrivateAssets >all</PrivateAssets >
6364 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
6465 </PackageReference >
66+ <!-- <PackageReference Include="System.Resources.Extensions" Version="8.0.0" />-->
6567 </ItemGroup >
6668 <ItemGroup >
6769 <Reference Include =" System.Configuration.Install" />
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Diagnostics ;
4- using System . Linq ;
54using System . Text ;
65using System . Threading ;
76using System . Threading . Tasks ;
@@ -40,10 +39,7 @@ public MemoryGroup(ISettings settings)
4039 return ;
4140 }
4241
43- if ( ! TryAddDimms ( settings ) )
44- {
45- StartRetryTask ( settings ) ;
46- }
42+ StartRetryTask ( settings ) ;
4743 }
4844
4945 public event HardwareEventHandler HardwareAdded ;
@@ -119,19 +115,14 @@ private bool TryAddDimms(ISettings settings)
119115 private void StartRetryTask ( ISettings settings )
120116 {
121117 _cancellationTokenSource = new CancellationTokenSource ( ) ;
122-
123118 Task . Run ( async ( ) =>
124119 {
125120 int retryRemaining = 5 ;
126-
127121 while ( ! _cancellationTokenSource . IsCancellationRequested && -- retryRemaining > 0 )
128122 {
129- await Task . Delay ( TimeSpan . FromSeconds ( 2.5 ) , _cancellationTokenSource . Token ) . ConfigureAwait ( false ) ;
130-
131123 if ( TryAddDimms ( settings ) )
132- {
133124 break ;
134- }
125+ await Task . Delay ( TimeSpan . FromSeconds ( 2.5 ) , _cancellationTokenSource . Token ) . ConfigureAwait ( false ) ;
135126 }
136127 } , _cancellationTokenSource . Token ) ;
137128 }
Original file line number Diff line number Diff line change 101101 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
102102 <PackageReference Include =" Mono.Posix.NETStandard" Version =" 1.0.0" />
103103 </ItemGroup >
104- </Project >
104+ </Project >
You can’t perform that action at this time.
0 commit comments