Exemple #1
0
        internal static Func <FutureOr> _registerHandler(Func <FutureOr> handler, Zone zone)
        {
            var callback = zone.registerCallback(() => handler());

            return(() => (FutureOr)callback());
        }
Exemple #2
0
        internal static Func <object> _registerHandler(Func <object> handler, Zone zone)
        {
            var callback = zone.registerCallback(() => handler());

            return(() => callback());
        }