Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SbContext<T>

Type parameters

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns SbContext

Accessors

type

  • get type(): T
  • Returns T

Methods

entityName

  • entityName(): string
  • The entity name used to identify subscription/queue in service bus

    Returns string

getArgByIndex

  • getArgByIndex(index: number): any
  • Returns a particular argument by index.

    Parameters

    • index: number

      index of argument to retrieve

    Returns any

getArgs

  • Returns the array of arguments being passed to the handler.

    Returns SbContextArgs<T>

getData

  • getData<TBody>(): TBody
  • Type parameters

    • TBody

    Returns TBody

getMessage

  • getMessage(): ServiceBusMessage
  • Returns ServiceBusMessage

resolveClient

  • Try to resolves a client (queue or topic emitter/sender) based on the entity name.

    If an entity reference is not provided, the default reference is the entity used to emit messages to this subscriber. If this is a queue subscriber, it will be a queue emitter. If this is a subscription, it will be the topic of the subscription.

    You can also provide a clientId to look the entity in.

    Parameters

    Returns SbEmitterImp | undefined

Generated using TypeDoc