Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/Twilio/Clients/NoAuth/TwilioNoAuthRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/Twilio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
private static string _username;
private static string _password;
private static AuthStrategy _authstrategy;

Check warning on line 18 in src/Twilio/Twilio.cs

View workflow job for this annotation

GitHub Actions / Test

The field 'TwilioClient._authstrategy' is never used

Check warning on line 18 in src/Twilio/Twilio.cs

View workflow job for this annotation

GitHub Actions / Test

The field 'TwilioClient._authstrategy' is never used
private static string _accountSid;
private static string _region;
private static string _edge;
Expand Down Expand Up @@ -207,7 +207,7 @@
}

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
};
Expand Down
2 changes: 1 addition & 1 deletion src/Twilio/TwilioOrgsTokenAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[Beta]
public class TwilioOrgsTokenAuthClient
{
private static string _accessToken;

Check warning on line 17 in src/Twilio/TwilioOrgsTokenAuth.cs

View workflow job for this annotation

GitHub Actions / Test

The field 'TwilioOrgsTokenAuthClient._accessToken' is never used
private static string _region;
private static string _edge;
private static TwilioOrgsTokenRestClient _restClient;
Expand Down Expand Up @@ -188,7 +188,7 @@
return _noAuthRestClient;
}

_noAuthRestClient = new TwilioNoAuthRestClient(region: _region, edge: _edge)
_noAuthRestClient = new TwilioNoAuthRestClient()
{
LogLevel = _logLevel
};
Expand Down
Loading