protected override IEnumerator <Step> Steps() { yield return(Step.Await( this, (thisPtr, c, s) => thisPtr.Throw(), (thisPtr, r) => Invalid(), Catch <ArgumentException> .AndHandle(this, (thisPtr, e) => true))); }
protected override IEnumerator <Step> Steps() { yield return(Step.Await( this, (thisPtr, c, s) => thisPtr.result = new AsyncResult <bool>(c, s), (thisPtr, r) => ((AsyncResult <bool>)thisPtr.result).EndInvoke(), Catch <ArgumentException> .AndHandle(this, (thisPtr, e) => thisPtr.ThrowFromHandler()))); }
protected override IEnumerator <Step> Steps() { yield return(Step.Await( this, (thisPtr, c, s) => thisPtr.Throw(), (thisPtr, r) => Invalid(), Catch <Exception> .AndHandle(this, (thisPtr, e) => false), Catch <InvalidTimeZoneException> .AndHandle(this, (thisPtr, e) => false))); }
protected override IEnumerator <Step> Steps() { yield return(Step.Await( this, (thisPtr, c, s) => new CompletedAsyncResult <bool>(false, c, s), (thisPtr, r) => thisPtr.EndAndThrow(r), Catch <Exception> .AndHandle(this, (thisPtr, e) => thisPtr.Handle(e)))); this.Result = this.result; }
protected override IEnumerator <Step> Steps() { yield return(Step.Await( this, (thisPtr, c, s) => thisPtr.Throw(), (thisPtr, r) => Invalid(), Catch <Exception> .AndHandle(this, (thisPtr, e) => thisPtr.Handle(e)))); this.Result = this.result; }