Commit Graph
41 Commits
Author SHA1 Message Date
Atsushi Eno d577a89aa2 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : also made reference to host optional.


svn path=/trunk/mcs/; revision=140406
2009-08-21 08:26:28 +00:00
Atsushi Eno 5678390b82 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : isolated loop manager class from parent,
	  as well as moved some code from parent.


svn path=/trunk/mcs/; revision=140405
2009-08-21 08:25:23 +00:00
Atsushi Eno c79ccba22b 2009-08-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcherCollection.cs : remove extra members.


svn path=/trunk/mcs/; revision=140402
2009-08-21 07:09:54 +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 c78338f2fb 2009-08-20 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : support UnknownMessageReceived (used by
	  ChannelDispatcher).

	* ChannelDispatcher.cs : handle unknown message in host event.


svn path=/trunk/mcs/; revision=140324
2009-08-20 10:48:11 +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
Atsushi Eno 0e567db131 2009-08-14 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : EndpointNotFoundException message could
	  be a bit kindful.


svn path=/trunk/mcs/; revision=139911
2009-08-14 12:35:24 +00:00
Atsushi Eno 95ce234785 2009-08-11 Atsushi Enomoto <[email protected]>
* IOperationInvoker.cs : fix interface.
	* DefaultOperationInvoker.cs : refresh implementation of the above.
	* BaseMessagesFormatter.cs, OperationInvokerHandler.cs :
	  dependent changes for above.

	* ServiceHostBase.cs : use new IOperationInvoker implementation.

	* System.ServiceModel.dll.sources: add DefaultOperationInvoker.cs.


svn path=/trunk/mcs/; revision=139695
2009-08-11 08:14:30 +00:00
Atsushi Eno 0c22cb44ff 2009-08-07 Atsushi Enomoto <[email protected]>
* 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
2009-08-07 06:33:38 +00:00
Atsushi Eno 6105965541 2009-08-07 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : oops, it should have been committed at a time.
	  Change .ctor() args. Make some properties auto.


svn path=/trunk/mcs/; revision=139546
2009-08-07 06:24:08 +00:00
Atsushi Eno a8b7f12194 2009-08-07 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : callback runtime is set later.


svn path=/trunk/mcs/; revision=139543
2009-08-07 06:12:21 +00:00
Atsushi Eno 9e4d364a6d 2009-08-06 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : removing extra deps on ServiceEndpoint.

	* ClientRuntime.cs :
	  .ctor() just needs contract. Fill some properties.

	* ServiceEndpoint.cs : follow ClientRuntime change.


svn path=/trunk/mcs/; revision=139464
2009-08-06 08:39:05 +00:00
Atsushi Eno 3d637ff7a1 2009-08-04 Atsushi Enomoto <[email protected]>
* ReplyHandler.cs : there is better way to check IsOneWay.


svn path=/trunk/mcs/; revision=139322
2009-08-04 08:43:18 +00:00
Atsushi Eno 9977bb5fdd 2009-08-04 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : One way operation has no reply.
	* ReplyHandler.cs : ditto.


svn path=/trunk/mcs/; revision=139321
2009-08-04 08:14:11 +00:00
Atsushi Eno 4bd222cfb5 2009-07-31 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : raise error on multiple endpoint match
	  (documented at EndpointDispatcher.FilterPriority).


svn path=/trunk/mcs/; revision=139194
2009-07-31 16:10:27 +00:00
Atsushi Eno d50ee44924 2009-07-28 Atsushi Enomoto <[email protected]>
* 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
2009-07-29 19:02:40 +00:00
Atsushi Eno f1915fefb7 2009-07-14 Atsushi Enomoto <[email protected]>
* OperationBehaviorAttribute.cs :
	  add AutoDisposeParameters, and apply it.
	* CallbackBehaviorAttribute.cs : added couple of missing members.

	* DispatchRuntime.cs : add ValidateMustUnderstand.
	* DispatchOperation.cs : add AutoDisposeParameters.


svn path=/trunk/mcs/; revision=137849
2009-07-14 11:31:10 +00:00
Atsushi Eno 8b8a21d6c0 2009-07-02 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : when service instance is provided to the
	  ServiceHost, do not reject Type-less state.


svn path=/trunk/mcs/; revision=137266
2009-07-02 10:29:59 +00:00
Atsushi Eno 166e408ef7 2009-06-29 Atsushi Enomoto <[email protected]>
* 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
2009-06-29 17:08:50 +00:00
Atsushi Eno 1628f04de5 2009-06-25 Atsushi Enomoto <[email protected]>
* 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
2009-06-25 18:37:22 +00:00
Atsushi Eno 242e87c4d3 2009-06-25 Astushi Enomoto <[email protected]>
* SessionInstanceContextProvider.cs : new instance context provider.

	* System.ServiceModel.dll.sources:
	  add SessionInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=136859
2009-06-25 17:53:23 +00:00
Atsushi Eno f27bca4e70 2009-06-23 Atsushi Enomoto <[email protected]>
* 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
2009-06-23 10:21:19 +00:00
Atsushi Eno 5846997eef 2009-06-23 Atsushi Enomoto <[email protected]>
* InputOrReplyRequestProcessor.cs : bogus initialization.


svn path=/trunk/mcs/; revision=136672
2009-06-23 03:00:24 +00:00
Atsushi Eno 91e6a13f1b 2009-06-18 Atsushi Enomoto <[email protected]>
* 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
2009-06-18 18:22:23 +00:00
Atsushi Eno c2fb2b65d1 2009-06-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : avoid NRE (actually it should eliminate
	  Thread.Abort()). Added some comments on throttling.


svn path=/trunk/mcs/; revision=135730
2009-06-09 07:51:40 +00:00
Atsushi Eno 29364a9eb9 Prepare ServiceThorottle implementation.
svn path=/trunk/mcs/; revision=135727
2009-06-09 07:46:31 +00:00
Atsushi Eno b430f47799 svn:eol-style native.
svn path=/trunk/mcs/; revision=135653
2009-06-08 09:21:35 +00:00
Atsushi Eno 198d728a95 2009-06-08 Atsushi Enomoto <[email protected]>
* 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
2009-06-08 09:10:08 +00:00
Atsushi Eno e27bfb8a6c 2009-06-01 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : handle more errors gracefully.


svn path=/trunk/mcs/; revision=135116
2009-06-01 10:16:13 +00:00
Atsushi Eno af538f251c 2009-05-18 Atsushi Enomoto <[email protected]>
* ErrorProcessingHandler.cs, InputOrReplyRequestProcessor.cs :
	  they also premise request-reply channel and broke duplex channels.


svn path=/trunk/mcs/; revision=134319
2009-05-18 13:29:28 +00:00
Atsushi Eno 3a7ba8e605 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : open channel before using it.


svn path=/trunk/mcs/; revision=134184
2009-05-15 04:44:01 +00:00
Atsushi Eno ec6df7fbdb 2009-05-13 Atsushi Enomoto <[email protected]>
* 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
2009-05-13 10:30:23 +00:00
Atsushi Eno 7bcaf9bbbc 2009-05-13 Atsushi Enomoto <[email protected]>
* 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
2009-05-13 10:08:46 +00:00
Atsushi Eno 569b4b0f65 2009-05-13 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : wrong channel argument.


svn path=/trunk/mcs/; revision=134042
2009-05-13 09:25:12 +00:00
Atsushi Eno 4a23fddcb7 2009-04-27 Atsushi Enomoto <[email protected]>
* 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
2009-04-27 14:40:43 +00:00
Atsushi Eno 8ac98fb28a 2009-04-23 Atsushi Enomoto <[email protected]>
* DispatchOperation.cs : implement GetFormatter() at service side too.


svn path=/trunk/mcs/; revision=132447
2009-04-23 11:06:40 +00:00
Atsushi Eno 75075e36f8 2009-04-01 Atsushi Enomoto <[email protected]>
* OperationInvokeHandler.cs : replace MS copycat exception
          message.


svn path=/trunk/mcs/; revision=130721
2009-04-01 05:03:44 +00:00
Atsushi Eno 9096916965 2009-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntime.cs : fill contractType in .ctor().


svn path=/trunk/mcs/; revision=128054
2009-02-26 05:04:48 +00:00
Atsushi Eno 55791e96b7 2009-02-04 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs : do not use non-2.1 CreateInstance().


svn path=/trunk/mcs/; revision=125653
2009-02-04 06:31:05 +00:00
Jb Evain 031fa07cc1 2008-09-12 Astushi Enomoto <[email protected]>
Jb Evain  <[email protected]>

	* Makefile: support net_2_1_raw compilation profile.
	* net_2_1_raw_System.ServiceModel.dll.sources

	* *.cs: SL2 compilation support.


svn path=/trunk/mcs/; revision=112857
2008-09-12 11:21:41 +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