Example #1
0
 public static void AsyncRead(this Stream source, int partLenght, Action <string> completed, Action <Exception> excepted)
 {
     new CopyStreamContext(
         source,
         partLenght,
         (buff) => RExt.Convert(buff, Encoding.UTF8.GetString, completed, excepted),
         excepted);
 }
Example #2
0
 public static void AsyncRead(this Stream source, Encoding encode, Action <string> completed, Action <Exception> excepted)
 {
     new CopyStreamContext(
         source,
         1024,
         (buff) => RExt.Convert(buff, encode.GetString, completed, excepted),
         excepted);
 }