UNPKG

@juntoz/azure-service-bus-sender

Version:

Quick logger that enables the function to log to the default logger (console) and also to papertrail

15 lines (14 loc) 708 B
import { SendableMessageInfo } from "@azure/service-bus"; import { AzureServiceBusSenderInt } from "./index"; export declare class ASBInMemory implements AzureServiceBusSenderInt { messages: any[]; constructor(); maxBatch(): number; last(): any; clear(): void; sendToTopic(topicName: string, message: SendableMessageInfo): Promise<void>; sendToQueue(queueName: string, message: SendableMessageInfo): Promise<void>; private injectMessage; sendBatchToTopic(topicName: string, messages: SendableMessageInfo[], moreProperties?: any): Promise<void>; sendBatchToQueue(queueName: string, messages: SendableMessageInfo[], moreProperties?: any): Promise<void>; }