Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Definition.getBuffered with only a hash #12

Open
samjudson opened this issue Jul 9, 2013 · 0 comments
Open

Definition.getBuffered with only a hash #12

samjudson opened this issue Jul 9, 2013 · 0 comments

Comments

@samjudson
Copy link

Hi

I'm trying to run a definition using only a hash, but to get this to work I had to change the getBuffered to check for m_hash.Length == 0 as well:

if (m_csdl.Length == 0 && m_hash.Length == 0)
{
    throw new InvalidDataException("...");
}

Does this sound right, or should I be calling something else first?

My calling code looks like this:

var u = new User(Username, ApiKey);
var def = new Definition(u, "", hash);
return def.getBuffered(5);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant