779 lines
23 KiB
C#
779 lines
23 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// //
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace CRIF.ACTion
|
|
{
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="CRIF.ACTion.IConnectorService")]
|
|
public interface IConnectorService
|
|
{
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IConnectorService/SubmitEx", ReplyAction="http://tempuri.org/IConnectorService/SubmitExResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
|
|
System.Threading.Tasks.Task<CRIF.ACTion.btMessage> SubmitExAsync(CRIF.ACTion.btMessage theXML);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IConnectorService/Submit", ReplyAction="http://tempuri.org/IConnectorService/SubmitResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
|
|
System.Threading.Tasks.Task<CRIF.ACTion.btMessage> SubmitAsync(CRIF.ACTion.btMessage theXML);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IConnectorService/SubmitX", ReplyAction="http://tempuri.org/IConnectorService/SubmitXResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
|
|
System.Threading.Tasks.Task<System.Xml.Linq.XElement> SubmitXAsync(System.Xml.Linq.XElement part);
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class btMessage
|
|
{
|
|
|
|
private Routing routingField;
|
|
|
|
private System.Xml.Linq.XElement bodyField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
|
|
public Routing routing
|
|
{
|
|
get
|
|
{
|
|
return this.routingField;
|
|
}
|
|
set
|
|
{
|
|
this.routingField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
|
|
public System.Xml.Linq.XElement body
|
|
{
|
|
get
|
|
{
|
|
return this.bodyField;
|
|
}
|
|
set
|
|
{
|
|
this.bodyField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class Routing
|
|
{
|
|
|
|
private Org orgField;
|
|
|
|
private Action actionField;
|
|
|
|
private User userField;
|
|
|
|
private Interface interfaceField;
|
|
|
|
private ApproSystem systemField;
|
|
|
|
private ApproResult approResultField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
|
|
public Org org
|
|
{
|
|
get
|
|
{
|
|
return this.orgField;
|
|
}
|
|
set
|
|
{
|
|
this.orgField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
|
|
public Action action
|
|
{
|
|
get
|
|
{
|
|
return this.actionField;
|
|
}
|
|
set
|
|
{
|
|
this.actionField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
|
|
public User user
|
|
{
|
|
get
|
|
{
|
|
return this.userField;
|
|
}
|
|
set
|
|
{
|
|
this.userField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
|
|
public Interface @interface
|
|
{
|
|
get
|
|
{
|
|
return this.interfaceField;
|
|
}
|
|
set
|
|
{
|
|
this.interfaceField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
|
|
public ApproSystem system
|
|
{
|
|
get
|
|
{
|
|
return this.systemField;
|
|
}
|
|
set
|
|
{
|
|
this.systemField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=5)]
|
|
public ApproResult approResult
|
|
{
|
|
get
|
|
{
|
|
return this.approResultField;
|
|
}
|
|
set
|
|
{
|
|
this.approResultField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class Org
|
|
{
|
|
|
|
private int orgIDField;
|
|
|
|
private bool orgIDFieldSpecified;
|
|
|
|
private string orgCodeField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public int orgID
|
|
{
|
|
get
|
|
{
|
|
return this.orgIDField;
|
|
}
|
|
set
|
|
{
|
|
this.orgIDField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool orgIDSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.orgIDFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.orgIDFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string orgCode
|
|
{
|
|
get
|
|
{
|
|
return this.orgCodeField;
|
|
}
|
|
set
|
|
{
|
|
this.orgCodeField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class ApproResult
|
|
{
|
|
|
|
private ApproResultEnum resultField;
|
|
|
|
private bool resultFieldSpecified;
|
|
|
|
private string errorInfoField;
|
|
|
|
private int exceptionCodeField;
|
|
|
|
private bool exceptionCodeFieldSpecified;
|
|
|
|
private string exceptionTextField;
|
|
|
|
private string stackTraceField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
|
|
public ApproResultEnum result
|
|
{
|
|
get
|
|
{
|
|
return this.resultField;
|
|
}
|
|
set
|
|
{
|
|
this.resultField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool resultSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.resultFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.resultFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
|
|
public string errorInfo
|
|
{
|
|
get
|
|
{
|
|
return this.errorInfoField;
|
|
}
|
|
set
|
|
{
|
|
this.errorInfoField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
|
|
public int exceptionCode
|
|
{
|
|
get
|
|
{
|
|
return this.exceptionCodeField;
|
|
}
|
|
set
|
|
{
|
|
this.exceptionCodeField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool exceptionCodeSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.exceptionCodeFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.exceptionCodeFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
|
|
public string exceptionText
|
|
{
|
|
get
|
|
{
|
|
return this.exceptionTextField;
|
|
}
|
|
set
|
|
{
|
|
this.exceptionTextField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
|
|
public string stackTrace
|
|
{
|
|
get
|
|
{
|
|
return this.stackTraceField;
|
|
}
|
|
set
|
|
{
|
|
this.stackTraceField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public enum ApproResultEnum
|
|
{
|
|
|
|
/// <remarks/>
|
|
Success,
|
|
|
|
/// <remarks/>
|
|
Exception,
|
|
|
|
/// <remarks/>
|
|
SqlError,
|
|
|
|
/// <remarks/>
|
|
NotImplemented,
|
|
|
|
/// <remarks/>
|
|
InvalidArg,
|
|
|
|
/// <remarks/>
|
|
UnexpectedType,
|
|
|
|
/// <remarks/>
|
|
InvalidXML,
|
|
|
|
/// <remarks/>
|
|
NoDataFound,
|
|
|
|
/// <remarks/>
|
|
InvalidOperation,
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class ApproSystem
|
|
{
|
|
|
|
private string systemVersionField;
|
|
|
|
private string systemVirtualDirectoryField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string systemVersion
|
|
{
|
|
get
|
|
{
|
|
return this.systemVersionField;
|
|
}
|
|
set
|
|
{
|
|
this.systemVersionField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string systemVirtualDirectory
|
|
{
|
|
get
|
|
{
|
|
return this.systemVirtualDirectoryField;
|
|
}
|
|
set
|
|
{
|
|
this.systemVirtualDirectoryField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class InterfaceConfig
|
|
{
|
|
|
|
private string settingNumField;
|
|
|
|
private string nameField;
|
|
|
|
private string valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string settingNum
|
|
{
|
|
get
|
|
{
|
|
return this.settingNumField;
|
|
}
|
|
set
|
|
{
|
|
this.settingNumField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string name
|
|
{
|
|
get
|
|
{
|
|
return this.nameField;
|
|
}
|
|
set
|
|
{
|
|
this.nameField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class Interface
|
|
{
|
|
|
|
private InterfaceConfig[] interfaceConfigField;
|
|
|
|
private int interfaceIDField;
|
|
|
|
private bool interfaceIDFieldSpecified;
|
|
|
|
private string interfaceNameField;
|
|
|
|
private int productIDField;
|
|
|
|
private bool productIDFieldSpecified;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("interfaceConfig", Order=0)]
|
|
public InterfaceConfig[] interfaceConfig
|
|
{
|
|
get
|
|
{
|
|
return this.interfaceConfigField;
|
|
}
|
|
set
|
|
{
|
|
this.interfaceConfigField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public int interfaceID
|
|
{
|
|
get
|
|
{
|
|
return this.interfaceIDField;
|
|
}
|
|
set
|
|
{
|
|
this.interfaceIDField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool interfaceIDSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.interfaceIDFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.interfaceIDFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string interfaceName
|
|
{
|
|
get
|
|
{
|
|
return this.interfaceNameField;
|
|
}
|
|
set
|
|
{
|
|
this.interfaceNameField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public int productID
|
|
{
|
|
get
|
|
{
|
|
return this.productIDField;
|
|
}
|
|
set
|
|
{
|
|
this.productIDField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool productIDSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.productIDFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.productIDFieldSpecified = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class User
|
|
{
|
|
|
|
private int userIDField;
|
|
|
|
private bool userIDFieldSpecified;
|
|
|
|
private string userNameField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public int userID
|
|
{
|
|
get
|
|
{
|
|
return this.userIDField;
|
|
}
|
|
set
|
|
{
|
|
this.userIDField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool userIDSpecified
|
|
{
|
|
get
|
|
{
|
|
return this.userIDFieldSpecified;
|
|
}
|
|
set
|
|
{
|
|
this.userIDFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string userName
|
|
{
|
|
get
|
|
{
|
|
return this.userNameField;
|
|
}
|
|
set
|
|
{
|
|
this.userNameField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="BizTalkMessage")]
|
|
public partial class Action
|
|
{
|
|
|
|
private string transactionTypeField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute()]
|
|
public string transactionType
|
|
{
|
|
get
|
|
{
|
|
return this.transactionTypeField;
|
|
}
|
|
set
|
|
{
|
|
this.transactionTypeField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
public interface IConnectorServiceChannel : CRIF.ACTion.IConnectorService, System.ServiceModel.IClientChannel
|
|
{
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("dotnet-svcutil", "1.0.0.0")]
|
|
public partial class ConnectorServiceClient : System.ServiceModel.ClientBase<CRIF.ACTion.IConnectorService>, CRIF.ACTion.IConnectorService
|
|
{
|
|
|
|
/// <summary>
|
|
/// Implement this partial method to configure the service endpoint.
|
|
/// </summary>
|
|
/// <param name="serviceEndpoint">The endpoint to configure</param>
|
|
/// <param name="clientCredentials">The client credentials</param>
|
|
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
|
|
|
|
public ConnectorServiceClient(EndpointConfiguration endpointConfiguration) :
|
|
base(ConnectorServiceClient.GetBindingForEndpoint(endpointConfiguration), ConnectorServiceClient.GetEndpointAddress(endpointConfiguration))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public ConnectorServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
|
|
base(ConnectorServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public ConnectorServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(ConnectorServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public ConnectorServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(binding, remoteAddress)
|
|
{
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<CRIF.ACTion.btMessage> SubmitExAsync(CRIF.ACTion.btMessage theXML)
|
|
{
|
|
return base.Channel.SubmitExAsync(theXML);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<CRIF.ACTion.btMessage> SubmitAsync(CRIF.ACTion.btMessage theXML)
|
|
{
|
|
return base.Channel.SubmitAsync(theXML);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<System.Xml.Linq.XElement> SubmitXAsync(System.Xml.Linq.XElement part)
|
|
{
|
|
return base.Channel.SubmitXAsync(part);
|
|
}
|
|
|
|
public virtual System.Threading.Tasks.Task OpenAsync()
|
|
{
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
|
|
}
|
|
|
|
public virtual System.Threading.Tasks.Task CloseAsync()
|
|
{
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
|
|
}
|
|
|
|
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
|
|
{
|
|
if ((endpointConfiguration == EndpointConfiguration.ExternalEndpoint))
|
|
{
|
|
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
|
|
result.MaxBufferSize = int.MaxValue;
|
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
|
result.MaxReceivedMessageSize = int.MaxValue;
|
|
result.AllowCookies = true;
|
|
return result;
|
|
}
|
|
if ((endpointConfiguration == EndpointConfiguration.InternalEndpoint))
|
|
{
|
|
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
|
|
result.MaxBufferSize = int.MaxValue;
|
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
|
result.MaxReceivedMessageSize = int.MaxValue;
|
|
result.AllowCookies = true;
|
|
return result;
|
|
}
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
}
|
|
|
|
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
|
|
{
|
|
if ((endpointConfiguration == EndpointConfiguration.ExternalEndpoint))
|
|
{
|
|
return new System.ServiceModel.EndpointAddress("http://www-lc3cst.myappro.com/ACS/ConnectorService.svc/ConnectorService");
|
|
}
|
|
if ((endpointConfiguration == EndpointConfiguration.InternalEndpoint))
|
|
{
|
|
return new System.ServiceModel.EndpointAddress("http://www-lc3cst.myappro.com/ACS/ConnectorService.svc/InternalService");
|
|
}
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
}
|
|
|
|
public enum EndpointConfiguration
|
|
{
|
|
|
|
ExternalEndpoint,
|
|
|
|
InternalEndpoint,
|
|
}
|
|
}
|
|
}
|