internal Transaction(GraphStorage env, Impl.Transaction tx) { _tx = tx; _storage = env; _nextIdKey = Slice.From(env.ByteStringContext, Constants.NextIdKey); var readResult = MetadataTree.Read(_nextIdKey); NextId = (readResult == null) ? 0 : readResult.Reader.ReadBigEndianInt64(); }
public void Initialize() { AssemblyLocator.Initialize(); MetadataTree mTree = MetadataTreeBuilder.Initialize("", "").Analyze(); ModuleAnalyzer moduleAnalyzer = new ModuleAnalyzer(mTree); ReadOnlyCollection <AssemblyInfo> preReferenceAssemblies = moduleAnalyzer.GetPreReferenceAssemblies(); ReadOnlyCollection <ModuleXmlInfo> moduleXmlInfos = moduleAnalyzer.GetModuleXmlInfos(); foreach (AssemblyInfo assemblyInfo in preReferenceAssemblies) { AssemblyLocator.AddAssebmlyInfo(assemblyInfo); } foreach (ModuleXmlInfo moduleXmlInfo in moduleXmlInfos) { Module modeule = new Module(moduleXmlInfo); modeule.Compile(); } }
public ModuleAnalyzer(MetadataTree metadataTree) { this._metadataTree = metadataTree; }