It seems you are very close to a technical solution to your problem. I would simply create an interface IZipCodePresenter and in my ZipCode. Dll or ZipCodePlus.
Dll module startup, register the implementation.
It seems you are very close to a technical solution to your problem. I would simply create an interface - IZipCodePresenter - and in my ZipCode. Dll or ZipCodePlus.
Dll module startup, register the implementation. Container.RegisterType(); Then in your parser, resolve the instance like: var zipCodePresenter = container.Resolve(); Assuming no instances are registered for the interface, an exception will be thrown. Otherwise, you will get the last registered concrete implementation of IZipCodePresenter.
Note that an exception will only be thrown if you try and register an interface. If you attempt to register a class with Unity, it will create an instance based on the Lifetime Manager policy. If you wanted to go further with this, you could create an interface... something like IDynamicPresenter.
You could then register based on a known string (defined in your infrastructure project). Container. RegisterType(PresenterName.
ZipCodeControl); Container. RegisterType(PresenterName. EmailControl); and then resolve like the following: var zipCodeControl = Container.
Resolve(PresenterName. ZipCodeControl); var emailControl = Container. Resolve(PresenterName.
EmailControl); I prefer the former solution, but this is certainly a valid option. Hope this helps! P.s.
This sounds like an interesting idea... I'd be interested to hear how you get on with the implementation. You could even move one step further and create a whole XAML builder framework based on some of the concepts in ASP. NET MVC.It could facilitate ease in testing, yet have the power of WPF.
Good luck!
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.