コード例 #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)));
        }
コード例 #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);
        }
コード例 #3
0
 public static Tuple <ICharacterOutDevice, Tasks.Task <string> > Open()
 {
     Tasks.Task <string> output;
     return(Tuple.Create(CharacterOutDevice.Open(out output), output));
 }
コード例 #4
0
 public static ICharacterOutDevice Open(out Tasks.Task <string> output)
 {
     return(CharacterOutDevice.Open(out output));
 }
コード例 #5
0
 public static Tuple <ICharacterOutDevice, Tasks.Task <string> > Open()
 {
     return(CharacterOutDevice.Open());
 }
コード例 #6
0
 public static ICharacterOutDevice Open(Action <string> done)
 {
     return(CharacterOutDevice.Open(done));
 }
コード例 #7
0
 public static ICharacterOutDevice Open(Action <char> next)
 {
     return(CharacterOutDevice.Open(next));
 }