<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.20.0" />

OpenTelemetry.PersistentStorage.Abstractions.PersistentBlobProvider

abstract class PersistentBlobProvider
Represents persistent blob provider.
namespace OpenTelemetry.PersistentStorage.Abstractions { internal abstract class PersistentBlobProvider { public bool TryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob); public bool TryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob); public bool TryCreateBlob(byte[] buffer, out PersistentBlob blob); public bool TryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob); public bool TryGetBlob(out PersistentBlob blob); public IEnumerable<PersistentBlob> GetBlobs(); protected abstract IEnumerable<PersistentBlob> OnGetBlobs(); protected abstract bool OnTryCreateBlob(byte[] buffer, int leasePeriodMilliseconds, out PersistentBlob blob); protected abstract bool OnTryCreateBlob(byte[] buffer, out PersistentBlob blob); protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, int leasePeriodMilliseconds, out PersistentBlob blob); protected virtual bool OnTryCreateBlob(ReadOnlySpan<byte> buffer, out PersistentBlob blob); protected abstract bool OnTryGetBlob(out PersistentBlob blob); protected PersistentBlobProvider(); } }