示例#1
0
 private int StreamDispatch(IRSocketStream transform) => StreamDispatch(NewStreamId(), transform);
示例#2
0
 public int DispatchStream(int streamId, IRSocketStream observer, IRequestCredit requestCredit)
 {
     dispatcher[streamId] = new RSocketStream(observer, requestCredit);
     return(streamId);
 }
示例#3
0
 private int StreamDispatch(int id, IRSocketStream transform)
 {
     Dispatcher[id] = transform; return(id);
 }
示例#4
0
 public Task RequestResponse <TData, TMetadata>(IRSocketStream stream, TData data, TMetadata metadata        = default) => RequestResponse(stream, RequestDataSerializer.Serialize(data), RequestMetadataSerializer.Serialize(metadata));
示例#5
0
 public int DispatchStream(IRSocketStream stream, IRequestCredit requestCredit) =>
 DispatchStream(NewStreamId(), stream, requestCredit);
示例#6
0
 public Task RequestResponse <TData>(IRSocketStream stream, TData data, ReadOnlySpan <byte> metadata         = default) => RequestResponse(stream, RequestDataSerializer.Serialize(data), metadata);
示例#7
0
 public Task RequestResponse <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default) => RequestResponse(stream, data, RequestMetadataSerializer.Serialize(metadata));
示例#8
0
 public Task RequestFireAndForget <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default) => RequestFireAndForget(stream, data, RequestMetadataSerializer.Serialize(metadata));
示例#9
0
 public Task RequestFireAndForget <TData, TMetadata>(IRSocketStream stream, TData data, TMetadata metadata        = default) => RequestFireAndForget(stream, RequestDataSerializer.Serialize(data), RequestMetadataSerializer.Serialize(metadata));
示例#10
0
 public Task RequestFireAndForget <TData>(IRSocketStream stream, TData data, ReadOnlySpan <byte> metadata         = default) => RequestFireAndForget(stream, RequestDataSerializer.Serialize(data), metadata);
示例#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);
示例#12
0
 public Task RequestStream <TMetadata>(IRSocketStream stream, ReadOnlySpan <byte> data, TMetadata metadata = default, int initial = INITIALDEFAULT) => RequestStream(stream, data, RequestMetadataSerializer.Serialize(metadata), initial);
示例#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);
示例#14
0
        public RSocketStream(IRSocketStream observer, IRequestCredit credit)
        {
            this.observer = observer;

            Credit = credit;
        }