@@ -16,7 +16,7 @@ public class LogClient : ILogClient
1616 {
1717 private static bool _ServicePointSet = false ;
1818 private LogQueue _LogQueue = null ;
19- private StackifyHttpClient _HttpClient = null ;
19+ private HttpClient _HttpClient = null ;
2020
2121 private readonly ErrorGovernor governor = new ErrorGovernor ( ) ;
2222
@@ -41,7 +41,7 @@ private void EnsureHttpClient()
4141 {
4242 if ( _HttpClient == null )
4343 {
44- _HttpClient = new StackifyHttpClient ( _ApiKey , _ApiUrl ) ;
44+ _HttpClient = new HttpClient ( _ApiKey , _ApiUrl ) ;
4545 }
4646 }
4747
@@ -274,7 +274,7 @@ private Models.LogMsgGroup CreateDefaultMsgGroup()
274274 }
275275
276276
277- internal Task < StackifyHttpClient . StackifyWebResponse > SendLogsByGroups ( LogMsg [ ] messages )
277+ internal Task < HttpClient . StackifyWebResponse > SendLogsByGroups ( LogMsg [ ] messages )
278278 {
279279 try
280280 {
@@ -288,15 +288,15 @@ private Models.LogMsgGroup CreateDefaultMsgGroup()
288288
289289 if ( _HttpClient . IsRecentError ( ) )
290290 {
291- var tcs = new TaskCompletionSource < StackifyHttpClient . StackifyWebResponse > ( ) ;
292- tcs . SetResult ( new StackifyHttpClient . StackifyWebResponse ( ) { Exception = new Exception ( "Unable to send logs at this time due to recent error: " + ( _HttpClient . LastErrorMessage ?? "" ) ) } ) ;
291+ var tcs = new TaskCompletionSource < HttpClient . StackifyWebResponse > ( ) ;
292+ tcs . SetResult ( new HttpClient . StackifyWebResponse ( ) { Exception = new Exception ( "Unable to send logs at this time due to recent error: " + ( _HttpClient . LastErrorMessage ?? "" ) ) } ) ;
293293 return tcs . Task ;
294294 }
295295
296296 if ( ! identified )
297297 {
298- var tcs = new TaskCompletionSource < StackifyHttpClient . StackifyWebResponse > ( ) ;
299- tcs . SetResult ( new StackifyHttpClient . StackifyWebResponse ( ) { Exception = new Exception ( "Unable to send logs at this time. Unable to identify app" ) } ) ;
298+ var tcs = new TaskCompletionSource < HttpClient . StackifyWebResponse > ( ) ;
299+ tcs . SetResult ( new HttpClient . StackifyWebResponse ( ) { Exception = new Exception ( "Unable to send logs at this time. Unable to identify app" ) } ) ;
300300 return tcs . Task ;
301301 }
302302
@@ -333,8 +333,8 @@ private Models.LogMsgGroup CreateDefaultMsgGroup()
333333 {
334334 Utils . StackifyAPILogger . Log ( ex . ToString ( ) ) ;
335335
336- var tcs = new TaskCompletionSource < StackifyHttpClient . StackifyWebResponse > ( ) ;
337- tcs . SetResult ( new StackifyHttpClient . StackifyWebResponse ( ) { Exception = ex } ) ;
336+ var tcs = new TaskCompletionSource < HttpClient . StackifyWebResponse > ( ) ;
337+ tcs . SetResult ( new HttpClient . StackifyWebResponse ( ) { Exception = ex } ) ;
338338 return tcs . Task ;
339339 }
340340
0 commit comments