Class StateHelper
This is a class to validate the connection with the Secure Exchanges server
Inheritance
System.Object
StateHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class StateHelper
Methods
TestServer(IEndPointConfiguration, String)
Validate if the server answer your request
Declaration
public static bool TestServer(IEndPointConfiguration endPoint, string version)
Parameters
Type | Name | Description |
---|---|---|
IEndPointConfiguration | endPoint | You can use a BaseEndPointConfiguration to setup your configuration if you don't have |
System.String | version |
Returns
Type | Description |
---|---|
System.Boolean | If the connection is successfull return true |
Examples
TestServer(new BaseEndPointConfiguration(new Uri("https://www.secure-exchanges.com/_api/0217/0217.asmx")));