Class TestAuthenticationEvent
- Namespace
- XBullet.EasyTesting.Authentication
- Assembly
- XBullet.EasyTesting.dll
Contains safe metadata captured from one real-handler authentication event.
public sealed record TestAuthenticationEvent : IEquatable<TestAuthenticationEvent>
- Inheritance
-
TestAuthenticationEvent
- Implements
- Inherited Members
Constructors
TestAuthenticationEvent(TestAuthenticationEventKind, string, string, string, DateTimeOffset, string?, string?)
Contains safe metadata captured from one real-handler authentication event.
public TestAuthenticationEvent(TestAuthenticationEventKind Kind, string AuthenticationScheme, string Method, string Path, DateTimeOffset Timestamp, string? FailureType = null, string? FailureMessage = null)
Parameters
KindTestAuthenticationEventKindThe authentication operation that produced the event.
AuthenticationSchemestringThe case-sensitive scheme name of the real authentication handler that produced the event.
MethodstringThe HTTP request method associated with the event.
PathstringThe request path without the query string.
TimestampDateTimeOffsetThe absolute time at which the event was recorded. Recorder-created events use UTC.
FailureTypestringThe validation exception's fully qualified type name, or null when the event has no captured failure. The default is null.
FailureMessagestringThe redacted validation-failure message, or null when the event has no captured failure. The default is null.
Properties
AuthenticationScheme
The case-sensitive scheme name of the real authentication handler that produced the event.
public string AuthenticationScheme { get; init; }
Property Value
FailureMessage
The redacted validation-failure message, or null when the event has no captured failure. The default is null.
public string? FailureMessage { get; init; }
Property Value
FailureType
The validation exception's fully qualified type name, or null when the event has no captured failure. The default is null.
public string? FailureType { get; init; }
Property Value
Kind
The authentication operation that produced the event.
public TestAuthenticationEventKind Kind { get; init; }
Property Value
Method
The HTTP request method associated with the event.
public string Method { get; init; }
Property Value
Path
The request path without the query string.
public string Path { get; init; }
Property Value
Timestamp
The absolute time at which the event was recorded. Recorder-created events use UTC.
public DateTimeOffset Timestamp { get; init; }