CordappProvider.getAppContext - corda

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

# 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

### Exceptions

`IllegalStateException` - When called from a non-app context