protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            OleMenuCommandService commandService = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            if (commandService != null)
            {
                await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

                CheckoutCommandActiveDocument.Initialize(this, commandService);
                CheckoutCommandSolutionView.Initialize(this, commandService);
            }
        }
 public static void Initialize(Package package, OleMenuCommandService commandService)
 {
     Instance = new CheckoutCommandActiveDocument(package, commandService);
 }