Compartir a través de


Sessions Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Represents an abstract class used to create and handle the individual session classes.

Namespace:   Microsoft.Uii.Csr
Assembly:  Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Uii.Csr.Sessions
    Microsoft.Uii.Desktop.SessionManager.AgentDesktopSessions

Syntax

public abstract class Sessions : IEnumerable
Public MustInherit Class Sessions
    Implements IEnumerable

Constructors

Name Description
System_CAPS_protmethod Sessions(Boolean)

Initializes a new instance of the Sessions class.

System_CAPS_protmethod Sessions(Boolean, Int32)

Initializes a new instance of the Sessions class.

Properties

Name Description
System_CAPS_pubproperty ActiveSession

Gets the currently active session or null.

System_CAPS_pubproperty Count

The number of current sessions, not counting any global ones.

System_CAPS_pubproperty GlobalSession

Gets the global session or null.

System_CAPS_pubproperty Throttled

Gets a Boolean value that specifies whether the sessions have been throttled or not.

Methods

Name Description
System_CAPS_pubmethod AddSession(String, Int32, Object)

Add a new session to the UII desktop.

System_CAPS_pubmethod AddSession(String, Int32, Object, Guid)

Adds a new session to the UII desktop

System_CAPS_pubmethod CloseAll()

Closes all sessions.

System_CAPS_pubmethod CloseSession(Session, Boolean)

Closes the session and if it was the active session, assigns another session to be the active one.

System_CAPS_protmethod CreateSession(String, Int32, Object)

Creates a session.

System_CAPS_protmethod CreateSession(String, Int32, Object, Guid)

Creates a session.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Gets an enumerator object that can iterate through the sessions.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSession(Guid)

Gets the session based on the sessionID.

System_CAPS_pubmethod GetSession(Int32)

Gets the session based on the callID.

System_CAPS_pubmethod GetSession(String)

Gets the session based on the customer ID.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Save()

Saves the sessions and returns an XML giving the state of all existing sessions.

System_CAPS_pubmethod SetActiveSession(Guid)

Sets the session whose ID is given to be the active one and updates the UI as needed.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent SessionCloseEvent

Raised to close the session.

System_CAPS_pubevent SessionHideEvent

Raised to hide the session.

System_CAPS_pubevent SessionShowEvent

Raised to show the session.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Uii.Csr Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright