* ChannelDispatcher.cs : when service instance is provided to the
ServiceHost, do not reject Type-less state.
svn path=/trunk/mcs/; revision=137266
+2009-07-02 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ChannelDispatcher.cs : when service instance is provided to the
+ ServiceHost, do not reject Type-less state.
+
2009-06-29 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : do not iterate extra channel acceptance
// It is tested at Open(), but strangely it is not instantiated at this point.
foreach (var ed in owner.Endpoints)
- if (ed.DispatchRuntime.Type == null || ed.DispatchRuntime.Type.GetConstructor (Type.EmptyTypes) == null)
+ if (ed.DispatchRuntime.InstanceContextProvider == null && (ed.DispatchRuntime.Type == null || ed.DispatchRuntime.Type.GetConstructor (Type.EmptyTypes) == null))
throw new InvalidOperationException ("There is no default constructor for the service Type in the DispatchRuntime");
SetupChannelAcceptor ();
}