getContext

declare function getContext(): Promise<IMethodContext>;

Gets the current method context.

Returns the context object from the method context service, which contains information about the current method execution environment.