예제 #1
0
        private void WriteBaseOffsetCache()
        {
            var pathCache = Helper.GetMilFilePath("memory.pack");
            var cache     = new Serializer <ScanCache>(pathCache, memcachePassword);
            var memConf   = new ScanCache
            {
                CacheValue       = _sigPtr.Select(x => new KeyValuePair <int, long>((int)x.Key, x.Value.ToInt64())),
                LastCacheTime    = Helper.DateTimeToUnixTimeStamp(DateTime.UtcNow),
                CacheGameVersion = GetVersionString(),
                SignatureVersion = Signature.DataVersion
            };

            cache.Save(memConf);
        }
예제 #2
0
 public VTInsertFunctions(ApplicationDbContext db, ScanCache scanCache)
 {
     _db        = db;
     _scanCache = scanCache;
 }
예제 #3
0
 public VTInsertFunctions(ZEMDBContext db, Serilog.Core.Logger log, ScanCache scanCache)
 {
     _db        = db;
     _log       = log;
     _scanCache = scanCache;
 }