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)); }
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); }
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)); }