Fauna v10 .NET/C# Driver 0.3.0-beta
 
Loading...
Searching...
No Matches
StreamOptions.cs
Go to the documentation of this file.
1namespace Fauna;
2
6public class StreamOptions
7{
14 public StreamOptions(string token, string cursor)
15 {
16 Token = token;
17 Cursor = cursor;
18 }
19
25 public StreamOptions(string token, long startTs)
26 {
27 Token = token;
28 StartTs = startTs;
29 }
30
31 // <summary>Token returned from Fauna when the stream is created.</summary>
33 public string? Token { get; }
34
37 public string? Cursor { get; }
38
39 // <summary>Start timestamp from the stream, must be used with the associated Token. Used to resume the stream.</summary>
41 public long? StartTs { get; }
42}
Represents the options when subscribing to Fauna Streams.
string? Cursor
Cursor from the stream, must be used with the associated Token. Used to resume the stream.
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.