AX#

Search Results for

    Show / Hide Table of Contents

    Class WebApiConnectorExtensions

    Provides extension methods for instantiating WebAPI connector.

    Inheritance
    object
    WebApiConnectorExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.S71500.WebAPI.dll
    Syntax
    public static class WebApiConnectorExtensions

    Methods

    | Edit this page View Source

    AdjustForLeapDate(long)

    Declaration
    public static DateOnly AdjustForLeapDate(this long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    DateOnly
    | Edit this page View Source

    AdjustForLeapDateTime(long)

    Declaration
    public static DateTime AdjustForLeapDateTime(this long value)
    Parameters
    Type Name Description
    long value
    Returns
    Type Description
    DateTime
    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors