示例#1
0
 public void InsertPackage(IDataInserter dataInserter, IBlock block)
 {
     if (dataInserter.GetSizeResult() > 0)
     {
         block.GetPackages().Insert(dataInserter.GetIndex() + 1, new Package(dataInserter.GetSizeResult(), 0, block));
     }
 }
示例#2
0
 public TcpRemoteListener(IRemoteExchange remoteExchange, IDataInserter dataInserter)
 {
     _remoteExchange = remoteExchange;
     _remoteExchange.ReceiveEvent += (msg, num) => RemoteService.onRecieve(msg);//for signal quality
     _remoteExchange.ReceiveEvent += AnswerToClient; //remote control
     SetDataInserter(dataInserter);
 }
        public GraphBasedDataGenerator(Workspace w, IDataInserter inserter)
        {
#if !ClientSKUFramework

            if (!(w is InMemoryWorkspace || w is NonClrWorkspace))
                throw new NotSupportedException("GraphBasedDataGenerator is not supported for workspaces other than InMemory and NonClr");
#endif

            _workspace = w;
            Done = false;

            DataInserter = inserter;
            Done = false;
        }
示例#4
0
        public GraphBasedDataGenerator(Workspace w, IDataInserter inserter)
        {
#if !ClientSKUFramework
            if (!(w is InMemoryWorkspace || w is NonClrWorkspace))
            {
                throw new NotSupportedException("GraphBasedDataGenerator is not supported for workspaces other than InMemory and NonClr");
            }
#endif

            _workspace = w;
            Done       = false;

            DataInserter = inserter;
            Done         = false;
        }
示例#5
0
 public DataBaseFlusher(IDataInserter inserter, IDataPurger purger, IInfoGetter dataGetter)
 {
     _inserter   = inserter;
     _purger     = purger;
     _dataGetter = dataGetter;
 }
示例#6
0
 public void SetDataInserter(IDataInserter dataInserter)
 {
     if (dataInserter == null) throw new ArgumentNullException("dataInserter");
     _remoteExchange.ReceiveEvent += (msg,num) => dataInserter.InsertData(msg);
 }
示例#7
0
 public void RemoveDataInserter(IDataInserter dataInserter)
 {
     if (dataInserter == null) throw new ArgumentNullException("dataInserter");
     //_remoteExchange.ReceiveEvent -= dataInserter.InsertData;
 }