Show / Hide Table of Contents

Class SessionManager

Manages an AppDrill troubleshooting session instances.

Inheritance
System.Object
SessionManager
Namespace: AppDrillCore.Session
Assembly: AppDrillCore.dll
Syntax
public sealed class SessionManager : object

Properties

Instance

Declaration
public static SessionManager Instance { get; }
Property Value
Type Description
SessionManager

Methods

BeginSession(ISessionDataListener, ConnectionInfo, ILogger)

Start a new AppDrill troubleshooting session.

Declaration
public ISession BeginSession(ISessionDataListener sessionDataListener, ConnectionInfo connectionInfo, ILogger logger = null)
Parameters
Type Name Description
ISessionDataListener sessionDataListener

A listener to receive data changes when they occur

ConnectionInfo connectionInfo

Data to use for the connection to the AppDrill backend

ILogger logger

The logger instance to use

Returns
Type Description
ISession

A session instance to work with, or null if failed to create a session. Call EndSession(ISession) and pass this instance to end the session.

EndSession(ISession)

Terminate an AppDrill troubleshooting session.

Declaration
public void EndSession(ISession session)
Parameters
Type Name Description
ISession session

A reference to the session that was given upon calling BeginSession(ISessionDataListener, ConnectionInfo, ILogger)

GetModelNames(String, ILogger)

Get a list of the models available for troubleshooting on the AppDrill backend. The names in the returned list can be used for starting a new troubleshooting session using the BeginSession(ISessionDataListener, ConnectionInfo, ILogger) function. Use the ConnectionInfo object to pass in the name of the model.

Declaration
public List<string> GetModelNames(string connectionString, ILogger logger = null)
Parameters
Type Name Description
System.String connectionString

The endpoint for the AppDrill backend server

ILogger logger

the logger instance to use

Returns
Type Description
List<System.String>

A list of available model names, or null if failued to retrieve

In This Article
Back to top Generated by DocFX