[This is preliminary documentation and is subject to change.]
Helper class to be used in the context of 'using' clause to
facilitate cleanup on scope exit and performing of other functions
such as status logging
Inheritance Hierarchy

NFX DisposableObject
NFX Scope
Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax
Remarks
using(Scope.OnExit(() => Bell.Ring())) { ... do something ... } using(Scope.OnExit<bool>( () => { var old = Tracing.IsOn; Tracing.Off(); return old; }, (b) => Tracing.State(b))) { ... do something ... }
See Also