SessionProvider<TSession, TAddress, TSettings> Class

Abstract base class for a Custom Session provider

Inheritance Hierarchy

System.Object
  TwinCAT.SessionProvider<TSession, TAddress, TSettings>

Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public abstract class SessionProvider<TSession, TAddress, TSettings> : ISessionProvider<TSession, TAddress, TSettings>, 
ISessionProvider
where TSession : ISession
where TSettings : class

Type Parameters

TSession

SessionType

TAddress

Address type

TSettings

Communication settings type

The SessionProvider<TSession, TAddress, TSettings> type exposes the following members.

Constructors

 

Name

Description

SessionProvider<TSession, TAddress, TSettings>()

Initializes a new instance of the SessionProvider<TSession, TAddress, TSettings> class.

SessionProvider<TSession, TAddress, TSettings>(AccessCapabilities)

Initializes a new instance of the SessionProvider<TSession, TAddress, TSettings> class.

Properties

 

Name

Description

Capabilities

Gets the capabilities.

Name

Gets the name of the SessionProvider

Methods

 

Name

Description

Create(Object, ISessionSettings, IConfiguration, ILoggerFactory)

Creates the Session with address and communication settings.

Create(TAddress, TSettings, IConfiguration, ILoggerFactory)

Creates the Session with specified address and communication settings.

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)

GetHashCode

Serves as the default hash function.
(Inherited from Object)

GetType

Gets the Type of the current instance.
(Inherited from Object)

MemberwiseClone

Creates a shallow copy of the current Object.
(Inherited from Object)

ToString

Returns a string that represents the current object.
(Inherited from Object)

Fields

 

Name

Description

s_self

Singleton Instance.

s_sync

Creation Synchronization object (Synchronizes instances of SessionsProviders against each other)

See Also

Reference

TwinCAT Namespace ISessionProvider<TSession, TAddress, TSettings>

Beckhoff Automation GmbH & Co. KG 2001-2026