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

Add Catel service locator to the list #5

Closed
GeertvanHorrik opened this issue Sep 16, 2013 · 3 comments
Closed

Add Catel service locator to the list #5

GeertvanHorrik opened this issue Sep 16, 2013 · 3 comments

Comments

@GeertvanHorrik
Copy link

Information about Catel: http://www.catelproject.com

Documentation about IoC: https://catelproject.atlassian.net/wiki/pages/viewpage.action?pageId=622682

@ashmind
Copy link
Owner

ashmind commented Sep 17, 2013

Sorry, the documentation is a bit unclear to me.
Is it possible to register types using code (not attributes)?

@GeertvanHorrik
Copy link
Author

Yep:

var serviceLocator = ServiceLocator.Default;
serviceLocator.RegisterType<IMyInterface, MyImplementation>();

btw, please use the latest prerelease, it will be released very soon.

@ashmind
Copy link
Owner

ashmind commented Sep 17, 2013

Please review the implementation and let me know if any failures are unfair.

Note that I do not currently use prereleases as I want to demonstrate the situation most people will encounter.
Please feel free to open another issue or pull request when any significant changes are released.

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