Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No static backing property for the ModelInspector static property #2883

Open
brianpos opened this issue Oct 4, 2024 · 0 comments
Open

No static backing property for the ModelInspector static property #2883

brianpos opened this issue Oct 4, 2024 · 0 comments
Assignees

Comments

@brianpos
Copy link
Collaborator

brianpos commented Oct 4, 2024

The modelinspector property does not have a static backing property to effectively cache the value to remove future calls from re-scanning the assemblies

public static ModelInspector ModelInspector
{
get
{
var inspector = ModelInspector.ForAssembly(typeof(ModelInfo).GetTypeInfo().Assembly);
if (inspector.FhirRelease != Specification.FhirRelease.STU3)
{
// In case of release 4 or higher, also load the assembly with common conformance resources, like StructureDefinition
inspector.Import(typeof(StructureDefinition).GetTypeInfo().Assembly);
}
return inspector;
}
}

I had some further discussion details in this discussion post:
#2835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants