WCF & UserNamePasswordValidator
-
As of right now, I'm using a custom UserNamePasswordValidator to validate credentials. There is a library that i use to connect to a remote server and validate credentials. The same library is used in the service class to make calls to and from the database. What's happening is that the way it is set up now, there are two brand new instances being created for every service call. One in the UserNamePasswordValidator and one in the web service instance. What I'd like to do is somehow pass the same instance from my custom UserNamePasswordValidator to the web service instance that gets created. So, I've tried getting OperationContext.Current so i can pass the object to the InstanceContext but OperationContext.Current is null. Are there any other methods of achieving what I'm trying to accomplish? Thanks,
Don't be overcome by evil, but overcome evil with good