Пример #1
0
 public override async Task <(bool validated, string failureReason)> ValidateSyncComponent(
     JObject content,
     IValidateAndRepairContext context)
 {
     return(await _contentFieldsGraphSyncer.ValidateSyncComponent(
                content, context));
 }
        public override async Task <(bool validated, string failureReason)> ValidateSyncComponent(JObject content,
                                                                                                  IValidateAndRepairContext context)
        {
            (bool validated, string failureReason) =
                await base.ValidateSyncComponent(content, context);

            if (!validated)
            {
                return(validated, failureReason);
            }

            using var _ = context.SyncNameProvider.PushPropertyNameTransform(_flowFieldsPropertyNameTransform);

            return(await _contentFieldsGraphSyncer.ValidateSyncComponent(
                       content, context));
        }