Esempio n. 1
0
 private int StreamDispatch(IRSocketStream transform) => StreamDispatch(NewStreamId(), transform);
Esempio n. 2
0
 public int DispatchStream(int streamId, IRSocketStream observer, IRequestCredit requestCredit)
 {
     dispatcher[streamId] = new RSocketStream(observer, requestCredit);
     return(streamId);
 }
Esempio n. 3
0
 private int StreamDispatch(int id, IRSocketStream transform)
 {
     Dispatcher[id] = transform; return(id);
 }
Esempio n. 4
0
 public Task RequestResponse <TData, TMetadata>(IRSocketStream stream, TData data, TMetadata metadata        = default) => RequestResponse(stream, RequestDataSerializer.Serialize(data), RequestMetadataSerializer.Serialize(metadata));
Esempio n. 5
0
 public int DispatchStream(IRSocketStream stream, IRequestCredit requestCredit) =>
 DispatchStream(NewStreamId(), stream, requestCredit);
Esempio n. 6
0
 public Task RequestResponse <TData>(IRSocketStream stream, TData data, ReadOnlySpan <byte> metadata         = default) => RequestResponse(stream, RequestDataSerializer.Serialize(data), metadata);
Esempio n. 7
0
 public Task RequestResponse <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default) => RequestResponse(stream, data, RequestMetadataSerializer.Serialize(metadata));
Esempio n. 8
0
 public Task RequestFireAndForget <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default) => RequestFireAndForget(stream, data, RequestMetadataSerializer.Serialize(metadata));
Esempio n. 9
0
 public Task RequestFireAndForget <TData, TMetadata>(IRSocketStream stream, TData data, TMetadata metadata        = default) => RequestFireAndForget(stream, RequestDataSerializer.Serialize(data), RequestMetadataSerializer.Serialize(metadata));
Esempio n. 10
0
 public Task RequestFireAndForget <TData>(IRSocketStream stream, TData data, ReadOnlySpan <byte> metadata         = default) => RequestFireAndForget(stream, RequestDataSerializer.Serialize(data), metadata);
Esempio n. 11
0
 public Task RequestStream <TData, TMetadata>(IRSocketStream stream, TData data, TMetadata metadata        = default, int initial = INITIALDEFAULT) => RequestStream(stream, RequestDataSerializer.Serialize(data), RequestMetadataSerializer.Serialize(metadata), initial);
Esempio n. 12
0
 public Task RequestStream <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default, int initial = INITIALDEFAULT) => RequestStream(stream, data, RequestMetadataSerializer.Serialize(metadata), initial);
Esempio n. 13
0
 //TODO Ugh, these are all garbage. Remove in favor of the transformation ones.
 public Task <IRSocketChannel> RequestChannel <TData>(IRSocketStream stream, TData data, ReadOnlySpan <byte> metadata         = default, int initial = INITIALDEFAULT) => RequestChannel(stream, RequestDataSerializer.Serialize(data), metadata, initial);
Esempio n. 14
0
        public RSocketStream(IRSocketStream observer, IRequestCredit credit)
        {
            this.observer = observer;

            Credit = credit;
        }