Table of Contents

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

requestType RequestType

The type of the request.

userId string

The user ID associated with the request.

cancellationToken CancellationToken

The 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

CancellationToken

RequestType

Gets the type of the request.

public RequestType RequestType { get; }

Property Value

RequestType

UserId

Gets the user ID associated with the request.

public string UserId { get; }

Property Value

string