BaseContext
Description
Provides connection and authentication operations inherited by ControlRoomContext.
Constructor
The BaseContext class has the following constructors.
| Constructor | Description |
|---|---|
| BaseContext | Initializes 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.
| Property | Description |
|---|---|
| Tokens | Represents IntelliBuddies Automation Tokens entity. |
| AuthType | Represents the Authentication type. |
| Password | Represents the password value to log in to the AI Command Center. |
| UserName | Represents the UserName value to log in to the AI Command Center. |
| ServerUrl | Represents the AI Command Center Server Url to log in. |
Methods
The BaseContext class has the following methods.
| Method | Description |
|---|---|
| Close | Represents the method to close the SDK context. |
| GetExpiryTimestamp(string accessToken) | Represents the expiration time of the access token. |
| GetHttpClient | Represents 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. |
| Logout | Represents the method to end the authenticated session. |
| Dispose | Represents the method to close the application. |
| Open | Represents the method to open the SDK context. |
| Login | Represents the method to authenticate with the AI Command Center. |