* ChannelFactory.cs: Ensure we create and open a factory here,
avoids a NRE regression in
System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()
svn path=/trunk/mcs/; revision=132023
+2009-04-17 Geoff Norton <gnorton@novell.com>
+
+ * ChannelFactory.cs: Ensure we create and open a factory here,
+ avoids a NRE regression in
+ System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()
+
2009-04-17 Atsushi Enomoto <atsushi@ximian.com>
* ChannelFactory.cs, ClientRuntimeChannel.cs : implemented
// instance members
ServiceEndpoint service_endpoint;
+ IChannelFactory factory;
protected ChannelFactory ()
{
}
- internal IChannelFactory OpenedChannelFactory { get; private set; }
+ internal IChannelFactory OpenedChannelFactory {
+ get {
+ if (factory == null) {
+ factory = CreateFactory ();
+ factory.Open ();
+ }
+
+ return factory;
+ }
+ private set {
+ factory = value;
+ }
+ }
public ServiceEndpoint Endpoint {
get { return service_endpoint; }