Commit Graph
394 Commits
Author SHA1 Message Date
Atsushi Eno 7570eef1b6 PeeDuplex ChannelFactory must be opened in prior to create channels. 2011-02-15 15:46:41 +09:00
Atsushi Eno 0b2d2e17cd Avoid possible list modification error during close process. 2011-01-21 20:25:23 +09:00
Atsushi Eno f4d59f294f Make sure to close session once the client opened one. 2011-01-21 20:24:58 +09:00
Marek Safar c8c8fc7769 Fixed missing protected internal modifier 2011-01-08 19:26:53 +00:00
Sebastien Pouliot 90f76e6521 Query SupportsCookieContainer ini Moonlight build
* HttpRequestChannel.cs: Do not use CookieContainer unless we know its
supported (e.g. client stack) otherwise we'll throw (browser stack)
2010-11-11 15:28:54 -05:00
Carlos Alberto Cortez 1d6f9ec0cc Implement IPoliciExportExtension support for MsmqBindingElementBase.
* MsmqBindingElementBase.cs: Implement ExportPolicy.
2010-11-04 21:20:54 +01:00
Carlos Alberto Cortez 842e1ab9c5 Implement IPolicyExportExtension support for ConnectionOrientedTransportBindingElement.
* ConnectionOrientedTransportBindingElement.cs: Implement ExportPolicy.
2010-11-04 21:20:54 +01:00
Carlos Alberto Cortez 17b69cf278 Implement IPolicyExportExtension support for HttpTransportBindingElement.
* HttpTransportBindingElement.cs: Implement ExportPolicy.
2010-11-04 21:20:54 +01:00
Marek Habersack d4bb1c86b7 [wcf] make /js and /jsdebug dispatchers work.
There were several issues here:

- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
  ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
  This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
  dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
  when it should first try to find one whose URL matches the current request exactly.
2010-10-20 15:04:37 +02:00
Atsushi Eno 78ffa62836 Add ExtendedProtectionPolicy members. Required by .config files by .NET svcutil. 2010-10-20 18:06:02 +09:00
Marek Habersack bc874337c2 [wcf] ServiceHost directive can span several lines. 2010-10-18 22:26:49 +02:00
Atsushi Eno 75343153ae fixity fix. 2010-10-15 03:51:28 +09:00
Atsushi Eno 98d9cae751 Fix 2.1 build. 2010-10-15 03:36:40 +09:00
Atsushi Eno 7f16785b14 Enable SecurityBindingElement.CanBuildChannelListener implementation again with fix. 2010-10-15 02:48:24 +09:00
Atsushi Eno d1430afd5a The previous changes somehow regressed on olive samples, so give quick fixes. 2010-10-15 01:03:18 +09:00
Atsushi Eno 34e1278179 Implement NetTcpBinding.CanBuildChannelFactory/Listener and several related stuff.
SecurityTokenParameters.InitializeSecurityTokenRequirement() needs to become
protected internal, so changed all overrides as well.

Some implementation in WindowsStreamSecurityBindingElement is needed only for
NetTcpBinding implementation.

Had to disable a test in SymmetricSecurityBindingElement that depended on
OneWay support (which is not yet done).
2010-10-15 00:41:39 +09:00
Atsushi Eno 1ee253f41b Fill NetTcpBinding security implementation a bit. 2010-10-14 19:40:48 +09:00
Atsushi Eno 2ba9827975 Add missing members. 2010-09-29 23:34:49 +09:00
Marek Habersack d718a17c96 [wcf] Make sure context exists in the dictionary getting its associated wait handle.
SvcHttpHandler maintains a mapping of HttpContext to ManualResetEvent. Entries are
removed from the cache in EndHttpRequest. The code makes sure the context exists in
the cache before attempting to access it.
2010-09-29 12:44:27 +02:00
Alan McGovern 08c8799a39 [System.ServiceModel] Fix a few potential exceptions in background threads
Pass the listener as it's own async state so that we avoid potential null derefs in the callback. Also wrap the BeginAccept and EndAccept calls in their own try/catches in case they throw an exception.
2010-09-29 10:37:56 +01:00
Atsushi Eno af6fde94ef TCP channel listener: remove extra complication (threads) in the previous change. 2010-09-29 01:02:09 +09:00
Atsushi Eno 8c7cd3e190 Rework TCP listening model, and fix AcceptTcpClient() to not drop timed out requests that actually steals next requests in the air. 2010-09-28 23:05:26 +09:00
Sebastien Pouliot 6bf7db2ca6 WebResponse.Headers is not always available (e.g. moonlight browser stack)
* System.ServiceModel.Channels/HttpRequestChannel.cs: For Moonlight use
the WebResponse.SupportsHeaders before accessing the Headers collection.
This is needed because (the default) browser stack does not expose the
headers from its responses. Fix bug #642193
2010-09-28 08:43:05 -04:00
Atsushi Eno a5043815da Override IsContentTypeSupported() in per-encoding-binding-element implementation to work as expected. 2010-09-24 16:26:28 +09:00
Atsushi Eno 59de000b20 Avoid holding WebRequest. This should fix part of bug #636500. 2010-09-10 17:51:30 +09:00
Jb Evain 5e32d42531 Remove workaround for moonlight now that System.dll's WebExceptionStatus is properly compiled 2010-09-03 11:31:17 +02:00
Atsushi Eno 65e5d6381c moonlight build workaround: smcs somehow rejects to compile this code. 2010-09-02 21:53:09 +09:00
Atsushi Eno 271213c255 Throw EndpointNotFoundException when it cannot connect to the remote server. 2010-09-02 12:04:29 +09:00
Atsushi Eno 60d557393c implement MessageEncodingBindingElement.GetProperty<T>(). 2010-08-11 01:38:43 +09:00
Atsushi Eno 9965c16abe Cosmetic corcompare fix. 2010-08-10 21:04:48 +09:00
atsushieno 526f29729f Implement several ToString() methods. 2010-07-29 00:04:43 +09:00
Atsushi Eno c47f62c611 fill missing members in Mtom / ongoing sslnego WS-Trust work.
svn path=/trunk/mcs/; revision=160499
2010-07-16 17:31:30 +00:00
Atsushi Eno 64372ac47a 2010-07-14 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs, MessageEncoder.cs:
	  The default content type value is null, not the ContentType value.

	* HttpReplyChannel.cs : pass HTTP ContentType header value to
	  MessageEncoder.ReadMessage().


svn path=/trunk/mcs/; revision=160376
2010-07-14 18:20:24 +00:00
Atsushi Eno 236256cca3 move MessageSecurityBindingSupport.cs too.
svn path=/trunk/mcs/; revision=160235
2010-07-12 10:54:22 +00:00
Atsushi Eno 6da7552dd2 more internal namespace moving.
svn path=/trunk/mcs/; revision=160234
2010-07-12 10:46:21 +00:00
Atsushi Eno 4df7955884 moved bunch of security internal classes to System.ServiceModel.Channels.Security directory.
svn path=/trunk/mcs/; revision=160232
2010-07-12 10:20:16 +00:00
Atsushi Eno b7cb691f5f 2010-07-12 Astushi Enomoto <[email protected]>
* Dummy_2_1.cs : add internal namespaces.
	* System.ServiceModel.dll.sources: add SecurityReplyChannel.cs

	* SecurityReplyChannel.cs : split from SecurityChannelListener.cs.
	* AsymmetricSecurityBindingElement.cs
	  WSSecurityMessageHeader.cs
	  SecureMessageDecryptor.cs
	  SecureMessageGenerator.cs
	  SecurityChannelListener.cs
	  SecurityRequestContext.cs
	  WSEncryptedXml.cs
	  SecurityRequestChannel.cs
	  SymmetricSecurityBindingElement.cs
	  SecurityOutputChannel.cs
	  SecurityChannelFactory.cs
	  WSSignedXml.cs
	  SecurityBindingElement.cs : change namespace to move to internal
	  namespace directory.


svn path=/trunk/mcs/; revision=160230
2010-07-12 10:08:08 +00:00
Atsushi Eno 7dc8ce4629 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestContext.cs : remove extraneous buffering.


svn path=/trunk/mcs/; revision=160147
2010-07-09 18:13:27 +00:00
Atsushi Eno 653633491b 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageDecryptor.cs : avoid duplicate copy of headers into
	  the decrypted message.


svn path=/trunk/mcs/; revision=160144
2010-07-09 16:34:18 +00:00
Atsushi Eno e482c4db5e 2010-07-09 Atsushi Enomoto <[email protected]>
* Message.cs, MessageBufferImpl.cs, MessageImpl.cs: preserve and
	  output attributes prefixes, to copy Body/@wsu:Id to successfully
	  verify the xmldsig.


svn path=/trunk/mcs/; revision=160142
2010-07-09 16:19:19 +00:00
Atsushi Eno 6c620fbb6e 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageFault.cs : MessageFault from Message could have empty
	  detail. Have it return HasDetail as expected.


svn path=/trunk/mcs/; revision=160127
2010-07-09 13:03:19 +00:00
Atsushi Eno 46dc4571d5 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestChannel.cs : do not try to decrypt faults, they
	  are not encrypted.


svn path=/trunk/mcs/; revision=160126
2010-07-09 13:01:59 +00:00
Atsushi Eno ba9b744df1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : to clone raw xml completely, avoid using 
	  ReadOuterXml() and text reader but use XmlNodeReader instaed.
	* Message.cs : avoid extraneous xmlns:u attribute.


svn path=/trunk/mcs/; revision=160120
2010-07-09 11:33:07 +00:00
Atsushi Eno b1e89864e1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaderInfo.cs: add internal Prefix
	  property and copy them from source to destination.


svn path=/trunk/mcs/; revision=160107
2010-07-09 09:17:26 +00:00
Atsushi Eno 25d38015d6 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : When XmlReaderMessage was writing its contents,
	  it was dropping body attributes, including wsu:Id for WS-Security.


svn path=/trunk/mcs/; revision=160105
2010-07-09 07:35:11 +00:00
Atsushi Eno 8d3ff9480e 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageGenerator.cs : MessageBuffer was missing copy of
	  Body wsu:Id attribute.
	* HttpRequestChannel.cs : remove comment for resolved issue.


svn path=/trunk/mcs/; revision=160102
2010-07-09 05:37:14 +00:00
Atsushi Eno 872ac7fb67 2010-07-09 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : move another old code.


svn path=/trunk/mcs/; revision=160099
2010-07-09 04:40:34 +00:00
Atsushi Eno a80f043367 2010-07-08 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=160037
2010-07-08 08:42:12 +00:00
Atsushi Eno 57efbb933e couple of warning cleanups.
svn path=/trunk/mcs/; revision=160034
2010-07-08 08:17:17 +00:00
Atsushi Eno cf52630eec 2010-07-06 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs : null via uri parameter is not allowed.

	* ClientRuntimeChannel.cs : give non-null Via uri.

	* HttpTransportBindingElementTest.cs : add test for
	  ChannelFactoryBase`1.CreateChannel() with null via uri.


svn path=/trunk/mcs/; revision=159934
2010-07-06 04:24:32 +00:00