Esempio n. 1
0
 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)));
 }
Esempio n. 2
0
 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())));
 }
Esempio n. 3
0
 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)));
 }
Esempio n. 4
0
            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;
            }
Esempio n. 5
0
            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;
            }