Naanou.LookupService.WorkDispatch
Class WorkState

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

added

protected bool added


serial

protected string serial

Serial number for work

Constructor Detail

WorkState

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 number
Property Detail

IsAdded

public bool IsAdded


Serial

public string Serial

Gets the serial number. Serial numbers are immutable

Method Detail

Added

public void Added()


SendResult

public void SendResult(object[] p)

When the dispatcher has the result of the work available, it calls this method

Parameters:
p - Parameters