Catel.Fody.Weaving.ExposedProperties.ExposedPropertiesWeaver.Execute C# (CSharp) Method

Execute() public method

public Execute ( ) : void
return void
        public void Execute()
        {
            if (ViewModelToModelAttributeTypeDefinition == null)
            {
                return;
            }

            foreach (var catelType in _catelTypeNodeBuilder.CatelTypes)
            {
                if (catelType.TypeDefinition.ImplementsViewModelBase())
                {
                    ProcessType(catelType);
                }
            }
        }

Usage Example

        public void Execute()
        {
            if (!FodyEnvironment.IsCatelMvvmAvailable)
            {
                FodyEnvironment.LogInfo("Skipping weaving of exposed properties because this is an MVVM feature");
                return;
            }

            var warningChecker = new ExposedPropertiesWarningChecker(_catelTypeNodeBuilder);
            warningChecker.Execute();

            var weaver = new ExposedPropertiesWeaver(_catelTypeNodeBuilder, _msCoreReferenceFinder);
            weaver.Execute();
        }