TessaBsonSerializerSerializeBsonAsync - метод
Пространство имён: Tessa.Platform.JsonСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public Task SerializeBsonAsync(
Stream stream,
Object obj,
bool withLength = false,
bool fallbackSerialization = false,
bool useCompression = false,
MemoryStream bufferStream = null,
MemoryStream compressionBufferStream = null,
CancellationToken cancellationToken = default
)
Public Function SerializeBsonAsync (
stream As Stream,
obj As Object,
Optional withLength As Boolean = false,
Optional fallbackSerialization As Boolean = false,
Optional useCompression As Boolean = false,
Optional bufferStream As MemoryStream = Nothing,
Optional compressionBufferStream As MemoryStream = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
Task^ SerializeBsonAsync(
Stream^ stream,
Object^ obj,
bool withLength = false,
bool fallbackSerialization = false,
bool useCompression = false,
MemoryStream^ bufferStream = nullptr,
MemoryStream^ compressionBufferStream = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
member SerializeBsonAsync :
stream : Stream *
obj : Object *
?withLength : bool *
?fallbackSerialization : bool *
?useCompression : bool *
?bufferStream : MemoryStream *
?compressionBufferStream : MemoryStream *
?cancellationToken : CancellationToken
(* Defaults:
let _withLength = defaultArg withLength false
let _fallbackSerialization = defaultArg fallbackSerialization false
let _useCompression = defaultArg useCompression false
let _bufferStream = defaultArg bufferStream null
let _compressionBufferStream = defaultArg compressionBufferStream null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
- stream Stream
-
- obj Object
-
- withLength Boolean (Optional)
-
- fallbackSerialization Boolean (Optional)
-
- useCompression Boolean (Optional)
-
- bufferStream MemoryStream (Optional)
-
- compressionBufferStream MemoryStream (Optional)
-
- cancellationToken CancellationToken (Optional)
-
Task