Пример #1
0
            public virtual void Configure(Core.FileConfiguration.AsyncGenerator configuration, Project project, IFluentProjectConfiguration projectConfiguration,
                                          Assembly assembly)
            {
                _realConfigurator.Configure(configuration, project, projectConfiguration, assembly);

                if (!string.IsNullOrEmpty(_fileName))
                {
                    projectConfiguration.ConfigureAnalyzation(a => a
                                                              .DocumentSelection(o => string.Join("/", o.Folders) == _inputFolderPath && o.Name == _fileName + ".cs")
                                                              );
                }
                else
                {
                    projectConfiguration.ConfigureAnalyzation(a => a
                                                              .DocumentSelection(o => string.Join("/", o.Folders) == _inputFolderPath)
                                                              );
                }
                _configureProjectAction?.Invoke(projectConfiguration);
            }
Пример #2
0
 public void Configure(Core.FileConfiguration.AsyncGenerator configuration, Solution solution, IFluentSolutionConfiguration solutionConfiguration,
                       Assembly assembly)
 {
     _realConfigurator.Configure(configuration, solution, solutionConfiguration, assembly);
 }