메소드 | 설명 | |
---|---|---|
GetAllLiveTaskStatusTokens ( ) : CancellationTokenSource>.Dictionary |
Get all the living task cancellation tokens
|
|
ShutdownAll ( int shutdownDelay, string shutdownAnnouncement, int shutdownAnnouncementFrequency = -1 ) : void |
Cancel ALL the current loops
|
|
ShutdownLoop ( string designator, int shutdownDelay, string shutdownAnnouncement, int shutdownAnnouncementFrequency = -1 ) : void |
Tries to shutdown an existing loop
|
|
StartSingeltonChainedLoop ( string designator, int rampupDelay, int cooldownDelay, int maxDuration, Func |
Starts a brand new Loop
|
|
StartSingeltonLoop ( string designator, int rampupDelay, int cooldownDelay, int maxDuration, Func |
Starts a brand new Loop
|
|
StartSubscriptionLoop ( string designator, Func |
Starts a brand new Loop
|
메소드 | 설명 | |
---|---|---|
GetAllCurrentSubscribers ( string designator, int pulseCount, bool fireOnce ) : int>>.IList |
||
GetCancellationToken ( string designator ) : |
Gets the token from the cache
|
|
GetLoopSubscribers ( string designator ) : int>>.IList |
Gets the token from the cache
|
|
RemoveCancellationToken ( string designator ) : void |
Removes a token from the cache
|
|
RemoveSubscriberList ( string designator ) : void |
Removes a token from the cache
|
|
RunAnnouncements ( int shutdownDelay, string shutdownAnnouncement, int shutdownAnnouncementFrequency ) : void |
Runs looped formatted messages until the timer runs out
|
|
StartLoop ( Func |
Starts an endless loop
|
|
StoreCancellationToken ( string designator, |
Store the cancel token in the cache
|
|
SubscribeToLoop ( string designator, Func |
Store the cancel token in the cache
|
public static GetAllLiveTaskStatusTokens ( ) : CancellationTokenSource>.Dictionary |
||
리턴 | CancellationTokenSource>.Dictionary |
public static ShutdownAll ( int shutdownDelay, string shutdownAnnouncement, int shutdownAnnouncementFrequency = -1 ) : void | ||
shutdownDelay | int | In # of Seconds - how long to wait before cancelling it |
shutdownAnnouncement | string | What to announce (string.format format) before shutting down, empty string = no announcements |
shutdownAnnouncementFrequency | int | In # of Seconds - how often to announce the shutdown, < = 0 is only one announcement |
리턴 | void |
public static ShutdownLoop ( string designator, int shutdownDelay, string shutdownAnnouncement, int shutdownAnnouncementFrequency = -1 ) : void | ||
designator | string | what the loop is called |
shutdownDelay | int | In # of Seconds - how long to wait before cancelling it |
shutdownAnnouncement | string | What to announce (string.format format) before shutting down, empty string = no announcements, ex "World shutting down in {0} seconds." |
shutdownAnnouncementFrequency | int | In # of Seconds - how often to announce the shutdown, <= 0 is only one announcement |
리턴 | void |
public static StartSingeltonChainedLoop ( string designator, int rampupDelay, int cooldownDelay, int maxDuration, Func |
||
designator | string | what the loop will be called |
rampupDelay | int | In # of Seconds - how long to wait before performing the first operation on start |
cooldownDelay | int | In # of Seconds - how long to wait before either shutting the loop down or recurring it |
maxDuration | int | In # of Seconds - kill this loop after this many seconds |
workProcess | Func |
What delegate process to call for the loop |
리턴 | void |
public static StartSingeltonLoop ( string designator, int rampupDelay, int cooldownDelay, int maxDuration, Func |
||
designator | string | what the loop will be called |
rampupDelay | int | In # of Seconds - how long to wait before performing the first operation on start |
cooldownDelay | int | In # of Seconds - how long to wait before either shutting the loop down or recurring it |
maxDuration | int | In # of Seconds - kill this loop after this many seconds |
workProcess | Func |
What delegate process to call for the loop |
successTailProcess | Func |
What delegate process to call when this loop terminates in success |
failedTailProcess | Func |
What delegate process to call when this loop terminates in failure |
리턴 | void |
public static StartSubscriptionLoop ( string designator, Func |
||
designator | string | what the loop will be called |
subscriberProcess | Func |
What delegate process to call for the loop |
pulseCount | int | on what pulse does this fire (out of 18000) |
fireOnce | bool | Does this fire only once or does it fire every X pulses |
리턴 | void |