public UserSettingsClient(UserSettingsConnection connection) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } _connection = connection; }
internal virtual void Dispose(bool disposing) { if (disposing) { if (_connection != null) { _connection.Dispose(); _connection = null; } } }
public static UserSettingsClient CreateWorkingUserSettingsClient() { var connection = UserSettingsConnection.Create(Settings.Email, Settings.Password); return(new UserSettingsClient(connection)); }