Interface IIntegrationConnector
- Namespace
- SESARWebHook.Core.Interfaces
Interface that all integration connectors must implement. Each connector handles synchronization with a specific external system.
public interface IIntegrationConnector
Properties
ConnectorId
Unique identifier for this connector (e.g., "zoho-crm", "sharepoint", "dynamics-365")
string ConnectorId { get; }
Property Value
Description
Description of what this connector does
string Description { get; }
Property Value
DisplayName
Human-readable name for display purposes
string DisplayName { get; }
Property Value
RequiredConfigurationKeys
List of required configuration keys for this connector
IEnumerable<string> RequiredConfigurationKeys { get; }
Property Value
Version
Version of the connector
string Version { get; }
Property Value
Methods
Initialize(Dictionary<string, string>)
Initializes the connector with its configuration
void Initialize(Dictionary<string, string> settings)
Parameters
settingsDictionary<string, string>Configuration settings for the connector
ProcessManifestAsync(StoreManifest, WebhookContext)
Processes a StoreManifest from SESAR and sends it to the external system
Task<IntegrationResult> ProcessManifestAsync(StoreManifest manifest, WebhookContext context)
Parameters
manifestStoreManifestThe decrypted store manifest from SESAR
contextWebhookContextAdditional context about the webhook request
Returns
- Task<IntegrationResult>
Result of the integration operation
TestConnectionAsync()
Tests the connection to the external system
Task<bool> TestConnectionAsync()
Returns
ValidateConfigurationAsync(Dictionary<string, string>)
Validates that the provided configuration is valid for this connector
Task<bool> ValidateConfigurationAsync(Dictionary<string, string> settings)
Parameters
settingsDictionary<string, string>Configuration settings to validate