AX#

Search Results for

    Show / Hide Table of Contents

    Class WebApiConnector

    Provides connector to mediate connection with AX# twins over WebAPI connection.

    Inheritance
    object
    RootTwinObject
    Connector
    WebApiConnector
    Implements
    ITwinObject
    ITwinElement
    INotifyPropertyChanged
    Inherited Members
    Connector.SetLoggerConfiguration(ILogger)
    Connector.Logger
    Connector.ConnectorAdapter
    Connector.ExceptionBehaviour
    Connector.SubscriptionMode
    Connector.ErrorCount
    Connector.IdentityProvider
    Connector.RwCycleCount
    Connector.CyclicRwDuration
    Connector.StartUpTime
    Connector.MonitorConnector
    Connector.ReadWriteCycleDelay
    Connector.ConcurrentRequestDelay
    Connector.ConcurrentRequestMaxCount
    Connector.OnlineTags
    Connector.IsRwLoopSuspended
    Connector.PropertyChanged
    Connector.CreateSymbol(string, string)
    Connector.CreateHumanReadable(string, string)
    Connector.SetField<T>(ref T, T, string)
    Connector.SetCulture(CultureInfo)
    Connector.StartReadWriteOps()
    Connector.CyclicRead()
    Connector.CyclicWrite()
    Connector.ClearPeriodicReadSet()
    RootTwinObject.Identity
    RootTwinObject.GetSymbolTail()
    RootTwinObject.Poll()
    RootTwinObject.Interpreter
    RootTwinObject.AttributeName
    RootTwinObject.GetAttributeName(CultureInfo)
    RootTwinObject.GetHumanReadable(CultureInfo)
    RootTwinObject.Symbol
    RootTwinObject.HumanReadable
    RootTwinObject.GetChildren()
    RootTwinObject.GetParent()
    RootTwinObject.AddChild(ITwinObject)
    RootTwinObject.GetValueTags()
    RootTwinObject.AddValueTag(ITwinPrimitive)
    RootTwinObject.GetConnector()
    RootTwinObject.OnlineToPlain<T>()
    RootTwinObject.PlainToOnline<T>(T)
    RootTwinObject.ShadowToPlain<T>()
    RootTwinObject.PlainToShadow<T>(T)
    RootTwinObject.AnyChangeAsync<T>(T)
    RootTwinObject.OnlineToPlain()
    RootTwinObject.PlainToOnline(object)
    RootTwinObject.ShadowToPlain()
    RootTwinObject.PlainToShadow(object)
    RootTwinObject.AddKid(ITwinElement)
    RootTwinObject.GetKids()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector.S71500.WebApi
    Assembly: AXSharp.Connector.S71500.WebAPI.dll
    Syntax
    public class WebApiConnector : Connector, ITwinObject, ITwinElement, INotifyPropertyChanged

    Constructors

    | Edit this page View Source

    WebApiConnector(string, string, string, bool, eTargetProjectPlatform, string)

    Creates new instance of WebApiConnector.

    Declaration
    public WebApiConnector(string ipAddress, string userName, string password, bool ignoreSSLErros, eTargetProjectPlatform platform = eTargetProjectPlatform.SIMATICAX, string dbName = "\"TGlobalVariablesDB\"")
    Parameters
    Type Name Description
    string ipAddress

    Target's IP address.

    string userName

    User name.

    string password

    Password.

    bool ignoreSSLErros

    When set to 'true' the connection will ignore SSL errors.

    eTargetProjectPlatform platform
    string dbName

    Root DB name (AX uses 'TGlobalVariablesDB')

    | Edit this page View Source

    WebApiConnector(string, string, string, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool>?, bool, eTargetProjectPlatform, string)

    Creates new instance of WebApiConnector.

    Declaration
    public WebApiConnector(string ipAddress, string userName, string password, Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool>? customServerCertHandler, bool ignoreSSLErros, eTargetProjectPlatform platform = eTargetProjectPlatform.SIMATICAX, string dbName = "\"TGlobalVariablesDB\"")
    Parameters
    Type Name Description
    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 ignoreSSLErros

    When set to true ssl error are ignored.

    eTargetProjectPlatform platform
    string dbName

    Root DB name (AX uses 'TGlobalVariablesDB')

    Properties

    | Edit this page View Source

    NumberOfInstances

    Gets number of instance of WebAPI connector in this application.

    Declaration
    public static int NumberOfInstances { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    TargetPlatform

    Declaration
    public eTargetProjectPlatform TargetPlatform { get; }
    Property Value
    Type Description
    eTargetProjectPlatform

    Methods

    | Edit this page View Source

    BuildAndStart()

    Builds and starts this connector.

    Declaration
    public override Connector BuildAndStart()
    Returns
    Type Description
    Connector
    Overrides
    Connector.BuildAndStart()
    | Edit this page View Source

    ReLoginToConnectorApi()

    Declaration
    public Task ReLoginToConnectorApi()
    Returns
    Type Description
    Task
    | Edit this page View Source

    ReadBatchAsync(IEnumerable<ITwinPrimitive>?)

    Reads batch of value items from the plc.

    Declaration
    public override Task ReadBatchAsync(IEnumerable<ITwinPrimitive>? primitives)
    Parameters
    Type Name Description
    IEnumerable<ITwinPrimitive> primitives

    Primitive items to be read.

    Returns
    Type Description
    Task
    Overrides
    Connector.ReadBatchAsync(IEnumerable<ITwinPrimitive>)
    | Edit this page View Source

    ReloadConnector()

    Forces the connector to reload symbols.

    Declaration
    public override void ReloadConnector()
    Overrides
    Connector.ReloadConnector()
    | Edit this page View Source

    WriteBatchAsync(IEnumerable<ITwinPrimitive>?)

    Writes batch of value items to the plc.

    Declaration
    public override Task WriteBatchAsync(IEnumerable<ITwinPrimitive>? primitives)
    Parameters
    Type Name Description
    IEnumerable<ITwinPrimitive> primitives

    Primitive items to be written.

    Returns
    Type Description
    Task
    Overrides
    Connector.WriteBatchAsync(IEnumerable<ITwinPrimitive>)

    Implements

    ITwinObject
    ITwinElement
    INotifyPropertyChanged

    Extension Methods

    TranslatorExtension.Translate(ITwinElement, string, CultureInfo)
    TwinObjectExtensions.HasAttribute<T>(ITwinElement)
    TwinObjectExtensions.StartPolling(ITwinElement, int, object)
    TwinObjectExtensions.StopPolling(ITwinElement, object)
    TwinPrimitiveExtensions.GetAttribute<T>(ITwinElement)
    TwinPrimitiveExtensions.GetPropertyInfoViaSymbol(ITwinElement)
    TwinObjectExtensions.CreatePoco(ITwinObject)
    TwinObjectExtensions.MakeReadOnce(ITwinObject)
    TwinObjectExtensions.MakeReadOnly(ITwinObject)
    TwinObjectExtensions.OnlineToShadowAsync(ITwinObject)
    TwinObjectExtensions.ReadAsync(ITwinObject)
    TwinObjectExtensions.ReadAsync<T>(ITwinObject)
    TwinObjectExtensions.RetrievePrimitives(ITwinObject, List<ITwinPrimitive>)
    TwinObjectExtensions.ShadowToOnlineAsync(ITwinObject)
    TwinObjectExtensions.SubscribeEditValueChange(ITwinObject, OnlinerBase.ValueChangeDelegate)
    TwinObjectExtensions.SubscribeShadowValueChange(ITwinObject, OnlinerBase.ValueChangeDelegate)
    TwinObjectExtensions.UnSubscribeEditValueChange(ITwinObject)
    TwinObjectExtensions.UnSubscribeShadowValueChange(ITwinObject)
    TwinObjectExtensions.WriteAsync(ITwinObject)
    TwinObjectExtensions.WriteAsync<T>(ITwinObject)
    • 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