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
TypeOptimizationTypeIsSuccessboolMessagestring
Properties
IsSuccess
public bool IsSuccess { get; init; }
Property Value
Message
public string Message { get; init; }
Property Value
Type
public OptimizationType Type { get; init; }
Property Value
Methods
Failed(OptimizationType, string)
Gets failed.
public static AppliedOptimization Failed(OptimizationType type, string message)
Parameters
typeOptimizationTypeThe type.
messagestringThe message.
Returns
- AppliedOptimization
The result of the operation.
Skipped(OptimizationType, string)
Gets skipped.
public static AppliedOptimization Skipped(OptimizationType type, string reason)
Parameters
typeOptimizationTypeThe type.
reasonstringThe reason.
Returns
- AppliedOptimization
The result of the operation.
Success(OptimizationType, string)
Gets success.
public static AppliedOptimization Success(OptimizationType type, string message)
Parameters
typeOptimizationTypeThe type.
messagestringThe message.
Returns
- AppliedOptimization
The result of the operation.