示例#1
0
 public static IProcess GetNested <I, O>(this ProcessFactoryRef <IProcessGetter, O> fact, ProcessFactoryRef <I, O> inner, I input, ProcessExitCallback <O> callback, IProcess parent)
 {
     return(fact.Get <IProcessGetter, O>(
                new ProcessGetter <I, O>(inner, input),
                callback,
                parent));
 }
示例#2
0
    protected SubProcess <O> Get <I, O>(ProcessFactoryRef <I, O> factory, I args)
    {
        var sp = new SubProcess <O>();

        factory.Get <I, O>(args, (s, e) => Callback <O>(sp, e), this);
        return(sp);
    }
示例#3
0
 public static IProcess GetNullOutput <I, O>(this ProcessFactoryRef <I, O> fact, I input, ProcessExitCallback callback, IProcess parent)
 {
     return(fact.Get <I, O>(input, (s, e) => callback(s, e), parent));
 }