// Token: 0x06000EB3 RID: 3763 RVA: 0x0003ECF8 File Offset: 0x0003CEF8
        public XElement GetDxStoreSnapshot()
        {
            DxStoreInstanceClient localClient          = this.ClientFactory.LocalClient;
            InstanceSnapshotInfo  instanceSnapshotInfo = localClient.AcquireSnapshot("Public", true, null);

            instanceSnapshotInfo.Decompress();
            return(XElement.Parse(instanceSnapshotInfo.Snapshot));
        }
Пример #2
0
        public void ApplySnapshot(InstanceSnapshotInfo snapshotInfo, int?instanceNumber)
        {
            if (snapshotInfo == null || string.IsNullOrEmpty(snapshotInfo.Snapshot))
            {
                ExTraceGlobals.StoreWriteTracer.TraceError <string, int>((long)this.identityHash, "{0}: [1] ApplySnapshot ignored since snapshot info is not valid", this.identity, instanceNumber ?? -1);
                return;
            }
            snapshotInfo.Decompress();
            XElement rootElement = XElement.Parse(snapshotInfo.Snapshot);
            int      num         = (instanceNumber != null) ? instanceNumber.Value : snapshotInfo.LastInstanceExecuted;

            this.ApplySnapshotFromXElement(snapshotInfo.FullKeyName, num, rootElement);
            ExTraceGlobals.StoreWriteTracer.TraceDebug <string, int>((long)this.identityHash, "{0}: [1] Exiting ApplySnapshot", this.identity, num);
        }