Skip to main content
Version: Current

BaseContext

Description​

Provides connection and authentication operations inherited by 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 AI Command Center.
UserNameRepresents the UserName value to log in to the AI Command Center.
ServerUrlRepresents the AI Command Center Server Url to log in.

Methods​

The BaseContext class has the following methods.

MethodDescription
CloseRepresents the method to close the SDK context.
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 end the authenticated session.
DisposeRepresents the method to close the application.
OpenRepresents the method to open the SDK context.
LoginRepresents the method to authenticate with the AI Command Center.