Get() public static method

public static Get ( ) : SimplTypesScope
return Simpl.Serialization.SimplTypesScope
Ejemplo n.º 1
0
        public async Task <MetaMetadataRepository> LoadRepositoryFromCache(object file)
        {
            _metaMetadataRepository =
                await MetaMetadataTranslationScope.Get().Deserialize(file, Format.Xml) as MetaMetadataRepository;

            InitializeRepositoryAndPerformBinding();

            return(_metaMetadataRepository);
        }
Ejemplo n.º 2
0
 public static void InitializeTypes()
 {
     if (!initializedTypes)
     {
         MetadataScalarType.init();
         MetaMetadataTranslationScope.Get();
         MetadataBuiltinsTypesScope.Get();
         initializedTypes = true;
     }
 }
Ejemplo n.º 3
0
        public static async Task <MetaMetadataRepository> RequestMetaMetadataRepository(ParsedUri requestUri)
        {
            MetaMetadataRepository repository = null;

            try
            {
                repository = await MetaMetadataTranslationScope.Get().DeserializeUri(requestUri, Format.Xml, new TranslationContext(requestUri)) as MetaMetadataRepository;
            }
            catch (Exception)
            {
                Debug.WriteLine("Error loading Meta-metadata Repo. Service is down?!");
            }


            return(repository);
        }
Ejemplo n.º 4
0
        public async void LoadRepositoryAsync()
        {
            META_METADATA_REPOSITORY = new MetaMetadataRepository
            {
                RepositoryByName = new Dictionary <string, MetaMetadata>(),
                PackageMmdScopes = new Dictionary <string, MmdScope>()
            };

            _metaMetadataRepository = META_METADATA_REPOSITORY;

            SetDefaultMetaMetadatas();

            MetaMetadataRepository mainRepo = await MetaMetadataRepositoryLoader.ReadDirectoryRecursively(
                META_METADATA_REPOSITORY,
                MetametadataRepositoryDirFile as string,
                MetaMetadataTranslationScope.Get(),
                _metadataTranslationScope
                );



            BindAndCallback(mainRepo);
        }