Interface IGlspSession
Denotes a session with a client
public interface IGlspSession
Properties
CanRedo
True, if there is a transaction to redo, otherwise false
bool CanRedo { get; }
Property Value
CanUndo
True, if there is a transaction to undo, otherwise false
bool CanUndo { get; }
Property Value
IsDirty
True, if the client session contains unsaved changes, otherwise false
bool IsDirty { get; set; }
Property Value
Language
Gets the graphical language used in this session
GraphicalLanguage Language { get; }
Property Value
Root
The root of the graph
GGraph Root { get; }
Property Value
SelectedElements
The selected elements
GElement[] SelectedElements { get; set; }
Property Value
- GElement[]
Trace
Gets the trace to trace skeletons created for semantic objects
ISkeletonTrace Trace { get; }
Property Value
Methods
InitializeAsync(Uri)
Initializes the client for the given source model URI
Task InitializeAsync(Uri uri)
Parameters
uri
Uri
Returns
Redo()
Redo the last transaction
void Redo()
RequestAsync(RequestAction)
Sends a request to the client and waits for the response
Task<ResponseAction> RequestAsync(RequestAction request)
Parameters
request
RequestActionThe request to the client
Returns
- Task<ResponseAction>
A task that completes when the client returns a response
Save(Uri)
Saves the content at the given URI
void Save(Uri uri)
Parameters
uri
Urithe URI where to save the session content or null, if the model should be saved at the default location
SendToClient(BaseAction)
Send the given action to the client
void SendToClient(BaseAction action)
Parameters
action
BaseActionThe action to send
Synchronize()
Sends the entire graph to the client
void Synchronize()
Undo()
Undo the last transaction
void Undo()