Class FirestoreEndpointOptions

Assembly: redb.Route.Firebase.dll

Endpoint options for the Firestore component.
Supports both producer (CRUD/Query) and consumer (realtime listener / polling) modes.

public sealed class FirestoreEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→FirestoreEndpointOptions

Inherited Members

Properties

ConnectionFactory

Named reference from the registry.

[RegistryReference(typeof(IFirebaseCredentialProvider))]
public string? ConnectionFactory { get; set; }

CredentialPath

Path to the Firebase service-account JSON file.

public string? CredentialPath { get; set; }

DatabaseId

Firestore database id for multi-database projects (default: (default)).

public string? DatabaseId { get; set; }

Delay

Poll interval (ms) for non-realtime mode. Default: 5000.

public int Delay { get; set; }

DocumentId

Document ID. Supports ${...} expressions.

public DynamicValue<string>? DocumentId { get; set; }

DocumentIdField

BatchWrite: take the document id from this field of each item (the field itself is

public string? DocumentIdField { get; set; }

InitialDelay

Initial delay (ms) before first poll. Default: 1000.

public int InitialDelay { get; set; }

Limit

Maximum number of documents to return.

public int? Limit { get; set; }

MaxConcurrency

Maximum number of document changes processed in parallel within one snapshot

public int MaxConcurrency { get; set; }

Merge

Merge fields on Set instead of overwriting the entire document.

public bool Merge { get; set; }

Offset

Pagination offset.

public int? Offset { get; set; }

Operation

Producer operation type. Default: .

public FirestoreOperationType Operation { get; set; }

OrderBy

Order by field: "createdAt" or "createdAt desc".

public string? OrderBy { get; set; }

ProjectId

Firebase/GCP project ID.

public string? ProjectId { get; set; }

RawJson

Body as raw JSON string instead of Dictionary<string, object?>.

public bool RawJson { get; set; }

Realtime

Use snapshot listener for realtime updates (default for consumer).

public bool Realtime { get; set; }

Where

Where filter: "status==pending" or "age>18". Multiple separated by ;.

public string? Where { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()