public FEventRegisterCastTo(FEventRegister inner, Func <T0> castFun)
 {
     _inner      = inner;
     _castbridge = castFun;
 }
 public FEventRegisterCastFromTo(FEventRegister <T0> inner, Func <T0, U0> castFun)
 {
     _inner      = inner;
     _castbridge = castFun;
 }
 public FEventRegisterCastDownRemoveT_0_1(FEventRegister <T0, T1> upper, Action <T0, T1, Action <U0> > tranAction)
 {
     _upper      = upper;
     _tranAction = tranAction;
 }
 public FEventRegisterCastDown(FEventRegister <T0> upper)
 {
     _upper = upper;
 }
Example #5
0
 //创建可观察的数据
 public static IObservable <T> CreateObservable(FEventRegister <T> fEvent, Func <T> valueGeter)
 {
     return(new ReadOnlyObservale <T>(fEvent, valueGeter));
 }
Example #6
0
 public ReadOnlyObservale(FEventRegister <U> fEventRegister, Func <U> valueGeter)
 {
     _fEventRegister = fEventRegister;
     _valueGeter     = valueGeter;
 }
Example #7
0
 protected void AddEventHandler <T1, T2, T3, T4>(FEventRegister <T1, T2, T3, T4> register, Action <T1, T2, T3, T4> cb)
 {
     AutoRelease(register.Subscribe(cb));
 }
Example #8
0
 protected void AddEventHandler(FEventRegister register, Action cb)
 {
     AutoRelease(register.Subscribe(cb));
 }
Example #9
0
 public FEventRegisterComb(FEventRegister left, FEventRegister right)
 {
     _left  = left;
     _right = right;
 }