public BlockDictWatcher(IBlockOwner owner, Action <T> addedBlock, Action <T> removedBlock) : base(owner) { _AddedBlock = addedBlock; _RemovedBlock = removedBlock; }
public BlockBusSub AddSub(string msg, IBlockOwner owner, Action <Bus, string> block) { BlockBusSub result = new BlockBusSub(owner, block); AddSub(msg, result); return(result); }
protected WeakBlock(IBlockOwner owner) { if (owner != null) { _OwnerReference = new WeakReference(owner); } }
public BlockTableWatcher(IBlockOwner owner, Action <T> addedBlock, Action <T> removedBlock, Action <T> indexChangedBlock) : base(owner) { _AddedBlock = addedBlock; _RemovedBlock = removedBlock; _IndexChangedBlock = indexChangedBlock; }
public BlockRequestChecker AddRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block) { BlockRequestChecker result = new BlockRequestChecker(owner, block); if (AddRequestChecker(result)) { return(result); } return(null); }
public BlockResponseWatcher AddResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block) { BlockResponseWatcher result = new BlockResponseWatcher(owner, block); if (AddResponseWatcher(result)) { return(result); } return(null); }
public BlockEventChecker AddEventChecker(string channelKey, IBlockOwner owner, Func <Channel, Data, bool> block) { Channel channel = Get(channelKey); if (channel != null) { return(channel.AddEventChecker(owner, block)); } return(null); }
public BlockEventWatcher AddEventWatcher(string channelKey, IBlockOwner owner, Action <Channel, Data> block) { Channel channel = Get(channelKey); if (channel != null) { return(channel.AddEventWatcher(owner, block)); } return(null); }
public BlockResponseWatcher AddResponseWatcher(string handlerKey, IBlockOwner owner, Action <Handler, Data, Data> block) { Handler handler = Get(handlerKey); if (handler != null) { return(handler.AddResponseWatcher(owner, block)); } return(null); }
public BlockRequestChecker AddRequestChecker(string handlerKey, IBlockOwner owner, Func <Handler, Data, bool> block) { Handler handler = Get(handlerKey); if (handler != null) { return(handler.AddRequestChecker(owner, block)); } return(null); }
public BlockEventWatcher AddEventWatcher(IBlockOwner owner, Action <Channel, Data> block) { BlockEventWatcher result = new BlockEventWatcher(owner, block); if (AddEventWatcher(result)) { return(result); } return(null); }
public BlockEventChecker AddEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block) { BlockEventChecker result = new BlockEventChecker(owner, block); if (AddEventChecker(result)) { return(result); } return(null); }
} //__SILP__ //__SILP__ public BlockVarWatcher AddVarWatcher(IBlockOwner owner, //__SILP__ Action <IVar> _watcher) //__SILP__ { BlockVarWatcher watcher = new BlockVarWatcher(owner, _watcher); //__SILP__ if (AddVarWatcher(watcher)) //__SILP__ { return(watcher); //__SILP__ } //__SILP__ return(null); //__SILP__ } //__SILP__
public BlockBusSub(IBlockOwner owner, Action <Bus, string> block) : base(owner) { _Block = block; }
public BlockValueChecker(IBlockOwner owner, Func <IVar <T>, T, bool> checker) : base(owner) { Checker = checker; }
public BlockValueWatcher(IBlockOwner owner, Action <IVar <T>, T> watcher) : base(owner) { Watcher = watcher; }
public BlockDictElementRemovedWatcher(IBlockOwner owner, Action <T> removedBlock) : base(owner, null, removedBlock) { }
public BlockDictElementAddedWatcher(IBlockOwner owner, Action <T> addedBlock) : base(owner, addedBlock, null) { }
public BlockTableElementIndexChangedWatcher(IBlockOwner owner, Action <T> indexChangedBlock) : base(owner, null, null, indexChangedBlock) { }
public BlockResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block) : base(owner) { _Block = block; }
public BlockEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block) : base(owner) { _Block = block; }
public BlockEventWatcher(IBlockOwner owner, Action <Channel, Data> block) : base(owner) { _Block = block; }
public BlockVarWatcher(IBlockOwner owner, Action <IVar> watcher) : base(owner) { _Watcher = watcher; }
public BlockRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block) : base(owner) { _Block = block; }