/// <summary> /// Creates the structure with memory stack with global level only. /// </summary> /// <param name="factories">The factories.</param> /// <returns> /// New structure with memory stack with global level only. /// </returns> public static CopySnapshotStructureProxy CreateGlobal(ModularMemoryModelFactories factories) { CopySnapshotStructureProxy proxy = new CopySnapshotStructureProxy(); proxy.snapshotStructure = SnapshotStructureContainer.CreateGlobal(factories); return(proxy); }
/// <summary> /// Creates the structure with memory stack with global level only. /// </summary> /// <param name="factories">The factories.</param> /// <returns> /// New structure with memory stack with global level only. /// </returns> public static LazyCopySnapshotStructureProxy CreateGlobal(ModularMemoryModelFactories factories) { LazyCopySnapshotStructureProxy proxy = new LazyCopySnapshotStructureProxy(factories); proxy.snapshotStructure = SnapshotStructureContainer.CreateGlobal(factories); proxy.readonlyInstance = proxy.snapshotStructure; proxy.isReadonly = false; return proxy; }