Skip to content

Comments

Fix workspace sdk samples#167

Open
alafleur-genetec wants to merge 3 commits intomainfrom
fix-workspace-sdk-samples
Open

Fix workspace sdk samples#167
alafleur-genetec wants to merge 3 commits intomainfrom
fix-workspace-sdk-samples

Conversation

@alafleur-genetec
Copy link
Member

No description provided.

Move the shared VCard parsing classes from the individual sample
folders to the Shared project so both ImageExtractorSample and
CardholderFieldsExtractorSample use the same implementation.
Add field to store component reference, add Unregister in Unload,
and add ApplicationType check for SecurityDesk and ConfigTool.
Add field to store component reference, add Unregister in Unload,
and add ApplicationType check for SecurityDesk and ConfigTool.
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 refactors workspace SDK samples to improve code organization and resource management. The changes consolidate shared VCard functionality and enhance module lifecycle handling.

Changes:

  • Moved VCard-related classes from ImageExtractorSample to shared project for reuse across samples
  • Added proper initialization guards and cleanup logic in module Load/Unload methods
  • Improved code readability with better variable naming and control flow

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
VCardReader.cs Removed from ImageExtractorSample (moved to shared)
VCard.cs Removed from ImageExtractorSample (moved to shared)
SampleModule.cs (ImageExtractorSample) Added application type checks, field storage, and proper cleanup
SampleImageExtractor.cs Improved variable naming and control flow readability
SampleModule.cs (CardholderFieldsExtractorSample) Added application type checks, field storage, and proper cleanup
SampleCardholderFieldsExtractor.cs Improved variable naming and control flow readability
CardholderFieldsExtractorSample.csproj Added reference to shared project
Shared.projitems Added VCard and VCardReader to shared compilation
Genetec.Dap.CodeSamples.sln Added shared items import mapping

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

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.

1 participant