C#

C#

Made by DeepSource

Audit: Consider using System.URI instead of strings CS-A1000

Security
Major

Representing URIs as strings can prove to be a security risk as they are difficult to parse, validate and encode. It is therefore recommended that you use the more safer and reliable built-in alternative System.URI.

Bad Practice

public string getEndpointUri()
{
    return _endpoint;
}

Recommended

public Uri getEndpointUri()
{
    return new URI(_endpoint);
}

Reference