|
|
@@ -151,30 +151,38 @@ namespace System.ServiceModel
|
|
|
|
|
|
#if NET_4_0
|
|
|
protected ClientBase (ServiceEndpoint endpoint)
|
|
|
- : this (endpoint.Binding, endpoint.Address)
|
|
|
+ : this (null, endpoint)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
protected ClientBase (InstanceContext instance, ServiceEndpoint endpoint)
|
|
|
- : this (instance, endpoint.Binding, endpoint.Address)
|
|
|
+ : this (instance, new ChannelFactory<TChannel> (endpoint))
|
|
|
{
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
internal ClientBase (ChannelFactory<TChannel> factory)
|
|
|
+ : this (null, factory)
|
|
|
{
|
|
|
+ }
|
|
|
+
|
|
|
+ internal ClientBase (InstanceContext instance, ChannelFactory<TChannel> factory)
|
|
|
+ {
|
|
|
+ // FIXME: use instance
|
|
|
ChannelFactory = factory;
|
|
|
}
|
|
|
|
|
|
internal virtual void Initialize (InstanceContext instance,
|
|
|
string endpointConfigurationName, EndpointAddress remoteAddress)
|
|
|
{
|
|
|
+ // FIXME: use instance
|
|
|
ChannelFactory = new ChannelFactory<TChannel> (endpointConfigurationName, remoteAddress);
|
|
|
}
|
|
|
|
|
|
internal virtual void Initialize (InstanceContext instance,
|
|
|
Binding binding, EndpointAddress remoteAddress)
|
|
|
{
|
|
|
+ // FIXME: use instance
|
|
|
ChannelFactory = new ChannelFactory<TChannel> (binding, remoteAddress);
|
|
|
}
|
|
|
|