[]
Gets or sets the singleton instance of the IWebRequestHandler implementation that will be used to handle web requests.
This property provides a centralized way to access and set the web request handler for the application.
It is used by workbook features that need to retrieve remote content, such as the
IMAGE() function when the image source is a web URL.
public static IWebRequestHandler WebRequestHandler { get; set; }
Public Shared Property WebRequestHandler As IWebRequestHandler
| Type | Description |
|---|---|
| IWebRequestHandler | The singleton IWebRequestHandler instance, or null if no handler has been set. |
class WebHandler : IWebRequestHandler
{
public Task<WebRequestResult> GetAsync(string requestUri)
{
return Task.FromResult(new WebRequestResult());
}
}
IWebRequestHandler handler = new WebHandler();
Workbook.WebRequestHandler = handler;
IWebRequestHandler currentHandler = Workbook.WebRequestHandler;