コード例 #1
0
        private void RegisterTypeEntitiesAsClassEntities()
        {
            var typeEntities = typeEntityRegistrar.GetAllEntities();

            foreach (var typeEntity in typeEntities)
            {
                if (!typeEntity.IsReferenced)
                {
                    logger.LogWarning($"Skipped Type '{typeEntity.NamespaceQualifiedId}' because it is not referenced.");
                    continue;
                }
                classEntityRegistrar.RegisterTypeEntity(typeEntity);
            }
        }
コード例 #2
0
        private void RegisterTypeEntitiesAsClassEntities()
        {
            var typeEntities = typeEntityRegistrar.GetAllEntities();

            foreach (var typeEntity in typeEntities)
            {
                if (!typeEntity.IsReferenced)
                {
                    logger.LogWarning("Skipped Type '{NamespaceQualifiedId}' because it is not referenced.", typeEntity.NamespaceQualifiedId);
                    continue;
                }

                if (classEntityRegistrar.TryRegisterTypeEntity(typeEntity, out var classEntity))
                {
                    registeredClassEntityProcessor.Process(classEntity);
                }
            }
        }