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.
 
 TaskAsyncResult (string serialized)
 Initializes a new instance of the TaskAsyncResult class.
 

Properties

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

Detailed Description

Represents an asynchronous task result.

Constructor & Destructor Documentation

◆ TaskAsyncResult() [1/2]

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() [2/2]

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]".