Commit Graph
16 Commits
Author SHA1 Message Date
Atsushi Eno 0351f32bb8 handle IsTerminating. 2011-02-07 23:14:53 +09:00
Atsushi Eno e0a3b79880 Callback contract should be distinguished from others for DispatchOperation. 2011-02-04 12:50:25 +09:00
Atsushi Eno 0c7a1a1f5c Fix the issue that callback contract often gets confused by picking unexpected contract type.
The problem is that DispatchRuntime.Type is a service implementation type
that could implement two or more contract interfaces, and it was in random
order how ServiceProxyGenerator picks up the contract type. Now it looks
for correct contract type instead of the service type by exactly looking
for the target contract in the endpoint (dispatcher).
2010-09-29 16:41:59 +09:00
Atsushi Eno eed5cddbae 2010-06-04 Atsushi Enomoto <[email protected]>
* 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
2010-06-04 08:40:36 +00:00
Atsushi Eno 3966750e29 2010-06-03 Atsushi Enomoto <[email protected]>
* 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
2010-06-03 16:33:31 +00:00
Atsushi Eno ba2d156ba4 2010-05-28 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : some comments.
	* DispatchOperation.cs : remove on-the-fly dependency on 
	  OperationDescription. Add immutable check on each property.


svn path=/trunk/mcs/; revision=158080
2010-05-28 07:08:00 +00:00
Atsushi Eno bcf2dad8d0 2010-05-27 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : fill CallbackDispatchRuntime. Add some
	  FIXME comments for ongoing fixes.


svn path=/trunk/mcs/; revision=158048
2010-05-27 17:17:12 +00:00
Atsushi Eno 642bfdb13c 2010-04-02 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : fill FaultContractInfos.
	* DispatchOperation.cs : do not fill them dynamically/automatically.
	* ErrorProcessingHandler.cs : added some FIXME notes.


svn path=/trunk/mcs/; revision=154690
2010-04-02 05:43:44 +00:00
Atsushi Eno 9f2af8d5a1 2010-03-11 Atsushi Enomoto <[email protected]>
* 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
2010-03-12 07:27:23 +00:00
Atsushi Eno 5c3aa1b73a 2010-01-08 Atsushi Enomoto <[email protected]>
* 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
2010-01-08 10:40:46 +00:00
Atsushi Eno e3f4a64baf 2009-09-17 Atsushi Enomoto <[email protected]>
* 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
2009-09-17 17:58:15 +00:00
Atsushi Eno 8110699760 2009-09-11 Atsushi Enomoto <[email protected]>
* 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
2009-09-11 10:33:15 +00:00
Atsushi Eno c3995f0e2f 2009-08-24 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs, ChannelDispatcher.cs : differentiate
	  service dispatch and callback client dispatch at initialization.


svn path=/trunk/mcs/; revision=140475
2009-08-24 08:50:05 +00:00
Atsushi Eno 6ac70127d7 2009-08-21 Atsushi Enomoto <[email protected]>
* 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
2009-08-21 06:35:21 +00:00
Atsushi Eno 9f9ce350de 2009-08-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : set expected AddressFilter.

	* EndpointDispatcher.cs : do not try to create wrong filter.


svn path=/trunk/mcs/; revision=140058
2009-08-17 12:54:31 +00:00
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00