void PointArg <TEnum, TArg>(this  ISequencerUC sequencer,
                                    SeqPointTypeUC seqPointTypeUC,
                                    TEnum registration,
                                    TArg arg,
                                    Action <object> injectContinuation = null)
            where TEnum : struct
        {
            var rslt = sequencer.PointAsyncArg <TEnum, TArg>(seqPointTypeUC, registration, arg, injectContinuation);

            rslt.GetResult();            //sync waiting unless completed awaiter was provided
        }
Beispiel #2
0
 PointAsyncArg <TEnum, TArg>(this  ISequencerUC sequencer,
                             SeqPointTypeUC seqPointTypeUC,
                             TEnum registration,
                             TArg arg,
                             Action <object> injectContinuation = null)
     where TEnum : struct
 {
     return
         (sequencer
          .PointAsyncArg(seqPointTypeUC,
                         registration,
                         () => true,
                         arg,
                         injectContinuation)
         );
 }