1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.RequestContextHost = void 0;
|
4 | class RequestContextHost {
|
5 | constructor(pattern, data, context) {
|
6 | this.pattern = pattern;
|
7 | this.data = data;
|
8 | this.context = context;
|
9 | }
|
10 | static create(pattern, data, context) {
|
11 | const host = new RequestContextHost(pattern, data, context);
|
12 | return host;
|
13 | }
|
14 | getData() {
|
15 | return this.data;
|
16 | }
|
17 | getPattern() {
|
18 | return this.pattern;
|
19 | }
|
20 | getContext() {
|
21 | return this.context;
|
22 | }
|
23 | }
|
24 | exports.RequestContextHost = RequestContextHost;
|