Class WebApiConnectorExtensions
Provides extension methods for instantiating WebAPI connector.
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.S71500.WebAPI.dll
Syntax
public static class WebApiConnectorExtensions
Methods
| Edit this page View SourceAdjustForLeapDate(long)
Declaration
public static DateOnly AdjustForLeapDate(this long value)
Parameters
Type | Name | Description |
---|---|---|
long | value |
Returns
Type | Description |
---|---|
DateOnly |
AdjustForLeapDateTime(long)
Declaration
public static DateTime AdjustForLeapDateTime(this long value)
Parameters
Type | Name | Description |
---|---|---|
long | value |
Returns
Type | Description |
---|---|
DateTime |
CreateWebApi(ConnectorAdapterBuilder, string, string, string, bool, eTargetProjectPlatform, string)
Creates connector adapter for WebAPI communication.
Declaration
public static ConnectorAdapter CreateWebApi(this ConnectorAdapterBuilder adapter, string ipAddress, string userName, string password, bool ignoreSSLErros, eTargetProjectPlatform platform = eTargetProjectPlatform.SIMATICAX, string dbName = "\"TGlobalVariablesDB\"")
Parameters
Type | Name | Description |
---|---|---|
ConnectorAdapterBuilder | adapter | Adapter builder. |
string | ipAddress | Target's IP address. |
string | userName | User name. |
string | password | Password. |
bool | ignoreSSLErros | When true connection will ignore SSL errors. |
eTargetProjectPlatform | platform | |
string | dbName | Name of default DB. The DB used to store all data in an AX project is 'TGlobalVariablesDB'. |
Returns
Type | Description |
---|---|
ConnectorAdapter | Connector adapter for WebAPI connection. |
CreateWebApi(ConnectorAdapterBuilder, string, string, string, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool>?, bool, eTargetProjectPlatform, string)
Creates connector adapter for WebAPI communication.
Declaration
public static ConnectorAdapter CreateWebApi(this ConnectorAdapterBuilder adapter, string ipAddress, string userName, string password, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool>? customServerCertHandler, bool ignoreSslErrors = false, eTargetProjectPlatform platform = eTargetProjectPlatform.SIMATICAX, string dbName = "\"TGlobalVariablesDB\"")
Parameters
Type | Name | Description |
---|---|---|
ConnectorAdapterBuilder | adapter | Adapter builder. |
string | ipAddress | Target's IP address. |
string | userName | User name. |
string | password | Password. |
Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> | customServerCertHandler | Customized server certificate handler. |
bool | ignoreSslErrors | When set to true ssl errors are ignored |
eTargetProjectPlatform | platform | |
string | dbName | Name of default DB. The DB used to store all data in an AX project is 'TGlobalVariablesDB'. |
Returns
Type | Description |
---|---|
ConnectorAdapter | Connector adapter for WebAPI connection. |