Class HttpAgentExecutor
Executes SQL commands via HTTP Agent API.
Implements IDbCommandExecuter to integrate with the reporting engine.
Inheritance
HttpAgentExecutor
Assembly: Reportman.Reporting.dll
Syntax
public class HttpAgentExecutor : IDbCommandExecuter
Constructors
View Source
HttpAgentExecutor()
Declaration
public HttpAgentExecutor()
View Source
HttpAgentExecutor(string, string, long)
Declaration
public HttpAgentExecutor(string baseUrl, string apiKey, long hubDatabaseId)
Parameters
Properties
View Source
ApiKey
API Key for authentication (alternative to Token)
Declaration
public string ApiKey { get; set; }
Property Value
View Source
BaseUrl
Base URL for the API (e.g., "https://api.reportman.es")
Declaration
public string BaseUrl { get; set; }
Property Value
View Source
HubDatabaseId
Hub Database Id - identifies the database on the remote agent
Declaration
public long HubDatabaseId { get; set; }
Property Value
View Source
Token
Bearer token for authentication (alternative to ApiKey)
Declaration
public string Token { get; set; }
Property Value
Methods
View Source
CreateCommand()
Creates a new HttpAgentCommand for building SQL queries.
Declaration
public IDbCommand CreateCommand()
Returns
View Source
Open(IDbCommand)
Executes the command and returns the result as a DataTable.
Declaration
public DataTable Open(IDbCommand ncommand)
Parameters
Returns
Implements