Search Results for

    Show / Hide Table of Contents

    Interface IResourceLoader

    Loads necessary WebReport resources such as toolbar images, scripts and other

    Namespace: FastReport.Web.Services
    Assembly: FastReport.OpenSource.Web.dll
    Syntax
    public interface IResourceLoader

    Methods

    GetBytes(String)

    Returns the requested resource as byte array.

    Declaration
    byte[] GetBytes(string name)
    Parameters
    Type Name Description
    System.String name

    Requested resource name

    Returns
    Type Description
    System.Byte[]

    Byte array of requested resource. If the resource is not found - returns null

    GetBytesAsync(String, CancellationToken)

    Asynchronously returns the requested resource as byte array.

    Declaration
    ValueTask<byte[]> GetBytesAsync(string name, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    System.String name

    Requested resource name

    System.Threading.CancellationToken cancellationToken

    Cancellation token

    Returns
    Type Description
    System.Threading.Tasks.ValueTask<System.Byte[]>

    Byte array of requested resource. If the resource is not found - returns null

    GetContent(String)

    Returns the requested UTF8 string representation resource.

    Declaration
    string GetContent(string name)
    Parameters
    Type Name Description
    System.String name

    Requested resource name

    Returns
    Type Description
    System.String

    A UTF8 string representation resource. If the resource is not found - returns null

    GetContentAsync(String)

    Asynchronously returns the requested UTF8 string representation resource.

    Declaration
    ValueTask<string> GetContentAsync(string name)
    Parameters
    Type Name Description
    System.String name

    Requested resource name

    Returns
    Type Description
    System.Threading.Tasks.ValueTask<System.String>

    A UTF8 string representation resource. If the resource is not found - returns null

    Back to top © 1998-2025 Copyright Fast Reports Inc.