* ServiceHostBase.cs : Do not build more than one ChannelDispatcher
for a Binding. Then check duplicate listen URIs, excluding mex ones.
* ChannelDispatcher.cs : add simple bool field to mark for mex channel.
* ServiceMetadataExtension.cs : use simple ChannelDispatcher.IsMex field.
* ServiceHostTest.cs : improved endpoint tests and enabled them.
* ChannelDispatcherTest.cs : had to disable a test that regressed from
validating duplicate listen URI. Possible remedy is described too.
svn path=/trunk/mcs/; revision=159140
* ChannelDispatcher.cs, EndpointDispatcher.cs :
when an EndpointDispatcher is added to ChannelDispatcher, its
ChannelDispatcher property is automatically filled. To do this,
create a derived collection type for Endpoints (that's what .NET
does). Remove extra InitializeEndpoint() argument.
* DuplexClientRuntimeChannel.cs : reflecting EndpointDispatcher change.
* ChannelDispatcherTest.cs : add a test to make sure that
EndpointDispatcher.ChannelDispatcher property is filled by Add().
svn path=/trunk/mcs/; revision=142124
* ServiceBehaviorAttribute.cs : fill SingletonInstanceContext on
opening the host.
* ChannelDispatcherTest.cs : add singleton instance context test
(but disabled, for some weird conflict).
svn path=/trunk/mcs/; revision=137315
* ServiceHostBase.cs : remove more TODO.
* DispatchRuntime.cs : do not fill InstanceContextProvider here.
* ChannelDispatcher.cs : do it here instead.
* ChannelDispatcherCollection.cs : remove TODOs.
* ChannelDispatcherTest.cs : make sure that the port to be in use is
available before running the tests. Check attach state.
* DispatchRuntimeTest.cs : make sure that it runs through all the
behavior tests.
svn path=/trunk/mcs/; revision=136695
* ChannelDispatcher.cs, SecurityHandler.cs,
InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
remove default communication timeouts from several types. They
bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
use it when required (it was actually *only* request processor).
* ChannelDispatcherTest.cs : make sure ctor args are nullable.
svn path=/trunk/mcs/; revision=134044
* DispatchRuntime.cs : some comment.
* ChannelDispatcher.cs : ongoing changes to handle listeners and
accepted channels at more precise state. Listeners are opened,
without accepting channels. Some setup code is done at OnOpen(),
while some are done at OnOpened().
* ServiceHost.cs : split dispatcher open from dispatcher loop start.
Use DispatchRuntime.Type to specify service type.
* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
state tests.
svn path=/trunk/mcs/; revision=132739