AdsSessionBase Constructor

Initializes a new instance of the AdsSessionBase class.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

protected AdsSessionBase(
    AmsAddress address,
    SessionSettings settings,
    IAdsClientFactory factory,
    ILogger? logger,
    Object? owner
)

Parameters

address

Type: TwinCAT.Ads.AmsAddress
The address.

settings

Type: TwinCAT.Ads.SessionSettings
The settings.

factory

Type: IAdsClientFactory
The client factory

logger

Type: Microsoft.Extensions.Logging.ILogger
The logger.

owner

Type: System.Object
The session owner

Exceptions

Exception

Condition

ArgumentNullException

address

Reference

AdsSessionBase Class

TwinCAT.Ads Namespace