Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Log Class / StartSession Method / StartSession(AgentConfiguration,Int32,String) Method
The Agent configuration to use instead of any configuration in the app.config file.
The number of stack frames to skip out to find the original caller.
A caption for the reason the session is starting, or null.

In This Topic
    StartSession(AgentConfiguration,Int32,String) Method
    In This Topic
    Attempt to activate the agent.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub StartSession( _
       ByVal configuration As AgentConfiguration, _
       ByVal skipFrames As Integer, _
       ByVal reason As String _
    ) 
    public static void StartSession( 
       AgentConfiguration configuration,
       int skipFrames,
       string reason
    )

    Parameters

    configuration
    The Agent configuration to use instead of any configuration in the app.config file.
    skipFrames
    The number of stack frames to skip out to find the original caller.
    reason
    A caption for the reason the session is starting, or null.
    Remarks
    If the agent is already active this call has no effect. When starting, the agent will raise an Initializing event which can be canceled. If it cancels then the session has not been started. All calls to the agent are safe whether it has been activated or not.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also