Session Class

Represents a session that contains information about an active user.

Inheritance Hierarchy

SystemObject
  TcHmiSrv.CoreSession

Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public class Session : ICopyable<Session>, 
    IDeepCopyable<Session>, IShallowCopyable<Session>, IEquatable<Session>

The Session type exposes the following members.

Constructors

 

Name

Description

Session Class 1:

Session

Initializes a new instance of the Session class.

Properties

 

Name

Description

Session Class 2:

EndpointInfo

Contains the EndpointInfo the Session.

Session Class 3:

Id

Contains the identifier of the Session.

Session Class 4:

Locale

Contains the locale of the active user in BCP 47 representation.

Session Class 5:

SocketId

Contains the numeric identifier of the WebSocket of the Session.

Session Class 6:

User

Contains the name of the active user.

Methods

 

Name

Description

Session Class 7:

DeepCopy

Creates a new object that is a deep copy of the current Session.

Session Class 8:

Equals(Object)

Determines whether the specified Object is equal to the current Session.
(Overrides ObjectEquals(Object))

Session Class 9:

Equals(Session)

Indicates whether the current Session is equal to another Session.

Session Class 10:

Finalize

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

Session Class 11:

GetHashCode

Serves as the default hash function.
(Overrides ObjectGetHashCode)

Session Class 12:

GetType

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

Session Class 13:

MemberwiseClone

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

Session Class 14:

ShallowCopy

Creates a new Session that is a shallow copy of the current Session.

Session Class 15:

ToString

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

Operators

 

Name

Description

Session Class 16:

Session Class 17:

Equality(Session, Session)

Determines whether two instances of the Session class are equal.

Session Class 18:

Session Class 19:

Inequality(Session, Session)

Determines whether two instances of the Session class are not equal.

Extension Methods

 

Name

Description

Session Class 20:

ToJson

Returns an unformatted JSON String that represents the current Session.
(Defined by SessionExtensions)

Session Class 21:

ToJson

Returns a JSON String that represents the current Session.
(Defined by SessionExtensions)

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG