Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GAspectBase Class / OnBaseCategoryCalculate Method
The default category for the current aspect, replace with your own non-empty value to override.

In This Topic
    OnBaseCategoryCalculate Method (GAspectBase)
    In This Topic
    Calculate the category from the root to the beginning of the autogenerated category.
    Syntax
    'Declaration
     
    
    Protected Overridable Sub OnBaseCategoryCalculate( _
       ByRef category As String _
    ) 
    protected virtual void OnBaseCategoryCalculate( 
       ref string category
    )

    Parameters

    category
    The default category for the current aspect, replace with your own non-empty value to override.
    Remarks

    By default the base category will be a combination of the current application name and a constant string depending on whether this is a call to get the base category for a metric or a log message. By overriding this method you can substitute your own method of calculating this value and then set the category parameter to reflect your choice.

    If you set an invalid (generally null or empty) value the default will be used.

    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