Stops listening to events. Execution is blocked until the container is fully stopped or the specified timeout elapses.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
bool Stop( TimeSpan timeout )
Function Stop ( _ timeout As TimeSpan _ ) As Boolean
bool Stop( TimeSpan timeout )
boolean Stop( TimeSpan timeout )
Parameters
- timeout (TimeSpan)
- Maximum time to wait for container to stop.
Return Value
true if the container managed to stop before the specified timeout elapsed, false otherwise.