Beispiel #1
0
        protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            _options = ContainerProvider.Container.Resolve <IOptions>();

            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            var dte = await GetServiceAsync(typeof(EnvDTE.DTE)) as EnvDTE.DTE;

            await InitializeTelemetryAsync();

            await CommandRepository.InitializeAsync(this, dte);
        }
 public static void Initialize(Package package)
 {
     Instance = new CommandRepository(package);
 }
Beispiel #3
0
        internal static async System.Threading.Tasks.Task InitializeAsync(AsyncPackage package, DTE dte)
        {
            var commandService = (IMenuCommandService)await package.GetServiceAsync(typeof(IMenuCommandService));

            var commands = new CommandRepository(package, commandService);
        }
 protected override void Initialize()
 {
     base.Initialize();
     CommandRepository.Initialize(this);
 }