Constructor BoundedMetadataHttpMessageHandler
- Namespace
- MailFathom.Infrastructure.Security.OAuth
- Assembly
- MailFathom.Infrastructure.dll
BoundedMetadataHttpMessageHandler(int)
Initializes a new bounded metadata handler.
public BoundedMetadataHttpMessageHandler(int sizeLimitInBytes)
Parameters
sizeLimitInBytesintThe largest response body accepted.
Remarks
The handler that performs the request is not taken here. Both clients that carry this one are built by IHttpClientFactory, which composes the chain and assigns InnerHandler itself, so a constructor taking an inner handler would be one no caller could use.
Exceptions
- ArgumentOutOfRangeException
Thrown when
sizeLimitInBytesis not positive.