Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / MessageSourceProvider Class / MessageSourceProvider Constructor / MessageSourceProvider Constructor(Int32,Boolean)
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
True if logging a message originating in Gibraltar code. False if logging a message from the client application.

In This Topic
    MessageSourceProvider Constructor(Int32,Boolean)
    In This Topic
    Creates a MessageSourceProvider object to be used as an IMessageSourceProvider.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal skipFrames As Integer, _
       ByVal localOrigin As Boolean _
    )
    public MessageSourceProvider( 
       int skipFrames,
       bool localOrigin
    )

    Parameters

    skipFrames
    The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
    localOrigin
    True if logging a message originating in Gibraltar code. False if logging a message from the client application.
    Remarks
    This constructor is used only for the convenience of the Log class when it needs to generate an IMessageSoruceProvider for construction of internally-generated packets without going through the usual direct PublishToLog() mechanism.
    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