Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }