Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Godular 0.2.0
Logo
Godular 0.2.0
  • Getting started
  • Modules
  • Dependency injection
  • Middleware
  • Command bus
  • Jobs
  • Promises
  • Editor
  • API reference
    • GdlrModule
    • GdlrCapability
    • GdlrModuleManager
    • GdlrModuleGraph
    • GdlrModuleGraph.DebugPlugin
    • GdlrModuleDefinition
    • GdlrMiddlewarePipeline
    • CapGdlrCommandBus
    • CapGdlrCommandBus.Command
    • CapGdlrCommandBus.CommandEnvelope
    • CapGdlrCommandBus.CommandMeta
    • CapGdlrCommandBus.CommandRoute
    • CapGdlrCommandBus.CommandResult
    • CapGdlrCommandBus.RateLimitInfo
    • CapGdlrCommandHandlers
    • CapGdlrCommandHandlers.Context
    • CapGdlrCommandHandlers.LocalOutput
    • GdlrCommandHandler
    • GdlrCommandMiddleware
    • CapGdlrCommandTransport
    • GdlrCommandTransportAdapter
    • CapGdlrCommandRouter
    • CapGdlrJobs
    • CapGdlrJobs.JobSpec
    • CapGdlrJobs.Job
    • CapGdlrJobsRegistry
    • GdbPromise
    • GdlrDiContainer
    • GdlrDiContainer.ProviderFactory
    • GdlrModuleProvider
    • GdlrCommandPipeline
    • GdlrCommandPipeline.PipelineEntry
    • GdlrMiddlewarePipeline.PipelineEntry
  • Contributing
  • Releasing
Back to top
View this page
Edit this page

CapGdlrCommandHandlers.Context¶

Inherits: RefCounted < Object

Services that a handler can call while it runs.

Properties¶

Callable

get_state

Callable

dispatch


Property Descriptions¶

Callable get_state 🔗

Returns application state. The bundled bus sets a callable that returns null. Replace it in a middleware or a custom bus.


Callable dispatch 🔗

Dispatches another envelope through the bus. Takes a CapGdlrCommandBus.CommandEnvelope and returns a CapGdlrCommandBus.CommandResult.

Next
CapGdlrCommandHandlers.LocalOutput
Previous
CapGdlrCommandHandlers
Copyright © Godular contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • CapGdlrCommandHandlers.Context
    • Properties
    • Property Descriptions