Page Contents

Home > @loopback/context > Context > getScopedContext

Context.getScopedContext() method

Get the context matching the scope

Signature:

getScopedContext(scope: BindingScope.APPLICATION | BindingScope.SERVER | BindingScope.REQUEST): Context | undefined;

Parameters

Parameter Type Description
scope BindingScope.APPLICATION | BindingScope.SERVER | BindingScope.REQUEST Binding scope

Returns:

Context | undefined