Popular Use Cases for Message Handlers | C#

Contents
[ ]

Suppose you want to convert an HTML(XHTML) document containing linked resources such as images, styles, scripts. In that case, you should pack all these resources along with your document into a single ZIP archive and convert, for instance, ZIP to PDF or ZIP to JPG. Aspose.HTML for .NET provides functionality for creating custom message handlers for working with ZIP archives.

Sometimes you need to get the total time taken for a Web request to flow through handlers, out to the endpoint, and receive the response. So, another popular use case for message handlers - logging the Web request execution time.

Convert ZIP to PDF - In the article, you will find a message handler implementation for working with ZIP archives and an example of converting ZIP to PDF.

Convert ZIP to JPG - This article provides an example of implementing a message handler for converting ZIP to JPG using Aspose.HTML for .NET.

Web Request Execution Time - This article will consider an example of implementing a message handler for logging a Web request execution time.

Convert ZIP to PDF - Execution Time Logging - In this article, you will find an example of custom message handlers to convert ZIP to PDF and log the execution time of this conversion.

Authentication - In this article, you find a simple example of how to create a custom message handler for a Web request with password-based authentication schemes such as basic, digest, NTLM, and Kerberos.