Naanou.Common
Structure GetKeyResult

Result of a key lookup

Field Summary
System.Exception Exception
         Exception that occurred, if any
int Hops
         Number of hops taken to discover result
Naanou.Common.Hash Key
         Key
Naanou.Common.KeyContainer[] Keys
         Keys found
bool NotFound
         Was nothing found?
string requestSerial

Constructor Summary
GetKeyResult(Naanou.Common.KeyContainer[] keys, Naanou.Common.Hash key, bool notFound, int hops, System.Exception exception)
         Constuctor

Property Summary
string Serial
         Gets serial

Method Summary
void SetSerial(string serial)
         Sets serial. Can only be set once

Methods inherited from class System.ValueType
Equals, GetHashCode, ToString

Methods inherited from class System.Object
Finalize, GetType, MemberwiseClone


Field Detail

Exception

public System.Exception Exception

Exception that occurred, if any


Hops

public int Hops

Number of hops taken to discover result


Key

public Naanou.Common.Hash Key

Key


Keys

public Naanou.Common.KeyContainer[] Keys

Keys found


NotFound

public bool NotFound

Was nothing found?


requestSerial

private string requestSerial

Constructor Detail

GetKeyResult

public GetKeyResult(Naanou.Common.KeyContainer[] keys,
                    Naanou.Common.Hash key,
                    bool notFound,
                    int hops,
                    System.Exception exception)

Constuctor

Parameters:
keys - Keys
key - Key
notFound - Was nothing found
hops - Hops taken
exception - Exception that occurred, if any
Property Detail

Serial

public string Serial

Gets serial

Method Detail

SetSerial

public void SetSerial(string serial)

Sets serial. Can only be set once

Parameters:
serial -
Throws:
System.InvalidOperationException - Serial is already set