-
Notifications
You must be signed in to change notification settings - Fork 4
platform sdk overview
The Platform SDK (Genetec.Sdk.dll) is the core .NET library for building applications that connect to Genetec Security Center. It provides programmatic access to entities, events, reports, and system operations.
The Security Center SDK consists of multiple assemblies. The Platform SDK is the foundation that other assemblies depend on.
| Assembly | Purpose |
|---|---|
Genetec.Sdk.dll |
Core SDK. Entity model, connection management, events, queries, transactions. Required by all integrations. |
Genetec.Sdk.Plugin.dll |
Hosting infrastructure for custom roles that run on Security Center servers. See Plugin SDK. |
Genetec.Sdk.Workspace.dll |
Components for extending Security Desk and Config Tool with custom pages, tasks, and tiles. |
Genetec.Sdk.Media.dll |
Video and audio playback, frame decoding, media player controls, audio recording and transmission. |
Genetec.Sdk.Controls.dll |
Reusable WPF and Windows Forms controls (date pickers, IP address inputs, color pickers, etc.). |
All assemblies except Genetec.Sdk.dll are optional. Include only what your application needs.
All Platform SDK operations go through the Engine class. It manages the connection to Security Center and provides access to entities, events, and system services.
using Genetec.Sdk;
using var engine = new Engine();
// Connect to Security Center
ConnectionStateCode result = await engine.LogOnAsync("server", "username", "password");
if (result == ConnectionStateCode.Success)
{
// Access entities
var camera = engine.GetEntity<Camera>(cameraGuid);
// Subscribe to events
engine.EventReceived += OnEventReceived;
// Run queries
var query = engine.ReportManager.CreateReportQuery(ReportType.CameraActivity);
}The Engine requires:
- An SDK certificate (see SDK Certificates)
- Valid user credentials with "Log on using the SDK" privilege
- Network access to the Security Center Directory
The Platform SDK documentation covers these topics:
| Guide | Description |
|---|---|
| Entities | The object model for cameras, doors, cardholders, and 100+ other types |
| Entity Cache | How the Engine caches entity data locally |
| Transactions | Batching multiple operations for performance |
| Events and Actions | Subscribing to real-time system events |
| Report Manager | Querying historical data and entity lists |
| Logging | Diagnostic logging configuration |
| Requirement | Details |
|---|---|
| SDK installation | Security Center SDK must be installed on the machine running your application |
| Certificate |
.cert file in a Certificates folder next to your executable |
| License | Security Center license must include your certificate's part number |
| Assembly resolution | Configure runtime assembly loading (see Referencing Assemblies) |
| Compatibility | Runtime SDK version must be within three major versions of the server (see Compatibility) |
- SDK Certificates - Certificate requirements and configuration
- Referencing Assemblies - Assembly resolution at compile and runtime
- Compatibility - Version compatibility between SDK and Security Center
-
Security Center SDK Developer Guide Overview of the SDK framework and how to build integrations with Security Center.
-
Platform SDK
- Platform SDK Overview Introduction to the Platform SDK and core concepts.
- SDK Certificates Details certificates, licensing, and connection validation.
- Entity Guide Explains the core entity model, inheritance, and how to work with entities.
- Entity Cache Guide Describes the engine's local entity cache and synchronization.
- SDK Transactions Covers batching operations for performance and consistency.
- ReportManager Querying entities and activity data from Security Center.
- Events and Actions Subscribing to events and handling actions.
- Logging with the Genetec SDK How to configure logging, diagnostics, and debug methods.
- Referencing SDK Assemblies Best practices for referencing assemblies and resolving them at runtime.
- SDK Compatibility Guide Understanding backward compatibility and versioning in the SDK.
-
Plugin SDK
- Plugin SDK Overview Introduction to plugin architecture and capabilities.
- Plugin SDK Certificates SDK certificate requirements for plugin roles.
- Plugin SDK Lifecycle Initialization and disposal patterns.
- Plugin SDK Threading Threading model, QueueUpdate, and async patterns.
- Plugin SDK Configuration Configuration storage and monitoring.
- Plugin SDK Restricted Configuration Secure credential storage and admin-only configuration.
- Plugin SDK Database Database integration and schema management.
- Plugin SDK Events Event subscription and handling.
- Plugin SDK Queries Query processing and response handling.
- Plugin SDK Request Manager Request/response communication with clients.
- Plugin SDK Entity Ownership Understanding plugin-owned entities, running state management, and ownership release.
- Plugin SDK Entity Mappings Using EntityMappings for plugin-specific configuration and external system integration.
- Plugin SDK State Management Reporting plugin health and diagnostics.
- Plugin SDK Server Management High availability and server failover.
- Custom Privileges Defining and enforcing custom privileges.
- Resolving Non-SDK Assemblies Handling third-party dependencies in plugins and workspace modules.
- Deploying Plugins Registering and deploying plugins and workspace modules.
-
- Macro SDK Developer Guide Complete guide to creating server-side automation scripts in Security Center using C#.
- Getting Started Setup, authentication, and basic configuration for the Web SDK.
- Referencing Entities Entity discovery, search capabilities, and parameter formats.
- Entity Operations CRUD operations, multi-value fields, and method execution.
- Partitions Managing partitions, entity membership, and user access control.
- Custom Fields Creating, reading, writing, and filtering custom entity fields.
- Custom Card Formats Managing custom credential card format definitions.
- Actions Control operations for doors, cameras, macros, and notifications.
- Events and Alarms Real-time event monitoring, alarm monitoring, and custom events.
- Incidents Incident management, creation, and attachment handling.
- Reports Activity reports, entity queries, and historical data retrieval.
- Performance Guide Optimization tips and best practices for efficient API usage.
- Reference Entity GUIDs, EntityType enumeration, and EventType enumeration.
- Under the Hood Technical architecture, query reflection, and SDK internals.
- Troubleshooting Common error resolution and debugging techniques.
- Media Gateway Guide Setup and configuration of the Media Gateway role for video streaming.
- Web Player Guide Complete guide to integrating GWP for live and playback video streaming.
- Web Player API Reference Full API documentation with interfaces, methods, properties, and events.
- Web Player Sample Application Comprehensive demo showcasing all GWP features with timeline and PTZ controls.
- Genetec Web Player Multiplexing Sample Multi-camera grid demo using a shared WebSocket connection.