Skip to content

Resource provider sample#169

Open
alafleur-genetec wants to merge 8 commits intomainfrom
feat/resource-provider-sample
Open

Resource provider sample#169
alafleur-genetec wants to merge 8 commits intomainfrom
feat/resource-provider-sample

Conversation

@alafleur-genetec
Copy link
Member

No description provided.

ResourceProvider.GetStringFromEnum returns empty strings for EntityType
values in standalone SDK apps because the resource assemblies are not
loaded outside of Security Desk/Config Tool. This sample reproduces
the issue without requiring a Security Center connection.
Include EntityType, RoleType, CredentialState, StreamingType, and
DeviceReaderEncryptionStatus. Use SampleBase for consistency with
other Platform SDK samples.
ResourceProvider.GetStringFromEnum is a static helper that does not
require an Engine connection. Only SdkResolver.Initialize is needed
for assembly resolution.
…atements

Match the MediaFileSample pattern: top-level statements with SdkResolver.Initialize()
called first, SDK code wrapped in RunSample() local function to ensure assembly
resolution occurs before any SDK types are referenced by JIT.
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

Adds the new ResourceProviderSample project to the code samples solution so it is included in the Samples build/configuration matrix and appears under the expected solution folder.

Changes:

  • Adds ResourceProviderSample project entry to Genetec.Dap.CodeSamples.sln.
  • Wires the project into all existing solution configurations (Debug/Release + NET481/NET8 variants).
  • Nests the project under the existing solution folder structure and registers Shared Items imports.

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

Remove the .resources assembly filter so satellite resource assemblies
can be resolved. Add culture-specific probing for resource assemblies.
On .NET Framework, set Environment.CurrentDirectory to the SDK probing
path so the internal ResourceHelper can find *.Resources.Core.dll files.
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