void DemoOpenGroupWithDynamicConclusion( IActivityMonitor m )
{
int nbProcessed = 0;
using( m.OpenInfo().Send( "Doing things..." )
.ConcludeWith( () => String.Format( "{0} files.", nbProcessed ) ) )
{
// ...
nbProcessed += 21;
m.CloseGroup( "Success." );
// The user Group conclusion is: "Success. - 21 files." (the two conclusions are concatenated).
}
}