HtmlForgeX

API Reference

Class

EmbeddedResourceLoader

Namespace HtmlForgeX.Email

Utility class for loading embedded resources from the assembly.

Inheritance

  • Object
  • EmbeddedResourceLoader

Methods

GetAllResourceNames() #

Gets all available embedded resource names for debugging.

Returns

Array of resource names.

LoadCss(System.String resourcePath) #

Loads a CSS file from embedded resources.

Parameters

resourcePath System.String required
The resource path relative to the assembly root.

Returns

The CSS content as string.

LoadCssAsync(System.String resourcePath) #

Loads a CSS file from embedded resources asynchronously.

Parameters

resourcePath System.String required
The resource path relative to the assembly root.

Returns

The CSS content as string.