UserLock API
Public Member Functions | Properties | List of all members
UserLockServer.TaskAsyncResult Class Reference

Represents an asynchronous task result. More...

Public Member Functions

 TaskAsyncResult (string key, bool state, string details)
 Initializes a new instance of the TaskAsyncResult class. More...
 
 TaskAsyncResult (string serialized)
 Initializes a new instance of the TaskAsyncResult class. More...
 

Properties

string Key [get]
 Key, could be a session name or a machine name. More...
 
bool State [get]
 State ok (true) or ko (false). More...
 
string Details [get, set]
 Details. More...
 

Detailed Description

Represents an asynchronous task result.

Constructor & Destructor Documentation

TaskAsyncResult ( string  key,
bool  state,
string  details 
)

Initializes a new instance of the TaskAsyncResult class.

Parameters
keyThe key, could be a session name or a machine name.
stateState ok true or ko false.
detailsThe details.
TaskAsyncResult ( string  serialized)

Initializes a new instance of the TaskAsyncResult class.

Parameters
serializedThe serialized. An asynchronous task result could be like: "OK: [key]: [reason]\n[more reasons]" or "KO: [key]: [reason]\n[more reasons]".

Property Documentation

string Key
get

Key, could be a session name or a machine name.

bool State
get

State ok (true) or ko (false).

string Details
getset

Details.