Beispiel #1
0
 public static Pusher?GetPusher(string label)
 {
     return(GetProvider(label) switch
     {
         PushProvider pp => pp.SetValue,
         _ => null
     });
Beispiel #2
0
        public static Pusher RegisterPush(string label, Formatter formatter, IComparable order)
        {
            var pp = new PushProvider(label, formatter, order);

            Register(pp);
            return(pp.SetValue);
        }