corda / net.corda.core.cordapp / CordappProvider / getAppContext


abstract fun getAppContext(): CordappContext

Exposes the current CorDapp context which will contain information and configuration of the CorDapp that is currently running.

The calling application is found via stack walking and finding the first class on the stack that matches any class contained within the automatically resolved Cordapps loaded by the CordappLoader


IllegalStateException - When called from a non-app context