示例#1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public Response<Void> fetchDataStream(final MadeUpWriter writer, final int dataSize)
        public override Response <Void> FetchDataStream(MadeUpWriter writer, int dataSize)
        {
            Serializer          serializer   = buffer => buffer.writeInt(dataSize);
            Deserializer <Void> deserializer = (buffer, temporaryBuffer) =>
            {
                writer.Write(new BlockLogReader(buffer));
                return(null);
            };

            return(SendRequest(MadeUpServer.MadeUpRequestType.FetchDataStream, RequestContext, serializer, deserializer));
        }
示例#2
0
 public override Response <Void> fetchDataStream(MadeUpWriter writer, int dataSize)
 {
     writer.Write(new FailingByteChannel(dataSize, _failureMessage));
     return(new TransactionStreamResponse <Void>(null, _outerInstance.storeIdToUse, TransactionStream_Fields.Empty, ResourceReleaser_Fields.NoOp));
 }