ResilienceEvent
Represents a resilience event that has been reported.
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace Polly.Telemetry
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct ResilienceEvent : IEquatable<ResilienceEvent>
{
public string EventName { get; set; }
public ResilienceEvent(string EventName)
{
EventName = EventName;
}
public override string ToString()
{
return EventName;
}
[System.Runtime.CompilerServices.NullableContext(0)]
[CompilerGenerated]
private bool PrintMembers(StringBuilder builder)
{
builder.Append("EventName = ");
builder.Append((object)EventName);
return true;
}
public static bool operator !=(ResilienceEvent left, ResilienceEvent right)
{
return !(left == right);
}
public static bool operator ==(ResilienceEvent left, ResilienceEvent right)
{
return left.Equals(right);
}
[CompilerGenerated]
public override int GetHashCode()
{
return EqualityComparer<string>.Default.GetHashCode(EventName);
}
[System.Runtime.CompilerServices.NullableContext(0)]
[CompilerGenerated]
public override bool Equals(object obj)
{
if (obj is ResilienceEvent)
return Equals((ResilienceEvent)obj);
return false;
}
[CompilerGenerated]
public bool Equals(ResilienceEvent other)
{
return EqualityComparer<string>.Default.Equals(EventName, other.EventName);
}
[CompilerGenerated]
public void Deconstruct(out string EventName)
{
EventName = this.EventName;
}
}
}