Skip to content

RM-9610 replace serviceLocatorScope from exception message with regisration of serviceLocator instance in ServiceLocator singleton#1423

Open
noah-rubicon wants to merge 1 commit intodevelopfrom
feature/RM-9610-remove-servicelocatorscope-from-exception-message-in-storagesettingsfactoryresolver
Open

RM-9610 replace serviceLocatorScope from exception message with regisration of serviceLocator instance in ServiceLocator singleton#1423
noah-rubicon wants to merge 1 commit intodevelopfrom
feature/RM-9610-remove-servicelocatorscope-from-exception-message-in-storagesettingsfactoryresolver

Conversation

@noah-rubicon
Copy link
Copy Markdown
Contributor

…tration of serviceLocator instance in ServiceLocator singleton
+ "var serviceLocator = DefaultServiceLocator.Create();\n"
+ "serviceLocator.RegisterSingle(() => StorageSettingsFactory.CreateForSqlServer(\"\"connectionString\"\"));\n"
+ "var serviceLocatorScope = new ServiceLocatorScope(serviceLocator);", ex);
+ "ServiceLocator.SetLocatorProvider(() => serviceLocator);", ex);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is a developer note in the ticket suggesting this, i am not 100% sure if this is exactly what was meant by:
"Replace line with sample for registration of serviceLocator instance in ServiceLocator singleton."

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