Hello
Using Prism, Unity and WCF, I have the following simple login scenario.
I define a LoginModule containing three elements : a LoginView, a LoginViewModel, and a LoginService.
What is different from all the other examples I have found is that :
Any help would be appreciated.
Using Prism, Unity and WCF, I have the following simple login scenario.
I define a LoginModule containing three elements : a LoginView, a LoginViewModel, and a LoginService.
What is different from all the other examples I have found is that :
- server url is not known on startup (no app.config wcf definition)
-
server url may change (user disconnects, changes server address, and reconnects)
- I can't register LoginView, because it depends on LoginViewModel, which needs LoginService . But LoginService can't be registered at that time, because server address is unknown.
-
When LoginService is initialized with an address, how to change the underlying channel, LoginService beeing registered using WCF ChannelFactory and Unity ?
Any help would be appreciated.