Skip to main content
Version: IB7.0

BaseContext

Description​

Represents the base context for ControlRoomContext

Constructor​

The BaseContext class has the following constructors.

ConstructorDescription
BaseContextInitializes a new instance of the BaseContext.
BaseContext (string serverURL, AuthenticationType authType, string userName, string password)Initializes a new instance of the BaseContext with parameters such as server Url, AuthenticationType, userName, and password.

Properties​

The BaseContext class has the following properties.

PropertyDescription
TokensRepresents IntelliBuddies Automation Tokens entity.
AuthTypeRepresents the Authentication type.
PasswordRepresents the password value to log in to the Control Room.
UserNameRepresents the UserName value to log in to the Control Room.
ServerUrlRepresents the Control Room Server Url to log in.

Methods​

The BaseContext class has the following methods.

MethodDescription
CloseRepresents the method to close the application.
GetExpiryTimestamp(string accessToken)Represents the expiration time of the access token.
GetHttpClientRepresents the method to set the base address and the authorization tokens to the HTTP request header.
LogError(Exception ex)Represents the method to send the exception to the caller.
LogoutRepresents the method to log out from the application.
DisposeRepresents the method to close the application.
OpenRepresents the method to open the application.
LoginRepresents the method to log in to the application.