[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Latch

Latch Class

Latched execution 'pattern'. For simplicity, try use ExecuteIfOpen method. Only if it doesn't fit to your task, use more low level method 'Execute'

Inheritance
Latch
Namespace: GrapeCity.ActiveReports
Assembly: MESCIUS.ActiveReports.dll
Syntax
public sealed class Latch

Constructors

Name Description
Latch()

Properties

Name Description
IsClosed

Answers question 'Is something already executing?'.

Methods

Name Description
Execute(Action)

Sets flag (IsClosed will return 'true'), executes action, resets flag (IsClosed will return 'false').

ExecuteIfOpen(Action)

If latch is open (IlClosed is 'false'), closes it (IsClosed is 'true'), executes action, opens the latch. If latch is closed, does nothing.

Extension Methods