Interface IResultBase

Namespace
REslava.Result
Assembly
REslava.Result.dll

Non-generic contract for a result — exposes status flags and reason lists without requiring knowledge of the success value type. Useful for middleware, logging pipelines, and generic result-handling utilities.

public interface IResultBase
Extension Methods

Properties

Errors

Gets the error reasons. Empty when IsSuccess is true.

ImmutableList<IError> Errors { get; }

Property Value

ImmutableList<IError>

IsFailure

Gets a value indicating whether this result represents a failed outcome.

bool IsFailure { get; }

Property Value

bool

IsSuccess

Gets a value indicating whether this result represents a successful outcome.

bool IsSuccess { get; }

Property Value

bool

Reasons

Gets all reasons (both errors and successes) attached to this result.

ImmutableList<IReason> Reasons { get; }

Property Value

ImmutableList<IReason>

Successes

Gets the success reasons. Empty when IsFailure is true.

ImmutableList<ISuccess> Successes { get; }

Property Value

ImmutableList<ISuccess>