I hereby claim:
- I am edamtoft on github.
- I am edamtoft (https://keybase.io/edamtoft) on keybase.
- I have a public key ASAW4K_70VpLoPo8TegJ_4-8BBhrH2FxGKoSBEO0cqVYogo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public sealed class RateLimitingOptions | |
{ | |
public int Attempts { get; set; } | |
public int Seconds { get; set; } | |
public int RedisDb { get; set; } | |
} |
[TypeConverter(typeof(Converter))] | |
public readonly struct DomainObject : IEquatable<DomainObject>, IEquatable<string> | |
{ | |
public readonly string _value; | |
public DomainObject(string value) => _value = value ?? throw new ArgumentNullException(nameof(value)); | |
public bool Equals(DomainObject other) => StringComparer.OrdinalIgnoreCase.Equals(_value, other._value); | |
public bool Equals(string other) => StringComparer.OrdinalIgnoreCase.Equals(_value, other); |