private void _Set(StoreRow item, IKVLogger logger)
        {
            if (item.Expiry != null)
            {
                _provider.Set(item.Key, item.Value, item.Expiry.Value);
            }
            else
            {
                _provider.Set(item.Key, item.Value);
            }

            logger.LogStoreCall("ExportableStore.Set ", item.Key, item.Value, null, item.Expiry);
        }
Esempio n. 2
0
            public StoreRow AddStoreRow(int SGID, int SWID, double STopLine, double SbaseLine, double SQuantity)
            {
                StoreRow rowStoreRow = ((StoreRow)(this.NewRow()));

                rowStoreRow.ItemArray = new object[] {
                    SGID,
                    SWID,
                    STopLine,
                    SbaseLine,
                    SQuantity
                };
                this.Rows.Add(rowStoreRow);
                return(rowStoreRow);
            }
 public MemoryStorageRow(StoreRow row)
 {
     Value  = row.Value;
     Expiry = row.Expiry;
 }
Esempio n. 4
0
 public static void LogSet(this IKVLogger logger, StoreRow item)
 {
 }
 public StoreRowChangeEvent(StoreRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Esempio n. 6
0
 public void RemoveStoreRow(StoreRow row)
 {
     this.Rows.Remove(row);
 }
Esempio n. 7
0
 public void AddStoreRow(StoreRow row)
 {
     this.Rows.Add(row);
 }