* ClientRuntime.cs : enable Operations property on monotouch.
Hopefully it will enable us to build WebHttpBinding.
svn path=/trunk/mcs/; revision=144251
* CommunicationObject.cs : OnOpening() and OnOpened() require calls
to base methods. This resulted in not a few changes everywhere.
* ChannelDispatcher.cs : OnOpened/OnOpening constraints related
changes were required here too. Actually it simplified code.
* InstanceContext.cs : new constraints on CommunicationObject
required calls to base methods.
* ChannelFactory.cs : ditto. Actually changed timing to call
Open() on the internal factory.
* ServiceHostBase.cs : removed DoOpen() which is almost extra now.
Added temporary IMetadataExchange workaround.
svn path=/trunk/mcs/; revision=143829
* ChannelDispatcher.cs : make sure to close, *and* abort channels
in case they failed to close. Also consider close timeouts.
Rename a field to make less confusing.
svn path=/trunk/mcs/; revision=143431
* 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
* ChannelDispatcher.cs : make sure to close the request context,
some channels such as http keeps opening it. Patch by Levi Bard.
Fixed bug #533776.
svn path=/trunk/mcs/; revision=142008
* ChannelDispatcher.cs : do not try to wait for channel closer
handle when the loop is not started yet. This fixes lengthy wait
in the nunit tests.
svn path=/trunk/mcs/; revision=141881
* EndpointDispatcher.cs : AddressFilter is always non-null.
* DispatchRuntime.cs : CallbackClientRuntime seems to be created even
for non-callback dispatchers. Fixing this also results in fixes in
couple of nunit regressions.
* InputOrReplyRequestProcessor.cs : the change above required fix
here too (it has null check).
svn path=/trunk/mcs/; revision=141743
* OperationInvokerHandler.cs, ReplyHandler.cs :
- Eliminate ReplyHandler use. What is does is simple reply, while
it brings inconsistency between sync and async models.
What reply handler used to do are now integrated.
- Support ErrorHandlers and InputSessionShutdownHandlers.
Actually ErrorHandlers were processed at wrong place and they
weren't called where they are expected.
* InputOrReplyRequestProcessor.cs : hence eliminated ReplyHandler.
* BaseRequestProcessor.cs : add FIXME notes on ErrorHandlers.
svn path=/trunk/mcs/; revision=141326
* ChannelDispatcher.cs, EndpointDispatcher.cs :
moved some initialization code from ServiceHostBase, to start
reducing dependencies on ServiceHostBase.
* ServiceHostBase.cs : moved some code to channel/endpoint dispatcher
to reduce their dependencies on this type.
svn path=/trunk/mcs/; revision=140401
* ServiceRuntimeChannel.cs : change .ctor() args.
Add proxy hook methods that simply calls those in callback
ClientRuntimeChannel.
* InputOrReplyRequestProcessor.cs : now it could return an instance
of dynamically generated proxy over DuplexServiceRuntimeChannel.
svn path=/trunk/mcs/; revision=139550
* ClientRuntime.cs : oops, it should have been committed at a time.
Change .ctor() args. Make some properties auto.
svn path=/trunk/mcs/; revision=139546
* ChannelDispatcher.cs : raise error on multiple endpoint match
(documented at EndpointDispatcher.FilterPriority).
svn path=/trunk/mcs/; revision=139194
* TcpChannelListener.cs : to avoid creating two or more channels
for one remote endpoint, check existing remote endpoints and
ignore such connections (it must be handled in different thread
fired by ChannelDispatcher loop).
* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
the channel does not have to be fired Receive() before Open().
svn path=/trunk/mcs/; revision=138986
* 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