Identifies a simple interface to allow you to override the storage mechanism used to track unsent and unacknowledged events. When provided it must provide both the get and set item functions.

2.8.12

interface IStorageBuffer {
    getItem(logger: IDiagnosticLogger, name: string): string;
    setItem(logger: IDiagnosticLogger, name: string, data: string): boolean;
}

Methods

  • Retrieves the stored value for a given key

    Parameters

    • logger: IDiagnosticLogger
    • name: string

    Returns string

  • Sets the stored value for a given key

    Parameters

    • logger: IDiagnosticLogger
    • name: string
    • data: string

    Returns boolean