예제 #1
0
 public static Task PackToAsync(this object?value, Type type, Stream?stream,
                                MessagePackSerializerOptions?options = null, CancellationToken cancellationToken = default) =>
 MessagePackHelper.PackAsync(type, value, stream, options, cancellationToken);
예제 #2
0
 public static Task PackToAsync <TValue>(this TValue?value, Stream?stream,
                                         MessagePackSerializerOptions?options = null, CancellationToken cancellationToken = default) =>
 MessagePackHelper.PackAsync(value, stream, options, cancellationToken);