File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
cybersource-rest-client-netstandard/cybersource-rest-client-netstandard
generator/cybersource-csharp-template Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -558,14 +558,19 @@ public async System.Threading.Tasks.Task<object> CallApiAsync(
558558 }
559559 }
560560
561- if ( logUtility . IsMaskingEnabled ( logger ) )
562- {
563- logger . Debug ( $ "HTTP Request Headers :\n { logUtility . MaskSensitiveData ( headerPrintOutput . ToString ( ) ) } ") ;
564- }
565- else
566- {
567- logger . Debug ( $ "HTTP Request Headers :\n { headerPrintOutput . ToString ( ) } ") ;
568- }
561+ // set timeout
562+ request . Timeout = Configuration . Timeout ;
563+ // set user agent
564+ RestClient . Options . UserAgent = Configuration . UserAgent ;
565+
566+ if ( logUtility . IsMaskingEnabled ( logger ) )
567+ {
568+ logger . Debug ( $ "HTTP Request Headers :\n { logUtility . MaskSensitiveData ( headerPrintOutput . ToString ( ) ) } ") ;
569+ }
570+ else
571+ {
572+ logger . Debug ( $ "HTTP Request Headers :\n { headerPrintOutput . ToString ( ) } ") ;
573+ }
569574
570575 InterceptRequest ( request ) ;
571576 var response = await RestClient . ExecuteAsync ( request ) ;
Original file line number Diff line number Diff line change @@ -613,9 +613,9 @@ namespace {{packageName}}.Client
613613 }
614614
615615 // set timeout
616- RestClient .Timeout = Configuration.Timeout;
616+ request .Timeout = Configuration.Timeout;
617617 // set user agent
618- RestClient.UserAgent = Configuration.UserAgent;
618+ RestClient.Options. UserAgent = Configuration.UserAgent;
619619
620620 if (logUtility.IsMaskingEnabled(logger))
621621 {
You can’t perform that action at this time.
0 commit comments