public void Dispose() { Credentials?.Dispose(); Credentials = null; }
public APIConfig(Uri endpoint, APICredentials credentials = null) { Credentials = credentials ?? new UnsecureCredentials(); Endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); }