Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
IConnection.cs
Go to the documentation of this file.
1using Fauna.Mapping;
2using Fauna.Types;
3using Stream = System.IO.Stream;
4
5namespace Fauna.Core;
6
10internal interface IConnection : IDisposable
11{
21 Task<HttpResponseMessage> DoPostAsync(
22 string path,
23 Stream body,
24 Dictionary<string, string> headers,
25 TimeSpan requestTimeout,
26 CancellationToken cancel);
27
38
39 IAsyncEnumerable<Event<T>> OpenStream<T>(
40 string path,
41 Types.EventSource eventSource,
42 Dictionary<string, string> headers,
44 CancellationToken cancellationToken = default) where T : notnull;
45}
System.IO.Stream Stream
Definition Client.cs:8
A class representing the mapping context to be used during serialization and deserialization.