Skip to content

Commit c76bddf

Browse files
committed
Expose ConnectAsync method that accepts ReadOnlySequence
1 parent 9ec7651 commit c76bddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RSocket.Core/RSocketClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public RSocketClient(IRSocketTransport transport, RSocketOptions options = defau
2222

2323
public Task ConnectAsync(RSocketOptions options = default, byte[] data = default, byte[] metadata = default) => ConnectAsync(options ?? RSocketOptions.Default, data: data == default ? default : new ReadOnlySequence<byte>(data), metadata: metadata == default ? default : new ReadOnlySequence<byte>(metadata));
2424

25-
async Task ConnectAsync(RSocketOptions options, ReadOnlySequence<byte> metadata, ReadOnlySequence<byte> data)
25+
public async Task ConnectAsync(RSocketOptions options, ReadOnlySequence<byte> metadata, ReadOnlySequence<byte> data)
2626
{
2727
await Transport.StartAsync();
2828
Handler = Connect(CancellationToken.None);

0 commit comments

Comments
 (0)