Class FailureScenarioRequest
- Namespace
- ReferenceApplication.Web.Governance.FailureScenarios
- Assembly
- ReferenceApplication.Web.dll
The request a failure-scenario run expects. The caller adds the antiforgery token.
public sealed record FailureScenarioRequest : IEquatable<FailureScenarioRequest>
- Inheritance
-
FailureScenarioRequest
- Implements
- Inherited Members
Constructors
FailureScenarioRequest(string, string, IReadOnlyDictionary<string, string>, IReadOnlyDictionary<string, string>)
The request a failure-scenario run expects. The caller adds the antiforgery token.
public FailureScenarioRequest(string Method, string Path, IReadOnlyDictionary<string, string> Fields, IReadOnlyDictionary<string, string> Headers)
Parameters
MethodstringThe HTTP method.
PathstringThe governed endpoint path.
FieldsIReadOnlyDictionary<string, string>The form fields to post, besides the antiforgery token.
HeadersIReadOnlyDictionary<string, string>The headers to send, including the run header.
Properties
Fields
The form fields to post, besides the antiforgery token.
public IReadOnlyDictionary<string, string> Fields { get; init; }
Property Value
Headers
The headers to send, including the run header.
public IReadOnlyDictionary<string, string> Headers { get; init; }
Property Value
Method
The HTTP method.
public string Method { get; init; }
Property Value
Path
The governed endpoint path.
public string Path { get; init; }