Example #1
0
        public override async Task <bool> ConsumeDroplet(TDroplet droplet)
        {
            if (SourceStream.CanWrite)
            {
                byte[] buf = WriteAdapter(droplet);
                try
                {
                    await SourceStream.WriteAsync(buf, 0, ChunkSize);

                    return(true);
                }
                catch
                {
                    return(false);
                }
            }
            return(false);
        }