Class ResourceMeter
Namespace: DotBoxD.Kernels.Model
Assembly: DotBoxD.Kernels.dll
public sealed class ResourceMeterInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”ResourceMeter(ResourceLimits)
Section titled “ ResourceMeter(ResourceLimits)”public ResourceMeter(ResourceLimits limits)Parameters
Section titled “Parameters”limits ResourceLimits
Properties
Section titled “Properties”AllocatedBytes
Section titled “ AllocatedBytes”public long AllocatedBytes { get; }Property Value
Section titled “Property Value”CollectionElements
Section titled “ CollectionElements”public long CollectionElements { get; }Property Value
Section titled “Property Value”FileBytesRead
Section titled “ FileBytesRead”public long FileBytesRead { get; }Property Value
Section titled “Property Value”FileBytesWritten
Section titled “ FileBytesWritten”public long FileBytesWritten { get; }Property Value
Section titled “Property Value”FuelUsed
Section titled “ FuelUsed”public long FuelUsed { get; }Property Value
Section titled “Property Value”HostCalls
Section titled “ HostCalls”public int HostCalls { get; }Property Value
Section titled “Property Value”Limits
Section titled “ Limits”public ResourceLimits Limits { get; }Property Value
Section titled “Property Value”LogEvents
Section titled “ LogEvents”public int LogEvents { get; }Property Value
Section titled “Property Value”LoopIterations
Section titled “ LoopIterations”public long LoopIterations { get; }Property Value
Section titled “Property Value”NetworkBytesRead
Section titled “ NetworkBytesRead”public long NetworkBytesRead { get; }Property Value
Section titled “Property Value”NetworkBytesWritten
Section titled “ NetworkBytesWritten”public long NetworkBytesWritten { get; }Property Value
Section titled “Property Value”StringBytes
Section titled “ StringBytes”public long StringBytes { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ChargeAllocation(long)
Section titled “ ChargeAllocation(long)”public void ChargeAllocation(long bytes)Parameters
Section titled “Parameters”bytes long
ChargeCollection(SandboxValue)
Section titled “ ChargeCollection(SandboxValue)”public void ChargeCollection(SandboxValue value)Parameters
Section titled “Parameters”value SandboxValue
ChargeCollection(SandboxValue, CancellationToken)
Section titled “ ChargeCollection(SandboxValue, CancellationToken)”public void ChargeCollection(SandboxValue value, CancellationToken cancellationToken)Parameters
Section titled “Parameters”value SandboxValue
cancellationToken CancellationToken
ChargeFileRead(long)
Section titled “ ChargeFileRead(long)”public void ChargeFileRead(long bytes)Parameters
Section titled “Parameters”bytes long
ChargeFileWrite(long)
Section titled “ ChargeFileWrite(long)”public void ChargeFileWrite(long bytes)Parameters
Section titled “Parameters”bytes long
ChargeFuel(long)
Section titled “ ChargeFuel(long)”public void ChargeFuel(long amount)Parameters
Section titled “Parameters”amount long
ChargeHostCall(string, int?)
Section titled “ ChargeHostCall(string, int?)”public void ChargeHostCall(string bindingId, int? maxCallsPerRun = null)Parameters
Section titled “Parameters”bindingId string
maxCallsPerRun int?
ChargeLogEvent(string)
Section titled “ ChargeLogEvent(string)”public void ChargeLogEvent(string message)Parameters
Section titled “Parameters”message string
ChargeLoopIteration(long)
Section titled “ ChargeLoopIteration(long)”public void ChargeLoopIteration(long fuelAmount)Parameters
Section titled “Parameters”fuelAmount long
ChargeLoopIterations(long, long)
Section titled “ ChargeLoopIterations(long, long)”public void ChargeLoopIterations(long iterations, long fuelPerIteration)Parameters
Section titled “Parameters”iterations long
fuelPerIteration long
ChargeNetworkRead(long)
Section titled “ ChargeNetworkRead(long)”public void ChargeNetworkRead(long bytes)Parameters
Section titled “Parameters”bytes long
ChargeNetworkWrite(long)
Section titled “ ChargeNetworkWrite(long)”public void ChargeNetworkWrite(long bytes)Parameters
Section titled “Parameters”bytes long
ChargeString(string)
Section titled “ ChargeString(string)”public void ChargeString(string value)Parameters
Section titled “Parameters”value string
ChargeStringAllocation(int)
Section titled “ ChargeStringAllocation(int)”public void ChargeStringAllocation(int charLength)Parameters
Section titled “Parameters”charLength int
ChargeValue(SandboxValue)
Section titled “ ChargeValue(SandboxValue)”public void ChargeValue(SandboxValue value)Parameters
Section titled “Parameters”value SandboxValue
ChargeValue(SandboxValue, CancellationToken)
Section titled “ ChargeValue(SandboxValue, CancellationToken)”public void ChargeValue(SandboxValue value, CancellationToken cancellationToken)Parameters
Section titled “Parameters”value SandboxValue
cancellationToken CancellationToken
CheckDeadline()
Section titled “ CheckDeadline()”public void CheckDeadline()RemainingWallTime()
Section titled “ RemainingWallTime()”public TimeSpan RemainingWallTime()Returns
Section titled “Returns”Snapshot()
Section titled “ Snapshot()”public SandboxResourceUsage Snapshot()