<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.19.1-rc.1" />

OpenTelemetry.PersistentStorage.Abstractions.PersistentBlob

abstract class PersistentBlob
Represents a persistent blob.
namespace OpenTelemetry.PersistentStorage.Abstractions { internal abstract class PersistentBlob { public bool TryRead(out byte[] buffer); public bool TryWrite(byte[] buffer, int leasePeriodMilliseconds = 0); public bool TryWrite(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds = 0); public bool TryLease(int leasePeriodMilliseconds); public bool TryDelete(); protected abstract bool OnTryRead(out byte[] buffer); protected abstract bool OnTryWrite(byte[] buffer, int leasePeriodMilliseconds = 0); protected virtual bool OnTryWriteSpan(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds); protected abstract bool OnTryLease(int leasePeriodMilliseconds); protected abstract bool OnTryDelete(); protected PersistentBlob(); } }