ConnectorTriggerPayload Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helpers that turn a raw Connector Namespace trigger callback (an HTTP body delivered as a String or Stream) into a typed TriggerCallbackPayload<T> or into the decoded file bytes of a binary-content trigger.
public static class ConnectorTriggerPayload
type ConnectorTriggerPayload = class
Public Class ConnectorTriggerPayload
- Inheritance
-
ConnectorTriggerPayload
Remarks
Connector Namespace delivers two distinct trigger callback shapes for file connectors:
All metadata reads use case-insensitive property matching, so payloads whose wire fields are camelCase deserialize correctly instead of silently yielding all-null items.
Fields
| Name | Description |
|---|---|
| DefaultMaxBodySizeBytes |
The default maximum trigger callback body size, in bytes, enforced by the stream-based
readers (100 MB). This is a generous ceiling that guards against unbounded buffering of a
hostile or malformed stream while comfortably accommodating large binary-content callbacks.
Override it per call with the |
Properties
| Name | Description |
|---|---|
| SerializerOptions |
Gets a copy of the JsonSerializerOptions used to read trigger callback payloads. Property matching is case-insensitive so camelCase wire fields bind correctly. |
Methods
| Name | Description |
|---|---|
| Read<TPayload>(String) |
Reads a metadata trigger callback (for example OneDrive |
| ReadAsync<TPayload>(Stream, Int64, CancellationToken) |
Reads a metadata trigger callback (for example OneDrive |
| ReadBinaryContentAsync(Stream, Int64, CancellationToken) |
Reads a binary-content trigger callback (for example OneDrive |
| TryReadBinaryContent(String, Byte[]) |
Attempts to read a binary-content trigger callback (for example OneDrive |