IoContext

open class IoContext : CoatyObject

Represents the context of IO routing.

An IO context is associated with an IO router that can use its context information to manage routes.

Remark

If needed, create a custom subtype with custom properties that represent application-specific context information.

Class registration.

  • Undocumented

    Declaration

    Swift

    override open class var objectType: String { get }

Initializers.

  • Note

    This comment refers to the property name of superclass CoatyObject, since Swift does not support overridden comments

    A name that uniquely identifies this IO context within a Coaty application scope.

    Use an expressive name that is shared by all agents defining IO nodes for this context.

    Remark

    The context name must be a non-empty string that does not contain the following characters: NULL (U+0000), # (U+0023), + (U+002B), / (U+002F).

    Declaration

    Swift

    public override init(coreType: CoreType,
                objectType: String,
                objectId: CoatyUUID,
                name: String)

Codable methods.

  • Undocumented

    Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    open override func encode(to encoder: Encoder) throws