C# Class NServiceBus.Features.CriticalTimeMonitoring.CriticalTimeCounter

Inheritance: FeatureStartupTask
Exibir arquivo Open project: Particular/NServiceBus

Public Methods

Method Description
CriticalTimeCounter ( string counterInstanceName ) : System
ResetCounterValueIfNoMessageHasBeenProcessedRecently ( object state ) : void
Update ( System.DateTime sentInstant, System.DateTime processingStartedInstant, System.DateTime processingEndedInstant ) : void

Protected Methods

Method Description
OnStart ( IMessageSession session ) : Task
OnStop ( IMessageSession session ) : Task

Private Methods

Method Description
NoMessageHasBeenProcessedRecently ( ) : bool

Method Details

CriticalTimeCounter() public method

public CriticalTimeCounter ( string counterInstanceName ) : System
counterInstanceName string
return System

OnStart() protected method

protected OnStart ( IMessageSession session ) : Task
session IMessageSession
return Task

OnStop() protected method

protected OnStop ( IMessageSession session ) : Task
session IMessageSession
return Task

ResetCounterValueIfNoMessageHasBeenProcessedRecently() public method

public ResetCounterValueIfNoMessageHasBeenProcessedRecently ( object state ) : void
state object
return void

Update() public method

public Update ( System.DateTime sentInstant, System.DateTime processingStartedInstant, System.DateTime processingEndedInstant ) : void
sentInstant System.DateTime
processingStartedInstant System.DateTime
processingEndedInstant System.DateTime
return void