protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await SvgConverterToolWindowCommand.InitializeAsync(this);

            await ConvertSvgCommand.InitializeAsync(this);

            await base.InitializeAsync(cancellationToken, progress);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the singleton instance of the command.
        /// </summary>
        /// <param name="package">Owner package, not null.</param>
        public static async System.Threading.Tasks.Task InitializeAsync(AsyncPackage package)
        {
            _package        = package ?? throw new ArgumentNullException(nameof(package));
            _commandService = (OleMenuCommandService)await package.GetServiceAsync(typeof(IMenuCommandService));

            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

            Instance = new ConvertSvgCommand();
        }