ContextFactory
Stentor API Reference / stentor-context/src / ContextFactory
Class: ContextFactory
Defined in: packages/stentor-context/src/ContextFactory.ts:30
Constructorsβ
Constructorβ
new ContextFactory():
ContextFactory
Returnsβ
ContextFactory
Methodsβ
fromRequest()β
staticfromRequest(request,requestBody,storage,session,services,channel,appData?):Promise\<Readonly\<Context\<Storage>>>
Defined in: packages/stentor-context/src/ContextFactory.ts:41
Build context from the provided request.
Parametersβ
requestβ
requestBodyβ
object
storageβ
sessionβ
SessionStore
servicesβ
channelβ
This field will disappear in the next major release. It is only used to set the device field on the context.
appData?β
AppRuntimeData