Example #1
0
        public static ICharacterOutDevice Open(out Tasks.Task <string> output)
        {
            var outputSource = new Tasks.TaskCompletionSource <string>();

            output = outputSource.Task;
            return(CharacterOutDevice.Open(content => outputSource.SetResult(content)));
        }
Example #2
0
        public static ICharacterOutDevice Open(Action <string> done)
        {
            Text.Builder output = null;
            var          result = new CharacterOutDevice(content =>
            {
                output += content;
            });

            result.OnClose += () =>
            {
                done(output);
            };
            return(result);
        }
Example #3
0
 public static Tuple <ICharacterOutDevice, Tasks.Task <string> > Open()
 {
     Tasks.Task <string> output;
     return(Tuple.Create(CharacterOutDevice.Open(out output), output));
 }
Example #4
0
 public static ICharacterOutDevice Open(out Tasks.Task <string> output)
 {
     return(CharacterOutDevice.Open(out output));
 }
Example #5
0
 public static Tuple <ICharacterOutDevice, Tasks.Task <string> > Open()
 {
     return(CharacterOutDevice.Open());
 }
Example #6
0
 public static ICharacterOutDevice Open(Action <string> done)
 {
     return(CharacterOutDevice.Open(done));
 }
Example #7
0
 public static ICharacterOutDevice Open(Action <char> next)
 {
     return(CharacterOutDevice.Open(next));
 }