You've already forked linux-packaging-mono
Imported Upstream version 4.0.3.13
Former-commit-id: 4f1f69b42e04def9a697c2550b23b9cae645ef29
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#if !XAMMAC_4_5
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Serialization;
|
||||
@@ -187,3 +188,4 @@ namespace Mono.Xml.XPath
|
||||
class Dummy {}
|
||||
}
|
||||
#endif
|
||||
#endif
|
69
mcs/class/System.ServiceModel/Dummy_XM_4_5.cs
Normal file
69
mcs/class/System.ServiceModel/Dummy_XM_4_5.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.ServiceModel.Channels;
|
||||
using System.ServiceModel.Dispatcher;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace System.ServiceModel
|
||||
{
|
||||
public class InstanceContext
|
||||
{
|
||||
public InstanceContext (object dummy) {}
|
||||
}
|
||||
}
|
||||
|
||||
namespace System.ServiceModel.PeerResolvers
|
||||
{
|
||||
class Dummy {}
|
||||
}
|
||||
|
||||
namespace System.ServiceModel.Configuration
|
||||
{
|
||||
class Dummy {}
|
||||
}
|
||||
namespace System.ServiceModel.Channels.Http
|
||||
{
|
||||
}
|
||||
namespace System.ServiceModel.Channels.NetTcp
|
||||
{
|
||||
}
|
||||
|
||||
namespace System.ServiceModel.Dispatcher
|
||||
{
|
||||
public sealed class EndpointDispatcher
|
||||
{
|
||||
internal EndpointDispatcher ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace System.ServiceModel.Channels
|
||||
{
|
||||
public static class UrlUtility {
|
||||
public static string UrlEncode (string s, Encoding e)
|
||||
{
|
||||
return System.Net.WebUtility.UrlEncode (s);
|
||||
}
|
||||
|
||||
public static string UrlDecode (string s, Encoding e)
|
||||
{
|
||||
return System.Net.WebUtility.UrlDecode (s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace System.ServiceModel.Description
|
||||
{
|
||||
public interface IPolicyExportExtension {}
|
||||
public interface IPolicyImportExtension {}
|
||||
public interface IWsdlExportExtension {}
|
||||
public interface IWsdlImportExtension {}
|
||||
}
|
||||
namespace System.ServiceModel.Channels
|
||||
{
|
||||
public interface ITransportTokenAssertionProvider {}
|
||||
}
|
@@ -18,6 +18,10 @@ LIB_MCS_FLAGS = \
|
||||
/r:System.Runtime.Serialization.dll \
|
||||
$(RESOURCE_FILES:%=/resource:%)
|
||||
|
||||
ifdef XAMMAC_4_5
|
||||
LIB_REFS += System.ServiceModel.Internals
|
||||
endif
|
||||
|
||||
ifneq (2.1, $(FRAMEWORK_VERSION))
|
||||
LIB_MCS_FLAGS += /d:NET_3_0 \
|
||||
/r:System.Configuration.dll \
|
||||
@@ -27,22 +31,41 @@ LIB_MCS_FLAGS += /d:NET_3_0 \
|
||||
/r:System.IdentityModel.Selectors.dll \
|
||||
/r:System.Transactions.dll \
|
||||
/r:System.Messaging.dll \
|
||||
/r:System.Web.dll \
|
||||
/r:System.Web.Services.dll \
|
||||
/r:Mono.Security.dll
|
||||
|
||||
ifdef XAMAMC_4_5
|
||||
LIB_MCS_FLAGS += /r:System.Net.dll
|
||||
endif
|
||||
|
||||
ifndef NO_SYSTEM_WEB_DEPENDENCY
|
||||
LIB_MCS_FLAGS += /r:System.Web.dll
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
|
||||
ifndef NO_SYSTEM_WEB_APPSERVICES_DEPENDENCY
|
||||
LIB_MCS_FLAGS += /r:System.Web.ApplicationServices.dll
|
||||
endif
|
||||
|
||||
ifndef NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY
|
||||
activation = $(the_libdir_base)System.ServiceModel.Activation.dll
|
||||
servicemodel_deps = $(activation)
|
||||
endif
|
||||
|
||||
ifneq (plainservice/,$(intermediate))
|
||||
ifndef NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY
|
||||
LIB_MCS_FLAGS += -define:HAS_ACTIVATION -r:System.ServiceModel.Activation.dll
|
||||
endif
|
||||
|
||||
ifndef NO_SYSTEM_WEB_APPSERVICES_DEPENDENCY
|
||||
LIB_MCS_FLAGS += -r:System.Web.ApplicationServices.dll
|
||||
endif
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
|
||||
|
||||
TEST_EXTRA_FILES = \
|
||||
@@ -87,4 +110,4 @@ CLEAN_FILES = $(the_libdir_base)plainservice/System.ServiceModel.dll
|
||||
ifndef intermediate
|
||||
csproj-local:
|
||||
$(MAKE) csproj-local intermediate=plainservice/
|
||||
endif
|
||||
endif
|
||||
|
@@ -131,7 +131,7 @@ namespace System.ServiceModel.Channels
|
||||
return new BinaryMessageEncoderFactory (this);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO]
|
||||
void IWsdlExportExtension.ExportContract (WsdlExporter exporter,
|
||||
WsdlContractConversionContext context)
|
||||
|
@@ -137,7 +137,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
OperationContext ctx = OperationContext.Current;
|
||||
// FIXME: support more fault code depending on the exception type.
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
// FIXME: set correct fault reason.
|
||||
if (ctx != null && ctx.EndpointDispatcher.ChannelDispatcher.IncludeExceptionDetailInFaults) {
|
||||
ExceptionDetail detail = new ExceptionDetail (error);
|
||||
|
@@ -185,7 +185,7 @@ namespace System.ServiceModel.Channels
|
||||
return typeof (TChannel) == typeof (IRequestChannel);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
public override bool CanBuildChannelListener<TChannel> (
|
||||
BindingContext context)
|
||||
{
|
||||
@@ -201,7 +201,7 @@ namespace System.ServiceModel.Channels
|
||||
return new HttpChannelFactory<TChannel> (this, context);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
internal static object ListenerBuildLock = new object ();
|
||||
|
||||
public override IChannelListener<TChannel> BuildChannelListener<TChannel> (
|
||||
@@ -242,7 +242,7 @@ namespace System.ServiceModel.Channels
|
||||
set { throw new NotImplementedException (); }
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
void IPolicyExportExtension.ExportPolicy (
|
||||
MetadataExporter exporter,
|
||||
PolicyConversionContext context)
|
||||
|
@@ -68,7 +68,7 @@ namespace System.ServiceModel.Channels
|
||||
return base.BuildChannelFactory <TChannel> (context);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO]
|
||||
public override IChannelListener<TChannel>
|
||||
BuildChannelListener<TChannel> (
|
||||
@@ -83,7 +83,7 @@ namespace System.ServiceModel.Channels
|
||||
return new HttpsTransportBindingElement (this);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
public XmlElement GetTransportTokenAssertion ()
|
||||
{
|
||||
var doc = new XmlDocument ();
|
||||
|
@@ -59,7 +59,7 @@ namespace System.ServiceModel.Channels
|
||||
return ctx.GetInnerProperty<T> ();
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO]
|
||||
protected virtual void OnImportPolicy (XmlElement assertion,
|
||||
MessageVersion messageVersion,
|
||||
|
@@ -99,7 +99,7 @@ namespace System.ServiceModel.Channels
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if !MOBILE
|
||||
#if !MOBILE && !XAMMAC_4_5
|
||||
void IPolicyExportExtension.ExportPolicy (MetadataExporter exporter, PolicyConversionContext context)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
|
@@ -30,7 +30,7 @@ using System.Collections.ObjectModel;
|
||||
using System.ServiceModel.Description;
|
||||
using System.ServiceModel.Channels;
|
||||
using System.ServiceModel.Security;
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
using System.ServiceModel.Channels.Security;
|
||||
using System.IdentityModel.Selectors;
|
||||
using System.IdentityModel.Tokens;
|
||||
@@ -44,7 +44,7 @@ namespace System.ServiceModel.Channels
|
||||
{
|
||||
internal SecurityBindingElement ()
|
||||
{
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
DefaultAlgorithmSuite = SecurityAlgorithmSuite.Default;
|
||||
MessageSecurityVersion = MessageSecurityVersion.Default;
|
||||
KeyEntropyMode = SecurityKeyEntropyMode.CombinedEntropy;
|
||||
@@ -60,7 +60,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
internal SecurityBindingElement (SecurityBindingElement other)
|
||||
{
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
alg_suite = other.alg_suite;
|
||||
key_entropy_mode = other.key_entropy_mode;
|
||||
security_header_layout = other.security_header_layout;
|
||||
@@ -79,7 +79,7 @@ namespace System.ServiceModel.Channels
|
||||
LocalClientSettings = other.LocalClientSettings.Clone ();
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
SecurityAlgorithmSuite alg_suite;
|
||||
SecurityKeyEntropyMode key_entropy_mode;
|
||||
SecurityHeaderLayout security_header_layout;
|
||||
@@ -93,7 +93,7 @@ namespace System.ServiceModel.Channels
|
||||
|
||||
public LocalClientSecuritySettings LocalClientSettings { get; private set; }
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
public SecurityAlgorithmSuite DefaultAlgorithmSuite {
|
||||
get { return alg_suite; }
|
||||
set { alg_suite = value; }
|
||||
@@ -138,7 +138,7 @@ namespace System.ServiceModel.Channels
|
||||
[MonoTODO ("Implement for TransportSecurityBindingElement")]
|
||||
public override bool CanBuildChannelFactory<TChannel> (BindingContext context)
|
||||
{
|
||||
#if NET_2_1
|
||||
#if NET_2_1 || XAMMAC_4_5
|
||||
// not sure this should be like this, but there isn't Symmetric/Asymmetric elements in 2.1 anyways.
|
||||
return context.CanBuildInnerChannelFactory<TChannel> ();
|
||||
#else
|
||||
@@ -183,7 +183,7 @@ namespace System.ServiceModel.Channels
|
||||
protected abstract IChannelFactory<TChannel>
|
||||
BuildChannelFactoryCore<TChannel> (BindingContext context);
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO ("Implement for TransportSecurityBindingElement")]
|
||||
public override bool CanBuildChannelListener<TChannel> (BindingContext context)
|
||||
{
|
||||
@@ -270,7 +270,7 @@ namespace System.ServiceModel.Channels
|
||||
#endif
|
||||
|
||||
#region Factory methods
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
public static SymmetricSecurityBindingElement
|
||||
CreateAnonymousForCertificateBindingElement ()
|
||||
{
|
||||
@@ -559,14 +559,14 @@ namespace System.ServiceModel.Channels
|
||||
CreateUserNameOverTransportBindingElement ()
|
||||
{
|
||||
var be = new TransportSecurityBindingElement ();
|
||||
#if !NET_2_1 // FIXME: there should be whatever else to do for 2.1 instead.
|
||||
#if !NET_2_1 && !XAMMAC_4_5 // FIXME: there should be whatever else to do for 2.1 instead.
|
||||
be.EndpointSupportingTokenParameters.SignedEncrypted.Add (new UserNameSecurityTokenParameters ());
|
||||
#endif
|
||||
return be;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
// It seems almost internal, hardcoded like this (I tried
|
||||
// custom parameters that sets IssuedTokenSecurityTokenParameters
|
||||
// like below ones, but that didn't trigger this method).
|
||||
|
@@ -143,7 +143,7 @@ namespace System.ServiceModel.Channels
|
||||
return new TextMessageEncoderFactory (this);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO]
|
||||
protected override void OnImportPolicy (XmlElement assertion,
|
||||
MessageVersion messageVersion,
|
||||
|
@@ -92,7 +92,7 @@ namespace System.ServiceModel.Channels
|
||||
return context.GetInnerProperty<T> ();
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
internal static XmlElement CreateTransportBinding (XmlElement transportToken)
|
||||
{
|
||||
var doc = new XmlDocument ();
|
||||
|
@@ -65,7 +65,7 @@ namespace System.ServiceModel.Channels
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
[MonoTODO]
|
||||
protected override IChannelListener<TChannel>
|
||||
BuildChannelListenerCore<TChannel> (
|
||||
|
@@ -35,7 +35,9 @@ using System.ServiceModel.Channels;
|
||||
using System.ServiceModel.Configuration;
|
||||
using System.ServiceModel.Description;
|
||||
using System.ServiceModel.Dispatcher;
|
||||
#if !XAMMAC_4_5
|
||||
using System.Web.Configuration;
|
||||
#endif
|
||||
|
||||
using SysConfig = System.Configuration.Configuration;
|
||||
|
||||
@@ -43,6 +45,7 @@ namespace System.ServiceModel.Configuration
|
||||
{
|
||||
internal static class ConfigUtil
|
||||
{
|
||||
#if !XAMMAC_4_5
|
||||
static object GetSection (string name)
|
||||
{
|
||||
if (ServiceHostingEnvironment.InAspNet)
|
||||
@@ -242,6 +245,7 @@ namespace System.ServiceModel.Configuration
|
||||
{
|
||||
return new EndpointAddress (el.Address, el.Identity != null ? el.Identity.CreateInstance () : null, el.Headers.Headers);
|
||||
}
|
||||
#endif
|
||||
|
||||
public static EndpointIdentity CreateInstance (this IdentityElement el)
|
||||
{
|
||||
@@ -299,6 +303,7 @@ namespace System.ServiceModel.Configuration
|
||||
return CreateCertificateFrom (el.StoreLocation, el.StoreName, el.X509FindType, el.FindValue);
|
||||
}
|
||||
|
||||
#if !XAMMAC_4_5
|
||||
public static BindingCollectionElement FindCollectionElement (Binding binding, SysConfig config)
|
||||
{
|
||||
var section = (BindingsSection) config.GetSection ("system.serviceModel/bindings");
|
||||
@@ -309,6 +314,7 @@ namespace System.ServiceModel.Configuration
|
||||
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
enum NamedConfigCategory
|
||||
|
@@ -40,7 +40,7 @@ using System.ServiceModel.Security.Tokens;
|
||||
namespace System.ServiceModel.Description
|
||||
{
|
||||
public class ClientCredentials
|
||||
#if NET_2_1
|
||||
#if NET_2_1 || XAMMAC_4_5
|
||||
: IEndpointBehavior
|
||||
#else
|
||||
: SecurityCredentialsManager, IEndpointBehavior
|
||||
@@ -128,7 +128,7 @@ namespace System.ServiceModel.Description
|
||||
return new ClientCredentials (this);
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
public override SecurityTokenManager CreateSecurityTokenManager ()
|
||||
{
|
||||
return new ClientCredentialsSecurityTokenManager (this);
|
||||
|
@@ -112,7 +112,7 @@ namespace System.ServiceModel.Description
|
||||
{
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
//IWsdlExportExtension
|
||||
|
||||
void IWsdlExportExtension.ExportContract (WsdlExporter exporter,
|
||||
|
@@ -100,7 +100,7 @@ namespace System.ServiceModel.Description
|
||||
set { type = value; }
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
internal XsdDataContractImporter DataContractImporter { get; set; }
|
||||
internal XmlSerializerMessageContractImporterInternal XmlSerializationImporter { get; set; }
|
||||
internal System.CodeDom.CodeTypeReference CodeTypeReference { get; set; }
|
||||
|
@@ -104,7 +104,7 @@ namespace System.ServiceModel.Description
|
||||
{
|
||||
}
|
||||
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
void IWsdlExportExtension.ExportContract (
|
||||
WsdlExporter exporter,
|
||||
WsdlContractConversionContext context)
|
||||
|
@@ -36,7 +36,7 @@ namespace System.ServiceModel.Diagnostics
|
||||
{
|
||||
public MessageLoggingSettings ()
|
||||
{
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
var e = ConfigUtil.DiagnosticSection.MessageLogging;
|
||||
LogEntireMessage = e.LogEntireMessage;
|
||||
LogKnownPii = e.LogKnownPii;
|
||||
|
@@ -214,7 +214,7 @@ namespace System.ServiceModel.Dispatcher
|
||||
|
||||
void ThrowIfOpened ()
|
||||
{
|
||||
#if !NET_2_1
|
||||
#if !NET_2_1 && !XAMMAC_4_5
|
||||
// FIXME: get callback client runtime status when ChannelDispatcher is not available.
|
||||
var state = Parent.ChannelDispatcher != null ? Parent.ChannelDispatcher.State : CommunicationState.Created; // Parent.CallbackClientRuntime.ChannelFactory.State;
|
||||
switch (state) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user