Represents the options when subscribing to Fauna Event Streams. More...
Public Member Functions | |
StreamOptions (string token, string cursor) | |
Initializes a new instance of the StreamOptions class with the specified token and cursor. | |
StreamOptions (string token, long startTs) | |
Initializes a new instance of the StreamOptions class with the specified token and start timestamp. | |
Properties | |
string? | Token [get] |
Token for a Fauna event source. | |
Properties inherited from Fauna.Types.EventOptions | |
string? | Cursor [get, set] |
Cursor returned from Fauna. | |
long? | StartTs [get] |
Start timestamp returned for the feed. Used to resume the Feed. | |
int? | PageSize [get] |
Limit page size for the Feed. | |
Represents the options when subscribing to Fauna Event Streams.
Definition at line 8 of file StreamOptions.cs.
Fauna.StreamOptions.StreamOptions | ( | string | token, |
string | cursor | ||
) |
Initializes a new instance of the StreamOptions class with the specified token and cursor.
token | The token for a Fauna event source. |
cursor | The cursor from the stream, must be used with the associated Token. Used to resume the stream. |
Definition at line 16 of file StreamOptions.cs.
Fauna.StreamOptions.StreamOptions | ( | string | token, |
long | startTs | ||
) |
Initializes a new instance of the StreamOptions class with the specified token and start timestamp.
token | The token for a Fauna event source. |
startTs | The start timestamp to use for the stream. |
Definition at line 27 of file StreamOptions.cs.
|
get |
Token for a Fauna event source.
See the Create an event source.
Definition at line 36 of file StreamOptions.cs.