예제 #1
0
        public async Task <IProjectContentsConverter> CreateProjectContentsConverter(Project project)
        {
            _csToVbProjectContentsConverter = new CSToVBProjectContentsConverter(ConversionOptions);
            await _csToVbProjectContentsConverter.InitializeSourceAsync(project);

            return(_csToVbProjectContentsConverter);
        }
예제 #2
0
        public async Task <IProjectContentsConverter> CreateProjectContentsConverterAsync(Project project,
                                                                                          IProgress <ConversionProgress> progress, CancellationToken cancellationToken)
        {
            _cancellationToken = cancellationToken;
            _csToVbProjectContentsConverter = new CSToVBProjectContentsConverter(ConversionOptions, progress, cancellationToken);
            await _csToVbProjectContentsConverter.InitializeSourceAsync(project);

            return(_csToVbProjectContentsConverter);
        }