Skip to content

Instantiate new instance based on existing metadata#228

Merged
mlRosenquist merged 4 commits intomasterfrom
feature/get-instance-from-existing
Jan 3, 2024
Merged

Instantiate new instance based on existing metadata#228
mlRosenquist merged 4 commits intomasterfrom
feature/get-instance-from-existing

Conversation

@mkholt
Copy link
Member

@mkholt mkholt commented Dec 22, 2023

Add functionality to instantiate a new XrmMockup instance based on an existing one.

This allows us to run multiple instances in parallel, withou having to fully load XrmMockup each time, significantly speeding up the initialization time and reducing file IO.

… existing one.

This allows us to run multiple instances in parallel, withou having to fully load XrmMockup each time, significantly speeding up the initialization time and reducing file IO.
This lets the user inject a ITracingService which they control, thus letting them trace to something other than Console.
@mkholt
Copy link
Member Author

mkholt commented Dec 26, 2023

Added the ability to inject a TracingServiceFactory to allow us not to trace to Console.Out if needed

This allows us to e.g. inject a new TracingService on each instance letting us separate them.

It should be used with caution, as the metadata won't be re-loaded, so not all settings make sense to change from the original
@mlRosenquist mlRosenquist merged commit 0ecd209 into master Jan 3, 2024
@mkholt mkholt deleted the feature/get-instance-from-existing branch January 3, 2024 10:42
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

Successfully merging this pull request may close these issues.

2 participants