release_after_call, release_before_call,
tx_auto_complete, tx_required,
auto_dispose_params = true;
- ImpersonationOption impersonation;
IDispatchMessageFormatter formatter;
+#if !NET_2_1
+ ImpersonationOption impersonation;
IOperationInvoker invoker;
SynchronizedCollection<IParameterInspector> inspectors
= new SynchronizedCollection<IParameterInspector> ();
= new SynchronizedCollection<FaultContractInfo> ();
SynchronizedCollection<ICallContextInitializer> ctx_initializers
= new SynchronizedCollection<ICallContextInitializer> ();
+#endif
public DispatchOperation (DispatchRuntime parent,
string name, string action)
get { return action; }
}
+#if !NET_2_1
public SynchronizedCollection<ICallContextInitializer> CallContextInitializers {
get { return ctx_initializers; }
}
- public bool AutoDisposeParameters {
- get { return auto_dispose_params; }
- set {
- ThrowIfOpened ();
- auto_dispose_params = value;
- }
- }
-
- public bool DeserializeRequest {
- get { return deserialize_request; }
- set {
- ThrowIfOpened ();
- deserialize_request = value;
- }
- }
-
public SynchronizedCollection<FaultContractInfo> FaultContractInfos {
get { return fault_contract_infos; }
}
- public IDispatchMessageFormatter Formatter {
- get { return formatter; }
- set {
- ThrowIfOpened ();
- formatter = value;
- }
- }
-
+ [MonoTODO ("not considered")]
public ImpersonationOption Impersonation {
get { return impersonation; }
set {
}
}
- public bool IsOneWay {
- get { return is_oneway; }
- }
-
public bool IsTerminating {
get { return is_terminating; }
set {
}
}
- public string Name {
- get { return name; }
- }
-
public SynchronizedCollection<IParameterInspector> ParameterInspectors {
get { return inspectors; }
}
- public DispatchRuntime Parent {
- get { return parent; }
- }
-
public bool ReleaseInstanceAfterCall {
get { return release_after_call; }
set {
get { return reply_action; }
}
- public bool SerializeReply {
- get { return serialize_reply; }
- set {
- ThrowIfOpened ();
- serialize_reply = value;
- }
- }
-
public bool TransactionAutoComplete {
get { return tx_auto_complete; }
set {
tx_required = value;
}
}
+#endif
+
+ public bool AutoDisposeParameters {
+ get { return auto_dispose_params; }
+ set {
+ ThrowIfOpened ();
+ auto_dispose_params = value;
+ }
+ }
+
+ public bool DeserializeRequest {
+ get { return deserialize_request; }
+ set {
+ ThrowIfOpened ();
+ deserialize_request = value;
+ }
+ }
+
+ public IDispatchMessageFormatter Formatter {
+ get { return formatter; }
+ set {
+ ThrowIfOpened ();
+ formatter = value;
+ }
+ }
+
+ public bool IsOneWay {
+ get { return is_oneway; }
+ }
+
+ public string Name {
+ get { return name; }
+ }
+
+ public DispatchRuntime Parent {
+ get { return parent; }
+ }
+
+ public bool SerializeReply {
+ get { return serialize_reply; }
+ set {
+ ThrowIfOpened ();
+ serialize_reply = value;
+ }
+ }
void ThrowIfOpened ()
{
+#if !NET_2_1
// 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) {
return;
}
throw new InvalidOperationException ("Cannot change this property after the service host is opened");
+#endif
}
}
}
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Reflection;
+#if !NET_2_1
using System.IdentityModel.Policy;
-using System.ServiceModel.Channels;
+using System.Web.Security;
+#endif
using System.Text;
using System.Threading;
using System.ServiceModel;
+using System.ServiceModel.Channels;
using System.ServiceModel.Description;
-using System.Web.Security;
namespace System.ServiceModel.Dispatcher
{
public sealed class DispatchRuntime
{
+#if NET_2_1
+ internal DispatchRuntime (EndpointDispatcher dispatcher, ClientRuntime callbackClientRuntime)
+ {
+ UnhandledDispatchOperation = new DispatchOperation (
+ this, "*", "*", "*");
+ }
+#else
DispatchOperation.DispatchOperationCollection operations =
new DispatchOperation.DispatchOperationCollection ();
public Type Type { get; set; }
- public DispatchOperation UnhandledDispatchOperation { get; set; }
-
public bool ValidateMustUnderstand { get; set; }
+#endif
+
+ public DispatchOperation UnhandledDispatchOperation { get; set; }
}
}
System.ServiceModel.Description/ContractDescriptionGenerator.cs
System.ServiceModel.Description/FaultDescription.cs
System.ServiceModel.Description/FaultDescriptionCollection.cs
+System.ServiceModel.Description/IContractBehavior.cs
System.ServiceModel.Description/IEndpointBehavior.cs
System.ServiceModel.Description/IOperationBehavior.cs
System.ServiceModel.Description/MessageBodyDescription.cs
System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs
System.ServiceModel.Dispatcher/ClientOperation.cs
System.ServiceModel.Dispatcher/ClientRuntime.cs
+System.ServiceModel.Dispatcher/DispatchRuntime.cs
+System.ServiceModel.Dispatcher/DispatchOperation.cs
System.ServiceModel.Dispatcher/FaultContractInfo.cs
System.ServiceModel.Dispatcher/IChannelInitializer.cs
System.ServiceModel.Dispatcher/IClientMessageFormatter.cs