UNPKG

@nestjs/microservices

Version:

Nest - modern, fast, powerful node.js web framework (@microservices)

27 lines (26 loc) 528 B
/** * @publicApi */ export class RequestContextHost { pattern; data; context; constructor(pattern, data, context) { this.pattern = pattern; this.data = data; this.context = context; } static create(pattern, data, context) { const host = new RequestContextHost(pattern, data, context); return host; } getData() { return this.data; } getPattern() { return this.pattern; } getContext() { return this.context; } }