protected virtual Action ConsoleOutputOnCompleted() { Contract.Ensures(Contract.Result <Action>() != null); Contract.Assume(Proxy != null); var observer = LabObserver <object> .Completed(Proxy); observer.StartTimer(); return(observer.OnCompleted); }
protected virtual Action ConsoleOutputOnCompleted(string name) { Contract.Requires(!string.IsNullOrEmpty(name)); Contract.Ensures(Contract.Result <Action>() != null); Contract.Assume(Proxy != null); var observer = LabObserver <object> .Completed(Proxy, name); observer.StartTimer(); return(observer.OnCompleted); }