Migrating DotNetBrowser from 2.3 to 2.4

In DotNetBrowser 2.4 the Printing API was re-introduced. This caused a few API changes. In this migration guide we describe what API has been changed in 2.4 and what alternatives you should use instead.

Added or updated API

Printing

PrintHandler

The PrintHandler was replaced with RequestPrintHandler in DotNetBrowser 2.4.

v2.3

browser.PrintHandler =
    new Handler<PrintParameters, PrintResponse>(p =>
    {
        return PrintResponse.ShowPrintPreview();
    });

v2.4

browser.RequestPrintHandler =
    new Handler<RequestPrintParameters, RequestPrintResponse>(p =>
    {
        return RequestPrintResponse.ShowPrintPreview();
    });

Authentication

The AuthenticateParameters class has been extended with the Realm property. This property can be used to obtain the realm of the authentication challenge.

Go Top