|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Base work state class
Work state stores the state of a Naanou.Common.IWorkItem dispatched by the Naanou.LookupService.WorkDispatch.Dispatch. When the async reply for this dispatched work comes back in, the state is used to match up the reply with the original client.
Field Summary | |
---|---|
bool | added |
string |
serial
Serial number for work |
Constructor Summary | |
---|---|
WorkState(string serial) Constructor |
Property Summary | |
---|---|
bool | IsAdded |
string |
Serial
Gets the serial number. Serial numbers are immutable |
Method Summary | |
---|---|
void | Added() |
void |
SendResult(object[] p) When the dispatcher has the result of the work available, it calls this method |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
protected bool added
protected string serial
Serial number for work
Constructor Detail |
---|
public WorkState(string serial)
Constructor
Serial numbers should be globally unique. To this end, it is recommended to use the Naanou.LookupService.WorkDispatch.Dispatch.GetSerial method to retrieve a basic serial number. Add on a string identifier for class, (e.g. abbreviated class name) and the serial number should be `pretty much' globally unique. Note that serial numbers are immutable.
Parameters:serial
- Unique serial numberProperty Detail |
---|
public bool IsAdded
public string Serial
Gets the serial number. Serial numbers are immutable
Method Detail |
---|
public void Added()
public void SendResult(object[] p)
When the dispatcher has the result of the work available, it calls this method
Parameters:
p
- Parameters
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |