public static System.Threading.Tasks.Task CopyToAsync(this System.IO.Stream source, System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     throw null;
 }
Example #2
0
 /// <summary>
 /// Serializes a given value to the specified stream.
 /// </summary>
 /// <param name="stream">The stream to serialize to.</param>
 /// <param name="value">The value to serialize.</param>
 /// <param name="options">The options. Use <c>null</c> to use default options.</param>
 /// <param name="cancellationToken">A cancellation token.</param>
 /// <returns>A task that completes with the result of the async serialization operation.</returns>
 public static async Task SerializeAsync <T>(Stream stream, T value, MessagePackSerializerOptions options = null, CancellationToken cancellationToken = default)
 {
     System.IO.Pipelines.PipeWriter writer = stream.UseStrictPipeWriter();
     Serialize(writer, value, options);
     await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
 }
 public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     throw null;
 }
Example #4
0
 public System.Threading.Tasks.Task DrainBufferAsync(System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     throw null;
 }