Page Contents

Home > @loopback/context > ResolutionSession > runWithBinding

ResolutionSession.runWithBinding() method

Run the given action with the given binding and session

Signature:

static runWithBinding(action: ResolutionAction, binding: Readonly<Binding>, session?: ResolutionSession): any;

Parameters

Parameter Type Description
action ResolutionAction A function to do some work with the resolution session
binding Readonly<Binding> The current binding
session ResolutionSession (Optional) The current resolution session

Returns:

any