-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathHalfOpenEvent.cs
More file actions
23 lines (20 loc) · 821 Bytes
/
HalfOpenEvent.cs
File metadata and controls
23 lines (20 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace DotNet.Sdk.Extensions.Polly.Http.CircuitBreaker.Events;
/// <summary>
/// Contains the event data when the circuit transitions to <see cref="CircuitState.HalfOpen"/> state, ready to try action executions again.
/// </summary>
public sealed class HalfOpenEvent
{
internal HalfOpenEvent(string httpClientName, CircuitBreakerOptions circuitBreakerOptions)
{
HttpClientName = httpClientName;
CircuitBreakerOptions = circuitBreakerOptions;
}
/// <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; }
}