* ServiceHostBase.cs : retrieve MessageVersion and raise an error
if there is none. (Check this earlier than building a listener.)
* ChannelDispatcher.cs : MessageVersion check is moved to
ServiceHostBase.
* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
(The only special case I found for ChannelDispatcher.MessageVersion.)
* CustomBindingTest.cs : add tests for MessageVersion check on Open().
* MetadataExchangeBindingsTest.cs : make sure that special casing of
MessageVersion does not happen at this layer.
svn path=/trunk/mcs/; revision=159061
* OperationInvokerHandler.cs, MessageProcessingContext.cs :
ChannelDispatcher may be null, so check its availability before
using it. Don't use it, when possible.
* DispatchOperation.cs : remove unused member.
svn path=/trunk/mcs/; revision=158871
* OperationDescription.cs : add contract origin flags to identify
which operation should be used for client operations (and dispatch
too in the future).
* MessageDescription.cs : add IsRequest flag to indicate if it is
for request or not.
* ServiceContractGenerator.cs, ContractDescriptionGenerator.cs :
make use of above changes.
* ContractDescription.cs : don't create extraneous ClientOperations
in irrelevant message direction.
* EndpointDispatcher.cs, BaseMessagesFormatter.cs:
Now MessageDescription.Direction is differentiated from "IsRequest"
property, to precisely identify request/reply in callbacks. Also
now we don't have to create extraneous ContractDescription for
callbacks.
* DuplexClientRuntimeChannel.cs : do not create and use extraneous
ContractDescription for callback contract. Non-callback ones now
works fine.
This fixes service part of bug #567672, IsOneWay = true case.
svn path=/trunk/mcs/; revision=158454
* ContractDescriptionGenerator.cs : Now callback contract methods are
also reflected into OperationDescription as well as those from non-
callback contract. Callback methods have reverse MessageDirection,
so adjust them.
* ContractDescription.cs, ServiceEndpoint.cs, TypedMessageConverter.cs :
A bit of renaming / reflect method call changes.
* EndpointDispatcher.cs, DispatchRuntime.cs, ClientRuntime.cs :
now Callback[Dispatch|Client]Runtime properties are always filled
so that users can configure the callback runtimes (not sure such
configured runtimes work fine yet, but it is a required step).
* InputOrReplyRequestProcessor.cs : instead of HasCallbackRuntime
hack, use CallbackClientRuntime.CallbackContractType for checking
callback existence.
* ClientProxyGenerator.cs : CreateProxyType now carefully considers
requested proxy type, contract type and callback contract type.
i.e. now the resulting proxy has implemented methods for callbacks
that are also filled at ContractDescription.
* ClientRuntimeChannel.cs : reflect some method call changes.
svn path=/trunk/mcs/; revision=158412
* ContractDescription.cs : fill ClientOperation.Formatter here.
(It is hacky, see additional comment.)
* ClientRuntimeChannel.cs : replace GetFormatter() with Formatter.
* ClientOperation.cs : do the same for client side too.
svn path=/trunk/mcs/; revision=158083
* DispatchOperation.cs : on callback channels ChannelDispatcher is
not available. Wait for something like ClientRuntime.ChannelFactory.
svn path=/trunk/mcs/; revision=158082
* TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
here. If the contract is not one-way (IsOneWay = false) and there is
a callback, the callback message sent to the client should *not* be
assigned RelatesTo header here. Just do it in the request-reply
context. Do it in OperationInvokerHandler.
* OperationInvokerHandler.cs : assign RelatesTo header item here.
svn path=/trunk/mcs/; revision=157950
* ChannelDispatcher.cs : disable slottling again :( It still fails
to process concurrent requests if there is service metadata channel
and MaxConcurrentSessions > 1 on non-ASP.NET channels.
svn path=/trunk/mcs/; revision=157670
* ChannelDispatcher.cs : enable throttling again. Though issues
regarding parallel request is not here (multiple dispatchers
can accept a channels for each), and HTTP channels do not accept
more than one channel at a time anyways.
svn path=/trunk/mcs/; revision=157662
* OperationInvokerHandler.cs : workaround NRE issue in AsyncCallTest.
The original code was worse than this workaround.
svn path=/trunk/mcs/; revision=155788
* EndpointAddressMessageFilter.cs : check null arg. Return false for
no To header case and do not result in NRE.f
* EndpointAddressMessageFilterTest.cs :
Add null arg case. Enable working test.
svn path=/trunk/mcs/; revision=154787
* BaseMessagesFormatter.cs : hasParameter check is incorrectly
restrictive to reject some kinds of pairs.
* CustomPeerResolverServiceTest.cs : enabled all disabled tests.
svn path=/trunk/mcs/; revision=154781
* ClientRuntimeChannel.cs :
use DataContractSerializer.IsStartObject() to check if the fault
detail reader is for the fault contract, in addition to Action.
* FaultContractInfo.cs : add serializer property.
svn path=/trunk/mcs/; revision=154712
* EndpointDispatcher.cs : fill FaultContractInfos.
* DispatchOperation.cs : do not fill them dynamically/automatically.
* ErrorProcessingHandler.cs : added some FIXME notes.
svn path=/trunk/mcs/; revision=154690
* ChannelDispatcher.cs : differentiate EndpointNotFound and
ActionNotSupported so that FaultConverter can create appropriate
fault messages. Removed extra filter condition on null To item.
And create fault messages on *any* server side error, do not let
request client infinitely wait for the response until timeout.
(RunDestinationUnreachableTest() is still not working but it works
when it is SOAP 1.2.)
svn path=/trunk/mcs/; revision=154439
* ChannelDispatcher.cs : for faults, use fault namespace, not that of
ReplyAction. Added FIXME comment regarding dispatcher.
svn path=/trunk/mcs/; revision=154427
* ChannelDispatcher.cs : return EndpointDispatcher at initializing
for internal use. Add some locks. Patch by Matt Dargavel.
* ServiceHostBase.cs : if there is an existing ChannelDispatcher
for the same endpoint URI, reuse it. Patch by Matt Dargavel.
svn path=/trunk/mcs/; revision=154114
* BaseMessagesFormatter.cs : add internal OperationFormatter type
for moonlight/silverlight-sdk compatibility. It mostly wraps
the existing the return value by BaseMessagesFormatter.Create().
* DispatchOperation.cs, ClientOperation.cs, EndpointDispatcher.cs:
use above new type.
svn path=/trunk/mcs/; revision=153493
* ServiceRuntimeChannel.cs, ServiceProxyGenerator.cs:
make them public and add Contract property for service callback
proxies too for the same reason.
* InputOrReplyRequestProcessor.cs : now ServiceRuntimeChannel is
moved to fake public namespace.
svn path=/trunk/mcs/; revision=152523
* 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