async Task ConnectAsync(RSocketOptions options, ReadOnlySequence <byte> metadata, ReadOnlySequence <byte> data) { await Transport.StartAsync(); Handler = Connect(CancellationToken.None); await Setup(options.KeepAlive, options.Lifetime, options.MetadataMimeType, options.DataMimeType, data: data, metadata : metadata); }
public async Task ConnectAsync(RSocketOptions options, ReadOnlySequence <byte> metadata, ReadOnlySequence <byte> data, byte[] resumeToken = default) { await this.Transport.StartAsync(); this.Handler = Connect(CancellationToken.None); await Setup(options.KeepAlive, options.Lifetime, options.MetadataMimeType, options.DataMimeType, resumeToken : resumeToken, data : data, metadata : metadata); this.StartKeepAlive(options.KeepAlive, options.Lifetime); }
protected IDisposable ChannelSubscription; //TODO Tracking state for channels public RSocket(IRSocketTransport transport, RSocketOptions options = default) { Transport = transport; Options = options ?? RSocketOptions.Default; }
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));
public RSocketClient(IRSocketTransport transport, RSocketOptions options = default) : base(transport, options) { }
public RSocketServer(IRSocketTransport transport, RSocketOptions options = default) : base(transport, options) { }
public Task ConnectAsync(RSocketOptions options = default, byte[] data = default, byte[] metadata = default, byte[] resumeToken = default) => ConnectAsync(options ?? this.Options, data: data == default ? default : new ReadOnlySequence <byte>(data), metadata: metadata == default ? default : new ReadOnlySequence <byte>(metadata), resumeToken: resumeToken);
public RSocketClient(IRSocketTransport transport, RSocketOptions options = default) : base(transport, options) { this.Options = options ?? RSocketOptions.Default; }