C# Class WebApplications.Utilities.Threading.AsyncDebouncedAction

显示文件 Open project: webappsuk/CoreLibraries

Public Methods

Method Description
AsyncDebouncedAction ( Task>.[ action, System.Duration duration, System.Duration minimumGap = default(Duration) ) : NodaTime

Initializes a new instance of the AsyncDebouncedAction class.

AsyncDebouncedAction ( Task>.[ action, System.TimeSpan duration = default(TimeSpan), System.TimeSpan minimumGap = default(TimeSpan) ) : NodaTime

Initializes a new instance of the AsyncDebouncedAction class.

AsyncDebouncedAction ( [ action, System.Duration duration, System.Duration minimumGap = default(Duration) ) : NodaTime

Initializes a new instance of the AsyncDebouncedAction class.

AsyncDebouncedAction ( [ action, System.TimeSpan duration = default(TimeSpan), System.TimeSpan minimumGap = default(TimeSpan) ) : NodaTime

Initializes a new instance of the AsyncDebouncedAction class.

Private Methods

Method Description
Run ( CancellationToken token = default(CancellationToken) ) : Task

Method Details

AsyncDebouncedAction() public method

Initializes a new instance of the AsyncDebouncedAction class.
public AsyncDebouncedAction ( Task>.[ action, System.Duration duration, System.Duration minimumGap = default(Duration) ) : NodaTime
action Task>.[ The action.
duration System.Duration The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
minimumGap System.Duration The minimum gap, is the time left after a successful execution before the action can be run again.
return NodaTime

AsyncDebouncedAction() public method

Initializes a new instance of the AsyncDebouncedAction class.
public AsyncDebouncedAction ( Task>.[ action, System.TimeSpan duration = default(TimeSpan), System.TimeSpan minimumGap = default(TimeSpan) ) : NodaTime
action Task>.[ The action.
duration System.TimeSpan The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
minimumGap System.TimeSpan The minimum gap, is the time left after a successful execution before the action can be run again.
return NodaTime

AsyncDebouncedAction() public method

Initializes a new instance of the AsyncDebouncedAction class.
public AsyncDebouncedAction ( [ action, System.Duration duration, System.Duration minimumGap = default(Duration) ) : NodaTime
action [ The action.
duration System.Duration The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
minimumGap System.Duration The minimum gap, is the time left after a successful execution before the action can be run again.
return NodaTime

AsyncDebouncedAction() public method

Initializes a new instance of the AsyncDebouncedAction class.
public AsyncDebouncedAction ( [ action, System.TimeSpan duration = default(TimeSpan), System.TimeSpan minimumGap = default(TimeSpan) ) : NodaTime
action [ The action.
duration System.TimeSpan The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
minimumGap System.TimeSpan The minimum gap, is the time left after a successful execution before the action can be run again.
return NodaTime