* ChannelDispatcher.cs : revert previous change - it could result
in blocking some threads and block nunit completion.
svn path=/trunk/mcs/; revision=151960
* ChannelDispatcher.cs : now I can enable service throttling to
handle more than one concurrent channels as ASP.NET reply channel
got fixed.
* HTTP_listener_notes.txt: Fixed some wrong description, simplified
some, and updated some.
svn path=/trunk/mcs/; revision=150851
* ChannelDispatcher.cs : actually instance context provider could be
null through the entire service run.
Fixed all current nunit failures!
svn path=/trunk/mcs/; revision=150110
* DuplexClientRuntimeChannel.cs : do not try to iterate channel
acceptor when it is being closed.
* ChannelDispatcher.cs : do not try to iterate channel acceptor when
it is being closed.
svn path=/trunk/mcs/; revision=150047
* CommunicationObject.cs : when process state changes, lock the
object to make sure the state transition is valid.
Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.
* ChannelDispatcher.cs : another error audit.
svn path=/trunk/mcs/; revision=149793
* ContractDescriptionGenerator.cs : fix GetCallbackContract() to
correctly retrieve ServiceContractAttribute from the service type,
not the callback type. This ended up to get the bug #567672 sample
working (but it will break at some stage as it involves some
non-implemented classes).
* EndpointDispatcher.cs, InputOrReplyRequestProcessor.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* ServiceProxyGenerator.cs, ServiceRuntimeChannel.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* CallbackBehaviorAttributeTest.cs : added callback example from
bug #567672.
svn path=/trunk/mcs/; revision=149226
* ChannelDispatcher.cs : make sure to unlock channel acceptor wait
handle when the delegated method resulted in an error.
svn path=/trunk/mcs/; revision=149162
* OperationInvokerHandler.cs : fix async operation handling. Since
the entire handler chain is designed to be in synchronous, one
single handler must not leave its work incomplete (async). Just
wait for the async process completion within the handler.
svn path=/trunk/mcs/; revision=148021
* ServiceHostBase.cs : in AddBaseAddress(), use base_addresses
instead of Description. It could be called in InitializeDescription.
* InstanceBehavior.cs : allow nonpublic instance.
* DefaultOperationInvoker.cs : do use IsSynchronous correctly.
svn path=/trunk/mcs/; revision=147774
* 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