Пример #1
0
        protected override Task <IEntityValue?> TryCreateEntityOrNullAsync(IQueryExecutionContext queryExecutionContext, EntityIdentity id)
        {
            if (QueryProjectPropertiesContext.TryCreateFromEntityId(id, out QueryProjectPropertiesContext? propertiesContext) &&
                StringComparers.ItemTypes.Equals(propertiesContext.ItemType, "LaunchProfile"))
            {
                return(CreateLaunchProfileValueAsync(queryExecutionContext, id, propertiesContext));
            }

            return(NullEntityValue);
        }
        protected override Task <IEntityValue?> TryCreateEntityOrNullAsync(IQueryExecutionContext queryExecutionContext, EntityIdentity id)
        {
            if (QueryProjectPropertiesContext.TryCreateFromEntityId(id, out QueryProjectPropertiesContext? propertiesContext) &&
                id.TryGetValue(ProjectModelIdentityKeys.PropertyPageName, out string?propertyPageName))
            {
                return(PropertyPageDataProducer.CreatePropertyPageValueAsync(
                           queryExecutionContext,
                           id,
                           _projectService,
                           propertiesContext,
                           propertyPageName,
                           _properties));
            }

            return(NullEntityValue);
        }