Commit Graph
1228 Commits
Author SHA1 Message Date
Martin Baulig 87622fc711 [WCF]: Update to my last fix for bug #22129.
The problem already starts when creating the OperationDescription; we need
to also look at the End* method here to correctly parse the reply parameters.

Then ClientRuntimeChannel.Process needs to distinguish between sync/async
and copy the out/byref parameters when needed.
2014-09-16 21:34:20 +02:00
Martin Baulig 8b10d9bb0b [WCF]: Copy out/ref parameters on async call; bug #22129. 2014-09-15 18:25:54 +02:00
Alexander Köplinger ddcfc42070 Cleanup namespace names of class lib tests to follow convention
A couple of the test suites didn't follow the MonoTests.<namespace of class under test> naming convention for the namespace.
2014-09-04 18:55:58 +02:00
Martin Baulig 24fbaedcd2 [WCF]: Actually fix #22179 to allow concurrent requests.
Pass the 'OperationContext' around in a parameter instead of storing it
in an instance field to make this thread-safe.
2014-09-05 18:59:21 +02:00
Ryan J. Melena b1446b1982 Correct duplicate X509CertificateValidationMode definition error caused by enum changing assemblies between .NET 4.0 and 4.5. 2014-08-28 19:01:48 -05:00
Martin Baulig 37d2e36ca9 [WCF]: Fix #22179 - 'finally' protect ClientRuntimeChannel.Begin/EndProcess(). 2014-08-26 20:00:44 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Alex Rønne Petersen d56373ffc0 [WCF] Disable CloseTest and OpenTest4 in CustomPeerResolverServiceTest.
These tests occasionally time out:

Test Case Failures:
1) MonoTests.System.ServiceModel.PeerResolvers.CustomPeerResolverServiceTest.CloseTest : System.TimeoutException : The operation has timed-out.
at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult result) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0

I.e. we're timing out waiting for the async wait handle here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs#L495

Since we have no current WCF maintainer and this is deep, deep within
WCF land and causes unstable builds on Jenkins, disable these tests
for now.

Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21069
2014-07-03 02:31:07 +02:00
Miguel de Icaza 8d15c21023 [WCF] Make BasicHttpBinding.AllowCookies work
This patch is from Brendan Zagaeski and fixes bug 11307

The description of the problem was:

In Mono 2.10.12, the BasicHttpBinding property no longer supports
EnableHttpCookieContainer because it is Depreciated. The replacement
is AllowCookies, but this property does not work. Upon inspection of
the source source, we find that the HttpCookieContainerBindingElement
is added in accordance with EnableHttpCookieContainer, but not
AllowCookies.

The conditional compile logic at [1] is no longer needed for
Xamarin.iOS or Xamarin.Android.
2014-06-19 17:45:15 -04:00
Alexander Köplinger db9f761a78 Fixed another 8080 test port
I missed that one in f396d37c54.
2014-06-18 10:01:36 +02:00
Alexander Köplinger f396d37c54 [System.ServiceModel] Changed test port from 8080 to 30158
Port 8080 is widely used and resulted in address conflicts on monojenkins, so we use a different port instead.

Commit licensed under MIT/X11.
2014-06-17 23:00:42 +02:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza 0a806a14eb [build] Add new project files based on the new staged build 2014-05-23 11:51:20 -04:00
Miguel de Icaza 28df1505c6 [build] Record extra library builds for our Visual Studio input files
Added local targets (csproj-local) to all the assemblies that have
staged builds to dump their build information for the underlying
dependencies.

This information is needed to create the new Visual Studio csproj
files.

This commit also updates the collected build metadata from running:

     make update-csproj
     make package-inputs

As described in msvc/scripts/README
2014-05-19 22:55:00 -04:00
Miguel de Icaza a3de5976ed Merge pull request #1041 from mono/staged-cyclic-builds
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies.   This deals directly with
the following cycle:

    System.dll requires:
	System.Configuration.dll
	Mono.Security.dll
	System.Xml.dll

	They all require System.dll to be built

    System.Xml requires:
	System.dll
	System.Configuration.dll

    System.Security.dll requires:
	System.dll
	Mono.Security.dll
	System.Xml.dll

Principle
=========

The patch works by directing the build infrastructure to place
intermediate build steps on their own directory.  For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".

The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.

The third time is the final build, and that one ends in the profile
directory.

The same principle is applied to System.Xml.

Better Dependency Tracking
==========================

To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies.  This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.

Bug fixes
=========

We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support.  This patch introduces back the changes to build System.Xml
in two steps.

This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).

Details
=======

library.make:

	Introduces a new "the_libdir_base" which is the raw directory
	where the final output will go.   This points to the same location
	that libdir_base previously pointed to.

	The existing libdir_base is modified to contain an optional
	"intermediate" directory, where intermediate builds can be
	placed.
2014-05-16 15:48:41 -04:00
Miguel de Icaza 4b3977ecef Last of the cycles is gone 2014-05-14 23:06:19 -04:00
Joel Martinez e9068ebf5b [docs] documentation import for 'returns' elements. 2014-05-12 14:52:53 -04:00
Joel Martinez 891e93e1fe [docs] Import of additional member documentation that contain generic parameteres 2014-05-12 14:52:48 -04:00
Joel Martinez d4fcdb95b4 [docs] namespace documentation import. 2014-05-12 14:52:47 -04:00
Joel Martinez b7293faf40 [docs] type parameter documentation impport. 2014-05-12 14:52:47 -04:00
Joel Martinez aef2cb86cb [docs] Additional parameter documentation import. 2014-05-12 14:52:47 -04:00
Joel Martinez 6999270099 [docs] Import of Microsoft BCL Documentation.
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Joel Martinez 68cf38bad0 docupdate: System.ServiceModel documentation update 2014-03-10 15:14:00 -04:00
Ed Boren ee17eca298 Data corruption using SslStream (Xamarin bug 15293)
When reading and writing data at the same time over an
System.Net.Security.SslStream, an exception will be thrown often.
Usually the exception is: Mono.Security.Protocol.Tls.TlsException “Bad
record MAC”

The issue is that the single TlsCipherSuite instance used for both
reading and writing does not synchronize access to the “header” member.
If the contents get corrupted the MAC calculation returned by
ComputServerRecordMAC or ComputeClientRecordMAC is incorrect.

See https://bugzilla.xamarin.com/show_bug.cgi?id=15293. Reproduced in
OS X, iOS and Windows.
2014-02-28 17:08:15 -05:00
Alexander Köplinger b0032294da [Test] Cleaned up how a bunch of tests were ignored
Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
2014-02-23 19:44:21 +01:00
Aaron Bockover a66f333246 profiles: define xammac (Xamarin.Mac) profile
Based on the Mobile profile and modeled after
the MonoDroid profile.
2014-01-16 14:16:59 -05:00
Atsushi Eno c67aed9a47 fix build. 2014-01-10 20:42:25 +09:00
Atsushi Eno 2fd8da4920 Fix bug #11336. 2014-01-10 19:03:33 +09:00
Marek Safar 8bd66dbbeb Add System.ServiceModel.Activation assembly. Fixes #14544 2013-09-10 10:14:50 +02:00
Martin Baulig c5e7004e98 Fix mobile build of my commit 1ae87e9. 2013-09-03 15:15:43 +02:00
Martin Baulig 1ae87e9ee9 [WCF]: Add stubs for some missing .NET 4.0/4.5 APIs. 2013-09-02 21:52:13 +02:00
Martin Baulig 4db812ca7e Add missing .NET 4.5 APIs
* System.Text.RegularExpressions.Regex.InfiniteMatchTimeout
* System.Net.HttpStatusCode.UpgradeRequired
* Add System.Reflection.TypeAttributes.WindowsRuntime
* System.Runtime.GCLatencyMode.SustainedLowLatency
* System.UriComponents.NormalizedHost
2013-09-02 21:52:13 +02:00
Miguel de Icaza b6d1b4492f Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work). 2013-07-30 16:51:38 -04:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Martin Baulig d64187a447 [WCF]: Disable WsdlExporterTest.ExportMessageContract(). 2013-03-22 04:08:10 +01:00
Martin Baulig 97d52b2237 [WCF]: Implement cookie support in .NET 4.0. 2013-03-22 04:08:10 +01:00
Martin Baulig d2d903f1d2 [WCF]: 2nd part of bug #5827, set CheckCharacters = false in TextMessageEncoder. 2013-03-22 01:57:37 +01:00
Martin Baulig d54fac4349 Minor .NET 4.5 API fixes. 2013-03-12 21:15:56 -04:00
Martin Baulig dfc1434f41 Add stubs for some new .NET 4.0/4.5 WCF APIs. 2013-03-12 17:23:01 -04:00
Martin Baulig 77df2f0865 Misc .NET 4.5 / PCL APIs. 2013-03-12 17:22:58 -04:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 8063eb0963 Remove broken profile files 2013-02-12 10:19:10 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera f378e23a3f Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:41:51 -05:00
Rodrigo Kumpera a0d28b2587 Kill the MOONLIGHT define in System.ServiceModel. 2013-02-11 13:01:11 -05:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Martin Baulig 42b6eb5115 [WCF]: .NET 4.0 API fixes. 2013-01-22 00:11:47 +01:00
Martin Baulig eb285f121c Merge branch 'master' into baulig 2013-01-21 20:56:20 +01:00