I have client endpoints in database not in web.config. I am using ClientBase which has number of constructor where I can pass binding, address etc.. and can call client wcf service. I have binding configuration and behavior configuration defined in web.config. I can pass those name when using ClientBase. But I don't find any property or constructor of that class where I can pass EndpointBehavior name which is already defined in web.config. I can see that I can add IEndpointBehavior instance but I don't want to use that and rather prefer to pass just endpointbehavior name which is defined in web.config.
Any help would be appreciated.
Thanks.
I don't think there's a method that would allow you to use just the name of the behaviour. As a workaroung here you've got methods that can load the settings from the config, create the IEndpointBehaviours and add them to the service endpoint.
Note it's a bit hacky though as it uses a protected method to instantiate the behaviour.