Table of Contents

Class AppliedOptimization

Namespace
DotCompute.Runtime.Services
Assembly
DotCompute.Runtime.dll

A class that represents applied optimization.

public record AppliedOptimization : IEquatable<AppliedOptimization>
Inheritance
AppliedOptimization
Implements
Inherited Members

Constructors

AppliedOptimization(OptimizationType, bool, string)

A class that represents applied optimization.

public AppliedOptimization(OptimizationType Type, bool IsSuccess, string Message)

Parameters

Type OptimizationType
IsSuccess bool
Message string

Properties

IsSuccess

public bool IsSuccess { get; init; }

Property Value

bool

Message

public string Message { get; init; }

Property Value

string

Type

public OptimizationType Type { get; init; }

Property Value

OptimizationType

Methods

Failed(OptimizationType, string)

Gets failed.

public static AppliedOptimization Failed(OptimizationType type, string message)

Parameters

type OptimizationType

The type.

message string

The message.

Returns

AppliedOptimization

The result of the operation.

Skipped(OptimizationType, string)

Gets skipped.

public static AppliedOptimization Skipped(OptimizationType type, string reason)

Parameters

type OptimizationType

The type.

reason string

The reason.

Returns

AppliedOptimization

The result of the operation.

Success(OptimizationType, string)

Gets success.

public static AppliedOptimization Success(OptimizationType type, string message)

Parameters

type OptimizationType

The type.

message string

The message.

Returns

AppliedOptimization

The result of the operation.