Method | Description | |
---|---|---|
DataflowWebHookSender ( ILogger logger ) : System |
Initializes a new instance of the DataflowWebHookSender class with a default retry policy.
|
|
DataflowWebHookSender ( ILogger logger, IEnumerable |
Initializes a new instance of the DataflowWebHookSender class with a given collection of retryDelays and options for how to manage the queuing policy for each transmission. The transmission model is as follows: each try and subsequent retries is managed by a separate ActionBlock{T} which controls the level of concurrency used to send out WebHooks. The options parameter can be used to control all ActionBlock{T} instances by setting the maximum level of concurrency, length of queue, and more.
|
|
SendWebHookWorkItemsAsync ( IEnumerable |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources and optionally releases the managed resources.
|
|
OnWebHookFailure ( |
If delivery of a WebHook is not successful, i.e. something other than a 2xx or 410 Gone HTTP status code is received after having retried the request according to the retry-policy, then OnWebHookFailure is called enabling additional post-processing.
|
|
OnWebHookGone ( |
If delivery of a WebHook results in a 410 Gone HTTP status code, then OnWebHookGone is called enabling additional post-processing.
|
|
OnWebHookRetry ( |
If delivery of a WebHook is not successful, i.e. something other than a 2xx or 410 Gone HTTP status code is received and the request is to be retried, then OnWebHookRetry is called enabling additional post-processing of a retry request.
|
|
OnWebHookSuccess ( |
If delivery of a WebHook is successful, i.e. a 2xx HTTP status code is received, then OnWebHookSuccess is called enabling additional post-processing.
|
Method | Description | |
---|---|---|
DataflowWebHookSender ( ILogger logger, IEnumerable |
Initialize a new instance of the DataflowWebHookSender with the given retry policy, options, and httpClient. This constructor is intended for unit testing purposes.
|
|
DelayedLaunchWebHook ( |
||
LaunchWebHook ( |
Launch a WebHook. We don't let exceptions propagate out from this method as it is used by the launchers and if they see an exception they shut down. |
public DataflowWebHookSender ( ILogger logger ) : System | ||
logger | ILogger | The current |
return | System |
public DataflowWebHookSender ( ILogger logger, IEnumerable |
||
logger | ILogger | The current |
retryDelays | IEnumerable |
A collection of |
options | System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions | An |
return | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
return | void |
protected OnWebHookFailure ( |
||
workItem | The current |
|
return | System.Threading.Tasks.Task |
protected OnWebHookGone ( |
||
workItem | The current |
|
return | System.Threading.Tasks.Task |
protected OnWebHookRetry ( |
||
workItem | The current |
|
return | System.Threading.Tasks.Task |
protected OnWebHookSuccess ( |
||
workItem | The current |
|
return | System.Threading.Tasks.Task |
public SendWebHookWorkItemsAsync ( IEnumerable |
||
workItems | IEnumerable |
|
return | System.Threading.Tasks.Task |