public void InsertPackage(IDataInserter dataInserter, IBlock block) { if (dataInserter.GetSizeResult() > 0) { block.GetPackages().Insert(dataInserter.GetIndex() + 1, new Package(dataInserter.GetSizeResult(), 0, block)); } }
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; }
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; }
public DataBaseFlusher(IDataInserter inserter, IDataPurger purger, IInfoGetter dataGetter) { _inserter = inserter; _purger = purger; _dataGetter = dataGetter; }
public void SetDataInserter(IDataInserter dataInserter) { if (dataInserter == null) throw new ArgumentNullException("dataInserter"); _remoteExchange.ReceiveEvent += (msg,num) => dataInserter.InsertData(msg); }
public void RemoveDataInserter(IDataInserter dataInserter) { if (dataInserter == null) throw new ArgumentNullException("dataInserter"); //_remoteExchange.ReceiveEvent -= dataInserter.InsertData; }