Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Log Class / SendSessions Method / SendSessions(SessionCriteria) Method
The criteria to match for the sessions to send

In This Topic
    SendSessions(SessionCriteria) Method
    In This Topic
    Safely send sessions to the Loupe Server . Only one send request will be processed at a time.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(Gibraltar.Agent.Log/d__125)> 
    Public Overloads Shared Function SendSessions( _ 
       ByVal criteria As SessionCriteria _ 
    ) As Task(Of Boolean)
    [AsyncStateMachine(Gibraltar.Agent.Log/d__125)] 
    public static Task<bool> SendSessions( 
       SessionCriteria criteria 
    )

    Parameters

    criteria
    The criteria to match for the sessions to send

    Return Value

    True if the send was processed, false if it was not due to configuration or another active send
    Remarks

    If there is no way to send the information (either due to configuration or the server being unreachable) this method will return false. Otherwise, the method will return when it completes sending.

    If another send attempt is currently being processed this method will complete immediately and return false. This prevents multiple simultaneous send attempts from consuming resources.

    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