AlternateMethodContextExtensions TryProceedWithTimer Method | Glimpse API Documentation |
Calls Proceed on the original implementation, if the current RuntimePolicy is not Off, and provides a corresponding TimerResult.
Namespace: Glimpse.Core.ExtensionsAssembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static bool TryProceedWithTimer( this IAlternateMethodContext context, out TimerResult timerResult )
public static bool TryProceedWithTimer( this IAlternateMethodContext context, out TimerResult timerResult )
Parameters
- context
- Type: Glimpse.Core.Extensibility IAlternateMethodContext
The context.
- timerResult
- Type: Glimpse.Core.Extensibility TimerResult
The timer result.
Return Value
Returns true if Proceed was called on the original object, and sets timerResult. Returns false and sets timerResult to null if RuntimePolicy is Off.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAlternateMethodContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also