Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getContextCreator(container: NestContainer): WsContextCreator {
return new WsContextCreator(
new WsProxy(),
new ExceptionFiltersContext(container),
new PipesContextCreator(container),
new PipesConsumer(),
new GuardsContextCreator(container),
new GuardsConsumer(),
new InterceptorsContextCreator(container),
new InterceptorsConsumer(),
);
}
}
private static getContextCreator(container): WsContextCreator {
return new WsContextCreator(
new WsProxy(),
new ExceptionFiltersContext(),
new PipesContextCreator(),
new PipesConsumer(),
new GuardsContextCreator(container),
new GuardsConsumer(),
new InterceptorsContextCreator(container),
new InterceptorsConsumer(),
);
}
}
private getContextCreator(container): WsContextCreator {
return new WsContextCreator(
new WsProxy(),
new ExceptionFiltersContext(),
new PipesContextCreator(),
new PipesConsumer(),
new GuardsContextCreator(container),
new GuardsConsumer(),
new InterceptorsContextCreator(container),
new InterceptorsConsumer(),
);
}
}
public register(container, config) {
const contextCreator = new RpcContextCreator(
new RpcProxy(),
new ExceptionFiltersContext(container, config),
new PipesContextCreator(container, config),
new PipesConsumer(),
new GuardsContextCreator(container, config),
new GuardsConsumer(),
new InterceptorsContextCreator(container, config),
new InterceptorsConsumer(),
);
this.listenersController = new ListenersController(
this.clientsContainer,
contextCreator,
);
}
public register(container, config) {
const contextCreator = new RpcContextCreator(
new RpcProxy(),
new ExceptionFiltersContext(config),
new PipesContextCreator(config),
new PipesConsumer(),
new GuardsContextCreator(container, config),
new GuardsConsumer(),
new InterceptorsContextCreator(container, config),
new InterceptorsConsumer(),
);
this.listenersController = new ListenersController(
this.clientsContainer,
contextCreator,
);
}