The Learning Transport is a simple file-based transport used mainly for local development and tutorials.
To use the Learning Transport, define it under transports and reference it as current-transport.
current-transport: local-learning
transports:
- name: local-learning
learning-transport-config:
storage-directory: C:\Source\tutorials-quickstart\.learningtransport
restrict-payload-size: true| Field | Required | Type | Default | Description |
|---|---|---|---|---|
storage-directory |
Yes | string | — | Absolute path where Learning Transport stores message files. |
restrict-payload-size |
No | boolean | true |
Enforces the NServiceBus payload size limit. Set to false if you need to send larger payloads. |
This must be an absolute file path. The Learning Transport stores outgoing and incoming messages in a folder structure at this location. If this value is missing, Busly reports an error and exits.
Example:
storage-directory: C:\MyProject\.learningtransportWhen enabled (the default), Busly enforces the same message size limits as NServiceBus.
Set to false if using large JSON payloads or test messages.
Example:
restrict-payload-size: false