File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Flagsmith.FlagsmithClient Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3030 - run : dotnet pack --configuration Release --output ${{ env.NuGetDirectory }}
3131
3232 # Publish the NuGet package as an artifact, so they can be used in the following jobs
33- - uses : actions/upload-artifact@v3
33+ - uses : actions/upload-artifact@v4
3434 with :
3535 name : nuget
3636 if-no-files-found : error
4949 uses : actions/setup-dotnet@v4
5050
5151 # Download the NuGet package created in the previous job
52- - uses : actions/download-artifact@v3
52+ - uses : actions/download-artifact@v4
5353 with :
5454 name : nuget
5555 path : ${{ env.NuGetDirectory }}
7070 - validate_nuget
7171 steps :
7272 # Download the NuGet package created in the previous job
73- - uses : actions/download-artifact@v3
73+ - uses : actions/download-artifact@v4
7474 with :
7575 name : nuget
7676 path : ${{ env.NuGetDirectory }}
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public async Task Flush()
7171 _CustomHeaders ? . ForEach ( kvp => request . Headers . Add ( kvp . Key , kvp . Value ) ) ;
7272 var tokenSource = new CancellationTokenSource ( ) ;
7373 tokenSource . CancelAfter ( TimeSpan . FromSeconds ( _TimeOut ) ) ;
74- var response = await _HttpClient . SendAsync ( request , tokenSource . Token ) ;
74+ var response = await _HttpClient . SendAsync ( request , tokenSource . Token ) . ConfigureAwait ( false ) ;
7575 response . EnsureSuccessStatusCode ( ) ;
7676 _Logger ? . LogInformation ( "Analytics posted: " + analyticsJson ) ;
7777 AnalyticsDataThreads . Clear ( ) ;
@@ -116,7 +116,7 @@ public async Task TrackFeature(string featureName)
116116 int _LastFlushedInterval = ( DateTime . Now - _LastFlushed ) . Seconds ;
117117
118118 if ( _LastFlushedInterval > _FlushIntervalSeconds )
119- await Flush ( ) ;
119+ await Flush ( ) . ConfigureAwait ( false ) ;
120120 }
121121
122122 /// <summary>
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public async Task<IFlag> GetFlag(string featureName)
2929
3030 }
3131 if ( _AnalyticsProcessor != null )
32- await _AnalyticsProcessor . TrackFeature ( flag . GetFeatureName ( ) ) ;
32+ await _AnalyticsProcessor . TrackFeature ( flag . GetFeatureName ( ) ) . ConfigureAwait ( false ) ;
3333 return flag ;
3434 }
3535 public List < IFlag > AllFlags ( ) => _Flags ;
You can’t perform that action at this time.
0 commit comments