File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## VNext
4
4
- [ Populate required field Message with "n/a" if it is empty] ( https://github.com/microsoft/ApplicationInsights-dotnet/issues/1066 )
5
+ - [ NLog Target with support for specifying ConnectionString] ( https://github.com/microsoft/ApplicationInsights-dotnet/issues/2897 )
5
6
6
7
## Version 2.22.0
7
8
- no changes since beta.
Original file line number Diff line number Diff line change @@ -187,18 +187,7 @@ protected override void FlushAsync(AsyncContinuation asyncContinuation)
187
187
188
188
try
189
189
{
190
- this . TelemetryClient . Flush ( ) ;
191
- if ( DateTime . UtcNow . AddSeconds ( - 30 ) > this . lastLogEventTime )
192
- {
193
- // Nothing has been written, so nothing to wait for
194
- asyncContinuation ( null ) ;
195
- }
196
- else
197
- {
198
- // Documentation says it is important to wait after flush, else nothing will happen
199
- // https://docs.microsoft.com/azure/application-insights/app-insights-api-custom-events-metrics#flushing-data
200
- System . Threading . Tasks . Task . Delay ( TimeSpan . FromMilliseconds ( 500 ) ) . ContinueWith ( ( task ) => asyncContinuation ( null ) ) ;
201
- }
190
+ this . TelemetryClient . FlushAsync ( System . Threading . CancellationToken . None ) . ContinueWith ( t => asyncContinuation ( t . Exception ) ) ;
202
191
}
203
192
catch ( Exception ex )
204
193
{
You can’t perform that action at this time.
0 commit comments