Пример #1
0
 public BlockDictWatcher(IBlockOwner owner,
                         Action <T> addedBlock,
                         Action <T> removedBlock) : base(owner)
 {
     _AddedBlock   = addedBlock;
     _RemovedBlock = removedBlock;
 }
Пример #2
0
        public BlockBusSub AddSub(string msg, IBlockOwner owner, Action <Bus, string> block)
        {
            BlockBusSub result = new BlockBusSub(owner, block);

            AddSub(msg, result);
            return(result);
        }
Пример #3
0
 protected WeakBlock(IBlockOwner owner)
 {
     if (owner != null)
     {
         _OwnerReference = new WeakReference(owner);
     }
 }
Пример #4
0
 public BlockTableWatcher(IBlockOwner owner,
                          Action <T> addedBlock,
                          Action <T> removedBlock,
                          Action <T> indexChangedBlock) : base(owner)
 {
     _AddedBlock        = addedBlock;
     _RemovedBlock      = removedBlock;
     _IndexChangedBlock = indexChangedBlock;
 }
Пример #5
0
        public BlockRequestChecker AddRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block)
        {
            BlockRequestChecker result = new BlockRequestChecker(owner, block);

            if (AddRequestChecker(result))
            {
                return(result);
            }
            return(null);
        }
Пример #6
0
        public BlockResponseWatcher AddResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block)
        {
            BlockResponseWatcher result = new BlockResponseWatcher(owner, block);

            if (AddResponseWatcher(result))
            {
                return(result);
            }
            return(null);
        }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
        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);
        }
Пример #10
0
        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);
        }
Пример #11
0
        public BlockEventWatcher AddEventWatcher(IBlockOwner owner, Action <Channel, Data> block)
        {
            BlockEventWatcher result = new BlockEventWatcher(owner, block);

            if (AddEventWatcher(result))
            {
                return(result);
            }
            return(null);
        }
Пример #12
0
        public BlockEventChecker AddEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block)
        {
            BlockEventChecker result = new BlockEventChecker(owner, block);

            if (AddEventChecker(result))
            {
                return(result);
            }
            return(null);
        }
Пример #13
0
        }                                                                                 //__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__
Пример #14
0
 public BlockBusSub(IBlockOwner owner, Action <Bus, string> block) : base(owner)
 {
     _Block = block;
 }
Пример #15
0
 public BlockValueChecker(IBlockOwner owner, Func <IVar <T>, T, bool> checker) : base(owner)
 {
     Checker = checker;
 }
Пример #16
0
 public BlockValueWatcher(IBlockOwner owner, Action <IVar <T>, T> watcher) : base(owner)
 {
     Watcher = watcher;
 }
Пример #17
0
 public BlockDictElementRemovedWatcher(IBlockOwner owner, Action <T> removedBlock) :
     base(owner, null, removedBlock)
 {
 }
Пример #18
0
 public BlockDictElementAddedWatcher(IBlockOwner owner, Action <T> addedBlock) :
     base(owner, addedBlock, null)
 {
 }
Пример #19
0
 public BlockTableElementIndexChangedWatcher(IBlockOwner owner, Action <T> indexChangedBlock) :
     base(owner, null, null, indexChangedBlock)
 {
 }
Пример #20
0
 public BlockResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block) : base(owner)
 {
     _Block = block;
 }
Пример #21
0
 public BlockEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block) : base(owner)
 {
     _Block = block;
 }
Пример #22
0
 public BlockEventWatcher(IBlockOwner owner, Action <Channel, Data> block) : base(owner)
 {
     _Block = block;
 }
Пример #23
0
 public BlockVarWatcher(IBlockOwner owner, Action <IVar> watcher) : base(owner)
 {
     _Watcher = watcher;
 }
Пример #24
0
 public BlockRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block) : base(owner)
 {
     _Block = block;
 }