Class SafeResourceLoaderWithHttp
- Namespace
- NetPdf
- Assembly
- NetPdf.dll
Per post-Task-7 review (recommendation P1 #1) — bundle returned by CreateWithSafeHttp(ResourceFetchContext). Holds the constructed wrapper + the underlying HTTP loader so the caller can dispose the loader at shutdown without losing the wrapper's reference.
public sealed class SafeResourceLoaderWithHttp : IDisposable
- Inheritance
-
SafeResourceLoaderWithHttp
- Implements
- Inherited Members
Properties
UnderlyingHttpLoader
The underlying HTTP loader. Exposed so the caller can Dispose() it at shutdown — the wrapper does NOT take ownership of the loader's lifecycle.
public SafeHttpResourceLoader UnderlyingHttpLoader { get; }
Property Value
Wrapper
The wrapper. Pass this to HtmlPdfOptions.ResourceLoader
+ every pipeline-internal fetch routes through here.
public SafeResourceLoader Wrapper { get; }
Property Value
Methods
Dispose()
Disposes the underlying HTTP loader. The wrapper has no native resources of its own — only the loader's HttpClient.
public void Dispose()