The context acts a an entry point for the users of the LAS and as a global element for all components in a session. The method calls
context := LasContext new: env.
or
context := LasContext new: env client: aClientId.
will create new contexts with an internal lookup of the current service broker registered in the environment. The context holds the id, a reference to the broker, references to the service components, and key-value pairings for usage through the components. Components are provided by calling
component := context serviceComponent: aComponentId.
Also the context provides a lazy initialized connector to the broker so that asynchronous message sends are possible:
"Send a message without expecting an answer." context sendMessage: aMessage. "Send a message with expecting an answer later." answerId := context sendMessage: aMessage. ... answeredMessages := context answers: answerId.
