Silverlight wcf and ClientCredentials
I don't want to set the same username and password 100 times for ClientCredentials. I want a pattern where I can set this once in code then have it automatically se开发者_StackOverflowt.
How do people typically do this? Do they inherit from the wcf class? Do they use partial classes?
Delegate the responsibility of creating the proxy instance to a separate class. This class can have method to create proxy, assign credentials and return the proxy instance back.This is something similar to creating factory classes for construction of an object.
精彩评论