* ChannelDispatcher.cs : do not iterate extra channel acceptance
and hence close channels a bit more gracefully.
* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
(almost) no time.
* TcpChannelListener.cs : accept multiple channels at a time.
svn path=/trunk/mcs/; revision=137093
* ChannelDispatcher.cs : instead of discarding channels, reuse them
unless it is closed by session manager (session manager does not
work, so channels are not actually closed automatically yet).
svn path=/trunk/mcs/; revision=136866
* 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 : significant changes:
- simplified Open/Close async.
- implement OnAbort().
- create ServiceThrottle when it is null.
- Channels are accepted as much as the throttle allows, and
process requests when accepted an input (now it holds more than
one channel).
- Support ReceiveSynchronously and use Begin/EndAcceptChannel()
for async pattern.
- Close all channels and the listener when it is closed.
- Cosmetic simplification on channel acceptor delegate creation.
svn path=/trunk/mcs/; revision=136431
* ChannelDispatcher.cs : avoid NRE (actually it should eliminate
Thread.Abort()). Added some comments on throttling.
svn path=/trunk/mcs/; revision=135730
* CommunicationObject.cs : OnClosed() requires call to base method.
Close() could rather abort the channel, and Abort() does not
always invke OnAbort().
* ChannelBase.cs : add call to base as above.
* ChannelDispatcher.cs :
Add call to base (see CommunicationObject change).
* InstanceContext.cs :
Add call to base (see CommunicationObject change).
* CommunicationObjectTest.cs : added a couple of close/abort tests
for state transition and base call check.
svn path=/trunk/mcs/; revision=135649
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
MessageProcessingContext.cs : reply processing is also needed by
non-request channels (i.e. duplex). Current code basis lacked
such possibility. Quick fix by adding duplex support in
ReplyHandler so far.
svn path=/trunk/mcs/; revision=134046
* 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