Skip to content

Add AccessControl timeline provider sample#164

Open
alafleur-genetec wants to merge 3 commits intomainfrom
add-access-control-timeline-provider
Open

Add AccessControl timeline provider sample#164
alafleur-genetec wants to merge 3 commits intomainfrom
add-access-control-timeline-provider

Conversation

@alafleur-genetec
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new AccessControl timeline provider sample to demonstrate how to create and register timeline providers in the Workspace SDK. The changes include a new timeline provider for displaying access control events alongside the existing alarm timeline provider.

Changes:

  • Added AccessControl timeline provider components (builder, provider, and event classes)
  • Updated the module registration to handle multiple timeline providers with proper initialization and cleanup
  • Improved resource management by implementing IDisposable pattern for both timeline providers

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
SampleModule.cs Refactored to register both alarm and access control timeline providers with proper cleanup in Unload
AlarmTimelineProviderBuilder.cs Added clarifying comment for UniqueId GUID and reordered using statements
AlarmTimelineProvider.cs Implemented IDisposable for proper event handler cleanup and moved event handler to a separate method
AccessControlTimelineProviderBuilder.cs New builder class for AccessControl timeline provider
AccessControlTimelineProvider.cs New provider class that queries and displays access control events
AccessTimelineEvent.cs New event class for rendering access control events on the timeline
Genetec.Dap.CodeSamples.AccessControlTimelineProviderBuilder.cert Certificate file for the new AccessControl timeline provider

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Add proper component unregistration in SampleModule.Unload()
- Add error handling with MessageBox in SampleImageExtractor
- Fix VCardReader to correctly extract FirstName from N: field
- Make photo regex more flexible for different vCard formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants