Class RawMimeMemoryReservation
- Namespace
- MailFathom.Application.EmailContent.Storage
- Assembly
- MailFathom.Application.dll
Holds part of RawMimeMemoryBudget for as long as one payload is buffered.
public sealed class RawMimeMemoryReservation : IDisposable
- Inheritance
-
RawMimeMemoryReservation
- Implements
- Inherited Members
Remarks
Disposal is what returns the bytes, so a reservation is taken with using in the scope that holds the
payload and never stored beyond it. Disposing twice returns them once, because a reservation released twice would
enlarge the budget rather than restore it.
Properties
- Bytes
Gets how many bytes of the budget this reservation holds.
Methods
- Dispose()
Returns the reserved bytes to the budget.