Hi. I'm trying to use the WCFFacility to access a service.
With plain WCF, I used a MyServiceClient: ClientBase<IMyService>,
setting the username and password provided by the user:


using (var service = new MyServiceClient())
{
    service.ClientCredentials.UserName.UserName = username;
    service.ClientCredentials.UserName.Password = password;
    service.Authenticate();
}

I read about doing this with a IChannelFactoryAware implementation,
using the Created() notification.

Problem is: I don't know the username and password when registering
components in the container. The authentication data is entered by the
user, and with this data I have to call (once) this service (I should
"remember" the username and password, this is to be called only once
after login).

How should I set the username and password at runtime, just for this
service, after the user provides the information?

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to