Class EndpointService
- Namespace
- Dynamicweb.DataIntegration.EndpointManagement
- Assembly
- Dynamicweb.DataIntegration.dll
Service for endpoints.
public class EndpointService : ICacheStorage<int, Endpoint>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
EndpointService
- Implements
- Inherited Members
Constructors
EndpointService()
Initializes a new instance of the EndpointService class.
public EndpointService()
Properties
EmptyRequest
public string EmptyRequest { get; }
Property Value
Info
Information about the object cache
public CacheInformation Info { get; }
Property Value
SoapHeaderKey
protected string SoapHeaderKey { get; }
Property Value
Methods
AddContentTypeHeader(Endpoint)
Adds Content-Type header value
public void AddContentTypeHeader(Endpoint endpoint)
Parameters
endpoint
EndpointEndpoint
AddDynamicwebServiceSoapHeader(Endpoint)
Adds SoapAction header with DynamicwebServiceSoapAction
public void AddDynamicwebServiceSoapHeader(Endpoint endpoint)
Parameters
endpoint
EndpointEndpoint
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
key
intKey to reset
Copy(Endpoint)
public Endpoint Copy(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
DeleteEndpoint(int)
Deletes the Endpoint.
public virtual void DeleteEndpoint(int id)
Parameters
id
intThe identifier.
Execute(Endpoint)
public string Execute(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
Execute(Endpoint, string)
Executes request from Endpoint
public string Execute(Endpoint endpoint, string requestBody = null)
Parameters
Returns
- string
Response string
Execute(Endpoint, TimeSpan)
Executes request from Endpoint
public string Execute(Endpoint endpoint, TimeSpan requestTimeout)
Parameters
Returns
- string
Response string
Execute(Endpoint, TimeSpan, string)
Executes request from Endpoint
public string Execute(Endpoint endpoint, TimeSpan requestTimeout, string requestBody = null)
Parameters
Returns
- string
Response string
Execute(int)
Executes request from Endpoint
public string Execute(int endpointId)
Parameters
endpointId
intEndpoint id
Returns
- string
Response string
Execute(int, string)
Executes request from Endpoint
public string Execute(int endpointId, string requestBody)
Parameters
Returns
- string
Response string
Execute(int, string, TimeSpan)
Executes request from Endpoint
public string Execute(int endpointId, string requestBody, TimeSpan requestTimeout)
Parameters
Returns
- string
Response string
ExtractContentFromSoapXml(string, string, string)
protected string ExtractContentFromSoapXml(string response, string methodName, string methodNamespace)
Parameters
Returns
GetDefaultDynamicwebServiceHeaders(Endpoint)
public Dictionary<string, string> GetDefaultDynamicwebServiceHeaders(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
GetDynamicwebServiceEndpointInfo(Endpoint)
public DynamicwebServiceEndpointInfo GetDynamicwebServiceEndpointInfo(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
GetDynamicwebServiceEndpointType(Endpoint)
public DynamicwebServiceEndpointType GetDynamicwebServiceEndpointType(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
GetDynamicwebServiceRequest(Endpoint)
public string GetDynamicwebServiceRequest(Endpoint endpoint)
Parameters
endpoint
Endpoint
Returns
GetDynamicwebServiceSoapBody(Endpoint, string)
public string GetDynamicwebServiceSoapBody(Endpoint endpoint, string request)
Parameters
Returns
GetEndpointById(int)
Gets an Endpoint by id.
public virtual Endpoint GetEndpointById(int id)
Parameters
id
intThe identifier.
Returns
GetEndpoints()
Gets the endpoints.
public virtual IEnumerable<Endpoint> GetEndpoints()
Returns
- IEnumerable<Endpoint>
A collection of endpoints.
GetEndpointsByIDs(IEnumerable<int>)
Gets Endpoints by ids.
public virtual IEnumerable<Endpoint> GetEndpointsByIDs(IEnumerable<int> ids)
Parameters
ids
IEnumerable<int>The identifiers.
Returns
- IEnumerable<Endpoint>
An enumeration of Endpoint.
GetNewCopyEndpointName(string, string, int)
public string GetNewCopyEndpointName(string currentName, string prefix = "(Copy)", int index = 0)
Parameters
Returns
GetSoapHeaderKey(string[])
protected string GetSoapHeaderKey(string[] headerKeys)
Parameters
headerKeys
string[]
Returns
IsDynamicwebServiceEndpoint(Endpoint)
Checks if endpoint is Dynamicweb webservice
public bool IsDynamicwebServiceEndpoint(Endpoint endpoint)
Parameters
endpoint
EndpointEndpoint
Returns
- bool
True if endpoint is Dynamicweb webservice, otherwise false
IsEmptyRequestDynamicwebServiceEndpoint(Endpoint, string)
Checks if the endpoint is for the Live integration.
public bool IsEmptyRequestDynamicwebServiceEndpoint(Endpoint endpoint, string EmptyRequest)
Parameters
Returns
MakeDynamicwebServiceEndpoint(Endpoint, string)
public void MakeDynamicwebServiceEndpoint(Endpoint endpoint, string request)
Parameters
MakeNotDynamicwebServiceEndpoint(Endpoint)
public void MakeNotDynamicwebServiceEndpoint(Endpoint endpoint)
Parameters
endpoint
Endpoint
RemoveContentTypeHeader(Endpoint)
public static void RemoveContentTypeHeader(Endpoint endpoint)
Parameters
endpoint
Endpoint
RemoveDynamicwebServiceSoapHeader(Endpoint)
Removes SoapAction header
public void RemoveDynamicwebServiceSoapHeader(Endpoint endpoint)
Parameters
endpoint
Endpoint
SaveEndpoint(Endpoint)
Saves the Endpoint.
public virtual void SaveEndpoint(Endpoint endpoint)
Parameters
endpoint
EndpointThe Endpoint.
SaveEndpoints(IList<Endpoint>)
Saves the Endpoints.
public virtual void SaveEndpoints(IList<Endpoint> endpoints)