-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathResetEvent.cs
More file actions
32 lines (28 loc) · 947 Bytes
/
ResetEvent.cs
File metadata and controls
32 lines (28 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace DotNet.Sdk.Extensions.Polly.Http.CircuitBreaker.Events;
/// <summary>
/// Contains the event data when the circuit resets to a <see cref="CircuitState.Closed"/> state.
/// </summary>
public sealed class ResetEvent
{
internal ResetEvent(
string httpClientName,
CircuitBreakerOptions circuitBreakerOptions,
Context context)
{
HttpClientName = httpClientName;
CircuitBreakerOptions = circuitBreakerOptions;
Context = context;
}
/// <summary>
/// Gets the name of the HttpClient that triggered this event.
/// </summary>
public string HttpClientName { get; }
/// <summary>
/// Gets the circuit breaker options applied to the HttpClient that triggered this event.
/// </summary>
public CircuitBreakerOptions CircuitBreakerOptions { get; }
/// <summary>
/// Gets the Polly Context.
/// </summary>
public Context Context { get; }
}