Skip to content

Class BindingCostModel

Namespace: DotBoxD.Kernels.Bindings
Assembly: DotBoxD.Kernels.dll

public sealed record BindingCostModel : IEquatable<BindingCostModel>

objectBindingCostModel

IEquatable<BindingCostModel>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

public BindingCostModel(long BaseFuel, long PerByteFuel = 0, bool AllocationFromReturnBytes = false, int? MaxCallsPerRun = null)

BaseFuel long

PerByteFuel long

AllocationFromReturnBytes bool

MaxCallsPerRun int?

public bool AllocationFromReturnBytes { get; init; }

bool

public long BaseFuel { get; init; }

long

public int? MaxCallsPerRun { get; init; }

int?

public long PerByteFuel { get; init; }

long

public static BindingCostModel Fixed(long baseFuel)

baseFuel long

BindingCostModel

public static BindingCostModel PerByte(long baseFuel, long perByteFuel)

baseFuel long

perByteFuel long

BindingCostModel

public static BindingCostModel PerReturnedByte(long baseFuel, long perByteFuel)

baseFuel long

perByteFuel long

BindingCostModel