diff --git a/src/Twilio/Clients/NoAuth/TwilioNoAuthRestClient.cs b/src/Twilio/Clients/NoAuth/TwilioNoAuthRestClient.cs index c9e823310..f58228a48 100644 --- a/src/Twilio/Clients/NoAuth/TwilioNoAuthRestClient.cs +++ b/src/Twilio/Clients/NoAuth/TwilioNoAuthRestClient.cs @@ -84,12 +84,6 @@ public Response Request(NoAuthRequest request) if (LogLevel == "debug") LogRequest(request); - if (Region != null) - request.Region = Region; - - if (Edge != null) - request.Edge = Edge; - if (UserAgentExtensions != null) request.UserAgentExtensions = UserAgentExtensions; diff --git a/src/Twilio/Twilio.cs b/src/Twilio/Twilio.cs index 551eb95de..efb2a50c4 100644 --- a/src/Twilio/Twilio.cs +++ b/src/Twilio/Twilio.cs @@ -207,7 +207,7 @@ public static ITwilioRestClient GetNoAuthRestClient() } AuthStrategy noauthstrategy = new NoAuthStrategy(); - _noAuthRestClient = new TwilioRestClient(_username, _password, authstrategy: noauthstrategy, accountSid: _accountSid, region: _region, edge: _edge) + _noAuthRestClient = new TwilioRestClient(_username, _password, authstrategy: noauthstrategy, accountSid: _accountSid) { LogLevel = _logLevel }; diff --git a/src/Twilio/TwilioOrgsTokenAuth.cs b/src/Twilio/TwilioOrgsTokenAuth.cs index 0593af2e4..aa2f233db 100644 --- a/src/Twilio/TwilioOrgsTokenAuth.cs +++ b/src/Twilio/TwilioOrgsTokenAuth.cs @@ -188,7 +188,7 @@ public static TwilioNoAuthRestClient GetNoAuthRestClient() return _noAuthRestClient; } - _noAuthRestClient = new TwilioNoAuthRestClient(region: _region, edge: _edge) + _noAuthRestClient = new TwilioNoAuthRestClient() { LogLevel = _logLevel };