Class UsecaseRequest
- Namespace
- Cyclotron.Utilities.CleanArchitecture
- Assembly
- Cyclotron.Utilities.dll
Default implementation of IUsecaseRequest.
public abstract class UsecaseRequest : IUsecaseRequest
- Inheritance
-
UsecaseRequest
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the UsecaseRequest class.
Constructors
UsecaseRequest(RequestType, string, CancellationToken)
Default implementation of IUsecaseRequest.
protected UsecaseRequest(RequestType requestType, string userId, CancellationToken cancellationToken = default)
Parameters
requestTypeRequestTypeThe type of the request.
userIdstringThe user ID associated with the request.
cancellationTokenCancellationTokenThe cancellation token for the request (optional).
Remarks
Initializes a new instance of the UsecaseRequest class.
Properties
CancellationToken
Gets the CancellationToken associated with the request.
public CancellationToken CancellationToken { get; }
Property Value
RequestType
Gets the type of the request.
public RequestType RequestType { get; }
Property Value
UserId
Gets the user ID associated with the request.
public string UserId { get; }