Skip to content

darktable/UnityServiceLocator

Repository files navigation

UnityServiceLocator

Simple event-driven service locator. Since intialization order and lifespan of Components in Unity cannot be relied on, you register to receive a callback when a service is registered/unregistered. If the service has already been registered the callback is invoked immediately.

In theory it's easier to write tests that depend on a service's interface (which can be mocked during testing) than it is to write tests that depend on a singleton instance (harder to mock).

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages