public async Task <IProjectContentsConverter> CreateProjectContentsConverter(Project project) { _csToVbProjectContentsConverter = new CSToVBProjectContentsConverter(ConversionOptions); await _csToVbProjectContentsConverter.InitializeSourceAsync(project); return(_csToVbProjectContentsConverter); }
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); }